@import "https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap";:root{--blue:#0f766e;--blue-dark:#115e59;--light:#eaf6f3;--ink:#18354a;--muted:#526477;--line:#e5e8ed;--rail:64px;--header:44px;color:var(--ink);background:var(--theme-surface,#f3f6fa);font-family:Poppins,Segoe UI,sans-serif;font-size:13px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:default}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}input,select,textarea{background:var(--theme-surface,white);color:var(--ink);border:1px solid #dedfe2;border-radius:5px;min-width:0;max-width:100%;padding:8px 11px}select{cursor:pointer;min-height:35px}textarea{resize:vertical}input::placeholder{color:var(--theme-ink,#a5a8ad)}input[type=checkbox]{accent-color:var(--blue);flex:none;width:15px;height:15px;margin:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #a8cafa}h1,h2,h3,h4,p{margin:0}h1{font-size:25px;font-weight:600}h2{font-size:20px;font-weight:600}h3{font-size:16px;font-weight:600}small{font-size:11px}strong,b{font-weight:600}svg{vertical-align:middle;flex-shrink:0}hr{border:0;border-top:1px solid var(--line);margin:28px 0}.relative{position:relative}.wide{grid-column:1/-1}.muted{color:var(--muted);line-height:1.85}.rtl{font-family:Cairo,Poppins,sans-serif}.app-loading{background:var(--theme-surface,#f7f9fc);height:100vh;color:var(--blue);flex-direction:column;justify-content:center;align-items:center;gap:15px;display:flex}.app-loading p{color:var(--muted)}.lucide-loader-circle{animation:1.4s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.btn{background:var(--theme-surface,white);min-height:35px;color:var(--theme-ink,#727a84);white-space:nowrap;border:1px solid #dedfe2;border-radius:5px;justify-content:center;align-items:center;gap:7px;padding:8px 13px;font-size:12px;line-height:1.3;display:inline-flex}.btn:hover,.icon-btn:hover{background:var(--theme-surface,#f1f6fc);border-color:#bbd1eb}.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.btn.primary:hover{background:var(--blue-dark)}.btn.selected{background:var(--light);color:var(--blue)}.btn.danger{color:#fff;background:#da5353;border-color:#da5353}.icon-btn{background:0 0;border:1px solid #0000;border-radius:5px;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;display:inline-flex}.icon-btn.active{color:var(--blue);background:var(--light)}.text-link{color:var(--blue);text-align:start;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-weight:500;display:inline-flex}.text-link:hover{text-decoration:underline}.inline-buttons{flex-wrap:wrap;gap:9px;display:flex}.pill{background:var(--theme-surface,#e8f0fc);color:var(--blue);white-space:nowrap;border-radius:4px;padding:3px 8px;font-size:10px;line-height:1.6;display:inline-flex}.pill.green{background:var(--theme-surface,#e6f7ef);color:#269b68}.pill.amber{color:#ae842f;background:#fff2d9}.pill.gray{background:var(--theme-surface,#eff1f3);color:var(--theme-ink,#818995)}.color-cell{align-items:center;gap:7px;display:flex}.color-cell i{border-radius:4px;width:17px;height:17px}.empty{text-align:center;flex-direction:column;align-items:center;gap:13px;padding:65px 20px;display:flex}.empty h3{font-size:18px}.empty p{color:var(--muted);max-width:410px;line-height:1.8}.empty-icon{background:var(--light);width:72px;height:72px;color:var(--blue);border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.section-title,.page-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;display:flex}.page-heading{margin-top:4px}.page-heading h2{align-items:center;gap:8px;font-size:19px;display:flex}.page-heading p{color:var(--muted)}.side-rail{inset-inline-start:0;z-index:35;width:var(--rail);background:var(--theme-surface,white);border-inline-end:1px solid #eee;flex-direction:column;align-items:center;display:flex;position:fixed;top:0;bottom:0}.brand{width:64px;height:60px;color:var(--theme-ink,#68717a);letter-spacing:-3px;flex-direction:column;justify-content:center;align-items:center;line-height:1;display:flex}.brand>span{font-size:35px;font-weight:600;line-height:32px}.brand-accent{color:var(--blue)}.brand small{letter-spacing:2px;padding-inline-start:12px;font-size:8px;font-weight:700}.rail-main{flex-direction:column;gap:12px;margin-top:11px;display:flex}.side-rail .icon-btn{width:42px;height:36px;color:var(--theme-ink,#757b81)}.side-rail .icon-btn.active{color:var(--blue);background:0 0}.side-rail .icon-btn:hover{color:var(--blue);background:var(--theme-surface,#f2f7fd)}.rail-bottom{flex-direction:column;gap:10px;margin-top:auto;padding-bottom:15px;display:flex}.topbar{inset-inline-start:var(--rail);inset-inline-end:0;z-index:30;height:var(--header);background:var(--blue);color:#fff;justify-content:space-between;align-items:center;padding:0 12px 0 17px;display:flex;position:fixed;top:0}.topbar nav{align-items:center;gap:4px;height:100%;display:flex}.topbar nav a{color:#fff;white-space:nowrap;border-radius:5px;align-items:center;gap:7px;padding:8px 11px;font-size:12px;font-weight:500;display:flex;position:relative}.topbar nav a:hover,.topbar nav a.active{background:#134e4a;text-decoration:none}.topbar em,.settings-group em{top:0;color:#fff;background:#d63d7e;border-radius:3px;padding:0 3px;font-size:8px;font-style:normal;line-height:12px;position:absolute;inset-inline-end:2px}.top-actions{align-items:center;gap:12px;display:flex}.topbar .icon-btn{color:#fff;width:30px;height:32px}.topbar .icon-btn:hover{background:#134e4a;border-color:#0000}.avatar{background:var(--theme-surface,#e9eef4);width:33px;height:33px;color:var(--theme-ink,#8b9aad);border:0;border-radius:50%;justify-content:center;align-items:center;font-size:17px;display:flex}.notification{position:relative}.notification i{background:#f16f77;border-radius:50%;width:7px;height:7px;position:absolute;top:4px;right:6px}.main{padding:var(--header) 16px 0;min-height:100vh;margin-inline-start:var(--rail)}.breadcrumb{height:50px;color:var(--theme-ink,#6b7178);align-items:center;gap:13px;font-size:11px;display:flex}.breadcrumb>a{align-items:center;gap:5px;font-weight:600;display:flex}.breadcrumb>.lucide{color:var(--blue)}.breadcrumb .icon-btn{width:26px;height:24px;color:var(--theme-ink,#949ca7)}.save-status{color:var(--theme-ink,#959ea8);align-items:center;gap:5px;margin-inline-start:auto;font-size:10px;display:flex}.panel{background:var(--theme-surface,white);border-radius:10px;min-height:400px;padding:23px 22px}.records-panel{padding:17px 16px 0}.welcome-strip{background:var(--theme-surface,#f4f8ff);border:1px solid #cfdef4;border-radius:8px;align-items:center;gap:10px;margin-bottom:14px;padding:14px 20px;display:flex}.welcome-strip>div{flex-direction:column;gap:3px;margin-inline-end:auto;display:flex}.welcome-strip span{color:var(--muted);font-size:11px}footer{color:var(--theme-ink,#9299a3);align-items:center;gap:20px;padding:24px 3px;font-size:10px;display:flex}footer button{color:var(--blue);background:0 0;border:0;font-size:10px}.footer-right{margin-inline-start:auto}.sub-navigation{gap:3px;margin-top:-2px;padding-bottom:14px;display:flex;overflow-x:auto}.sub-navigation a{color:var(--theme-ink,#828b96);white-space:nowrap;padding:8px 17px;font-size:12px}.sub-navigation a.active{color:var(--blue);background:var(--theme-surface,white);border-radius:6px}.popup{top:calc(100% + 8px);z-index:60;background:var(--theme-surface,white);min-width:230px;color:var(--ink);border:1px solid #e3e8f0;border-radius:7px;padding:8px;position:absolute;inset-inline-end:0;box-shadow:0 6px 25px #1c3e6529}.popup>h4{padding:9px 10px 12px;font-size:14px}.popup>p{text-overflow:ellipsis;padding:8px 10px;font-size:11px;overflow:hidden}.popup button,.popup a{text-align:start;width:100%;color:var(--theme-ink,#6c7784);background:0 0;border:0;border-radius:4px;align-items:center;gap:10px;padding:10px;font-size:12px;display:flex}.popup button:hover,.popup a:hover{color:var(--blue);background:var(--light)}.popup small{color:var(--muted);margin-top:3px;font-size:10px;display:block}.rail-popup{inset-inline:48px auto;top:0}.notification-popup{width:330px}.notification-popup>h4{justify-content:space-between;display:flex}.user-popup{width:255px}.filter-top{justify-content:flex-end;align-items:center;gap:8px;min-height:34px;margin-bottom:16px;display:flex}.filter-top select{width:160px;font-size:12px}.filter-top .btn{padding:8px 10px}.leads-type{background:var(--blue);color:#fff;border-radius:5px;padding:5px 9px;font-size:11px}.quick-filters{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:15px;display:flex}.quick-filters>select{max-width:145px;color:var(--theme-ink,#9097a0);min-height:34px;font-size:12px}.segment{border:1px solid var(--line);background:var(--theme-surface,white);border-radius:4px;align-items:center;display:flex;overflow:hidden}.segment>button,.segment>select{background:var(--theme-surface,white);border:0;border-inline-end:1px solid var(--line);white-space:nowrap;text-overflow:ellipsis;max-width:112px;min-height:32px;padding:8px 10px;font-size:11px;overflow:hidden}.segment>button:last-child{border:0}.segment>button.active{background:var(--theme-surface,#f7faff);color:var(--blue)}.segment>button:hover{background:var(--light)}.segment>select{width:35px;padding-inline:6px}.switch-label{white-space:nowrap;color:var(--theme-ink,#777e87);cursor:pointer;align-items:center;gap:7px;font-size:11px;display:flex}.switch-label>input{opacity:0;width:1px;height:1px;position:absolute}.switch-label>span{background:var(--theme-surface,#dedfe1);border-radius:20px;flex-shrink:0;width:39px;height:21px;display:inline-block;position:relative}.switch-label>span:after{content:"";background:var(--theme-surface,white);border-radius:50%;width:15px;height:15px;transition:transform .15s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0002}.switch-label>input:checked+span{background:var(--blue)}.switch-label>input:checked+span:after{transform:translate(18px)}.switch-label>input:focus-visible+span{outline:3px solid #9bc4f8}.list-toolbar{align-items:center;gap:9px;min-height:35px;margin-bottom:16px;display:flex}.select-all{color:var(--theme-ink,#89909a);white-space:nowrap;align-items:center;gap:6px;font-size:10px;display:flex}.list-toolbar>select{width:68px;font-size:11px}.toolbar-right{align-items:center;gap:5px;margin-inline-start:auto;display:flex}.toolbar-right>.icon-btn{border-color:var(--line);color:var(--theme-ink,#8b929b);width:32px;height:34px}.toolbar-right select{width:125px;color:var(--theme-ink,#929ca8);font-size:11px}.searchbox{height:35px;color:var(--theme-ink,#929ca8);background:var(--theme-surface,white);border:1px solid #dedfe2;border-radius:5px;align-items:center;gap:7px;min-width:0;padding:0 9px;display:flex}.searchbox input{background:0 0;border:0;width:175px;min-width:60px;padding:7px 1px;font-size:12px;outline:0!important}.searchbox .icon-btn{width:20px;height:22px}.advanced-filters{background:var(--theme-surface,#f7f9fc);border:1px solid #e5eaf2;border-radius:6px;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:17px;padding:18px;display:grid}.advanced-filters>label{flex-direction:column;gap:6px;font-size:11px;display:flex}.filter-buttons{grid-column:1/-1;gap:7px;display:flex}.bulkbar{background:var(--theme-surface,#eaf6f3);border:1px solid #cfdef1;border-radius:5px;align-items:center;gap:12px;margin-bottom:10px;padding:10px 12px;font-size:11px;display:flex}.lead-row{grid-template-columns:minmax(160px,1.05fr) minmax(185px,1.04fr) minmax(130px,1.6fr) auto;align-items:center;gap:12px 20px;min-height:106px;padding:25px 10px 10px;display:grid}.lead-row:nth-child(odd){background:var(--theme-surface,#f5f5f5)}.lead-identity{align-items:center;gap:10px;min-width:0;display:flex}.lead-name{color:var(--blue);text-align:start;text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;max-width:165px;padding:0;font-size:14px;font-weight:600;overflow:hidden}.lead-identity .icon-btn{color:#8ca5c3;width:20px;height:23px}.lead-identity .icon-btn svg{width:13px}.lead-phone{background:var(--theme-surface,white);max-width:255px;color:var(--theme-ink,#6d747e);border:1px solid #dedfe2;border-radius:3px;justify-self:start;align-items:center;gap:7px;padding:5px 8px;font-size:11px;line-height:1.4;display:flex}.lead-phone span{font-size:10px}.lead-phone .text-link{white-space:nowrap;font-weight:600;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.lead-phone>.lucide{color:var(--blue)}.lead-phone>.lucide-message-circle{color:#64aa8a}.lead-note{text-align:start;min-width:0;color:var(--theme-ink,#70767c);background:0 0;border:0;align-items:center;gap:7px;padding:0;font-size:12px;display:flex}.lead-note span{white-space:nowrap;text-overflow:ellipsis;max-width:220px;overflow:hidden}.lead-actions{justify-content:flex-end;align-items:center;gap:5px;display:flex}.circle-action{color:#fff;border:0;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;padding:0;display:flex}.circle-action:hover{filter:brightness(.93)}.circle-action.call{background:#35a0e4}.circle-action.no-answer{background:#ff653b}.circle-action.whatsapp{background:#00cc67}.circle-action.meeting{background:#4e8fdc}.circle-action.deal{background:#ffc52f}.lead-actions>.icon-btn{width:28px;height:30px;color:var(--theme-ink,#7e858a)}.stage-select{background:var(--blue);color:#fff;text-overflow:ellipsis;border:0;border-radius:20px;width:143px;max-width:143px;height:32px;min-height:32px;padding:5px 10px;font-size:10px}.stage-select option{background:var(--theme-surface,white);color:var(--ink)}.lead-meta{color:var(--theme-ink,#9ba3ad);padding-inline-start:25px;opacity:.8;grid-column:1/-1;align-items:center;gap:18px;min-width:0;padding-top:4px;font-size:9px;display:flex}.lead-meta>span,.lead-meta>button{white-space:nowrap;align-items:center;gap:4px;display:flex}.lead-meta button{color:#7296c5;background:0 0;border:0;padding:0;font-size:9px}.lead-meta .pill{padding:0 5px;font-size:8px}.lead-meta .lead-rating{color:#b28b52;margin-inline-start:auto}.table-wrap{overflow-x:auto}table{border-collapse:collapse;text-align:start;width:100%;font-size:12px}th{text-align:start;color:var(--theme-ink,#818c9b);background:var(--theme-surface,#f6f8fa);white-space:nowrap;padding:14px 12px;font-weight:500}td{white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid #f0f1f3;max-width:280px;padding:14px 12px;overflow:hidden}tbody tr:nth-child(2n){background:var(--theme-surface,#fcfcfd)}tbody tr:hover{background:var(--theme-surface,#f6f9ff)}td pre{white-space:pre-wrap;word-break:break-all;min-width:210px;max-width:350px;max-height:280px;font-size:10px;overflow:auto}td details{white-space:normal}summary{cursor:pointer;color:var(--blue);font-size:11px}.row-actions{color:var(--theme-ink,#929aa5);align-items:center;gap:3px;display:flex}.row-actions .icon-btn{width:27px;height:27px}.row-actions .icon-btn svg{width:15px}.pagination{color:var(--theme-ink,#87909c);justify-content:center;align-items:center;gap:5px;padding:22px 0;display:flex}.pagination>span{margin-inline-end:auto;font-size:10px}.pagination>button{background:var(--theme-surface,white);border:1px solid #0000;border-radius:4px;min-width:29px;height:30px;font-size:11px}.pagination>button.active{background:var(--blue);color:#fff}.pagination>select{min-height:30px;margin-inline-start:auto;font-size:11px}.kanban{gap:14px;min-height:430px;padding:12px 0 25px;display:flex;overflow-x:auto}.kanban-column{background:var(--theme-surface,#f4f6f9);border-radius:7px;flex:1;min-width:260px;padding:12px}.kanban-column h3{align-items:center;gap:7px;margin:2px 0 17px;font-size:12px;display:flex}.kanban-column h3>i{background:var(--blue);border-radius:50%;width:7px;height:7px}.kanban-column h3>span{background:var(--theme-surface,#e6ebf2);border-radius:5px;margin-inline-start:auto;padding:2px 6px;font-size:10px}.kanban-column article{background:var(--theme-surface,white);cursor:grab;border:1px solid #e6eaf0;border-radius:5px;margin-bottom:10px;padding:15px}.kanban-column article p{margin:10px 0;font-size:12px}.kanban-column article small{color:var(--muted)}.kanban-column select{width:100%;margin-top:12px;font-size:10px;display:block}.record-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:19px;padding:10px 0 22px;display:grid}.record-card{border:1px solid var(--line);border-radius:7px;padding:0 17px 16px;overflow:hidden}.card-art{color:#8eacd1;background:linear-gradient(135deg,#e6eef9,#f3f7fc);justify-content:center;align-items:center;height:130px;margin:0 -17px 16px;display:flex;position:relative}.card-art .pill{top:12px;position:absolute;inset-inline-end:12px}.record-card>.text-link{margin-bottom:14px;font-size:15px}.card-field{justify-content:space-between;align-items:center;gap:10px;margin:8px 0;font-size:11px;display:flex}.card-field small{color:var(--muted)}.record-card>.btn{margin-top:12px}.dashboard-heading{justify-content:space-between;align-items:center;padding:8px 2px 25px;display:flex}.dashboard-heading p{color:var(--muted);margin-top:5px;font-size:12px}.date-chip{background:var(--theme-surface,#f8f9fb);color:var(--theme-ink,#77818d);border-radius:5px;align-items:center;gap:8px;padding:9px 12px;font-size:11px;display:flex}.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:20px;display:grid}.stat-card{text-align:start;background:var(--theme-surface,white);border:0;border-radius:8px;align-items:center;gap:15px;padding:23px 20px;display:flex}.stat-card>.lucide{color:#a0acbb;margin-inline-start:auto}.stat-icon{background:var(--theme-surface,#edf4ff);width:47px;height:47px;color:var(--blue);border-radius:12px;justify-content:center;align-items:center;display:flex}.stat-card:nth-child(2) .stat-icon{background:var(--theme-surface,#e5f6f1);color:#2aa082}.stat-card:nth-child(3) .stat-icon{background:var(--theme-surface,#fff4df);color:#d99c35}.stat-card:nth-child(4) .stat-icon{background:var(--theme-surface,#eeeafb);color:#8a6ec6}.stat-card small{color:var(--theme-ink,#8b929a);font-size:11px;display:block}.stat-card strong{letter-spacing:-.6px;margin-top:3px;font-size:24px;display:block}.stat-card:nth-child(3) strong{font-size:21px}.dashboard-grid{grid-template-columns:1.2fr 1fr;gap:20px;display:grid}.chart-panel{min-height:310px;padding:24px 25px}.chart-panel h3{font-size:14px}.chart-panel .text-link{font-size:10px}.bar-chart{flex-direction:column;gap:18px;padding:13px 0;display:flex}.chart-row{grid-template-columns:135px 1fr 40px;align-items:center;gap:15px;font-size:11px;display:grid}.chart-row>span{color:var(--theme-ink,#7b8490);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-row>div{background:var(--theme-surface,#f2f5f9);border-radius:5px;height:10px;overflow:hidden}.chart-row i{border-radius:5px;min-width:2px;height:100%;display:block}.chart-row b{text-align:end;color:var(--theme-ink,#697280);font-size:11px}.task-preview,.recent-change{text-align:start;background:0 0;border:0;border-bottom:1px solid #f0f2f5;align-items:center;gap:12px;width:100%;padding:13px 0;display:flex}.task-preview>div,.recent-change>div{flex:1}.task-preview strong,.recent-change strong{font-size:11px;display:block}.task-preview small,.recent-change small{color:var(--theme-ink,#99a0a9);margin-top:3px;font-size:10px;display:block}.task-marker{border:2px solid #9fc0e6;border-radius:50%;width:11px;height:11px}.task-marker.late{border-color:#e99782}.mini-icon{background:var(--theme-surface,#f1f5fb);color:#729acb;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.health-summary{min-height:0;color:var(--theme-ink,#75a690);align-items:center;gap:16px;margin-top:20px;padding:20px;display:flex}.health-summary>div{color:var(--theme-ink,#5d6873);flex:1}.health-summary strong{font-size:12px}.health-summary p{color:var(--muted);margin-top:4px;font-size:10px}.settings-panel{padding:24px 16px 50px}.settings-panel .page-heading{margin:0 0 28px}.settings-panel .searchbox{height:42px}.settings-panel .searchbox input{width:240px}.settings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:42px 66px;max-width:1080px;margin:32px auto 0;display:grid}.settings-group h3{margin:14px 0 5px;font-size:18px}.settings-group>p{color:var(--theme-ink,#888d92);min-height:75px;font-size:12px;line-height:1.95}.setting-icon{color:var(--blue)}.settings-group ul{margin:19px 0 0;padding:0;list-style:none}.settings-group li{margin:13px 0}.settings-group a{align-items:center;gap:9px;font-size:14px;font-weight:500;line-height:1.75;display:flex;position:relative}.settings-group em{margin-inline-start:3px;font-size:7px;line-height:11px;display:inline-block;position:static}.target-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:15px 0;display:grid}.target-card{border:1px solid var(--line);border-radius:7px;padding:24px}.target-card>.section-title{color:var(--blue);margin:0 0 15px}.target-card p{color:var(--muted);margin:7px 0 20px;font-size:11px}.target-card>strong{font-size:23px;display:block}.target-card>strong small{color:var(--theme-ink,#9da4ae);font-size:12px}.progress{background:var(--theme-surface,#edf0f5);border-radius:7px;height:7px;margin:17px 0 12px;overflow:hidden}.progress i{background:var(--blue);border-radius:7px;height:100%;display:block}.target-footer{justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px;font-size:11px;display:flex}.target-card>small{color:var(--theme-ink,#9ca4ae);font-size:10px}.report-note{color:var(--theme-ink,#939ba5);margin:22px 0 12px;font-size:10px;line-height:1.85}.report-controls{background:var(--theme-surface,#f7f9fc);border:1px solid #edf0f5;border-radius:6px;flex-wrap:wrap;align-items:flex-end;gap:15px;margin-bottom:22px;padding:18px;display:flex}.report-controls label{color:var(--theme-ink,#89919c);flex-direction:column;flex:1;gap:6px;min-width:130px;font-size:10px;display:flex}.report-controls label:first-child{flex:1.5;min-width:180px}.report-controls input,.report-controls select{width:100%;font-size:11px}.report-stats{border:1px solid var(--line);border-radius:7px;grid-template-columns:repeat(5,minmax(0,1fr));margin:18px 0 25px;display:grid}.report-stats>div{border-inline-end:1px solid var(--line);padding:20px}.report-stats>div:last-child{border:0}.report-stats small{color:var(--theme-ink,#9aa1aa);font-size:10px}.report-stats strong{margin-top:5px;font-size:21px;display:block}.report-body{grid-template-columns:1fr 1fr;gap:30px;display:grid}.report-body .chart-panel{padding:20px 10px}.calendar-controls{align-items:center;gap:10px;padding:5px 0 23px;display:flex}.calendar-controls h3{margin:0 10px;font-size:17px}.calendar-controls>.segment{margin-inline-start:auto}.calendar-week{background:var(--theme-surface,#f5f8fc);border:1px solid var(--line);grid-template-columns:repeat(7,1fr);display:grid}.calendar-week span{text-align:center;color:var(--theme-ink,#848f9c);padding:10px;font-size:11px}.calendar-grid{border-inline-start:1px solid var(--line);grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.calendar-day{border-inline-end:1px solid var(--line);border-bottom:1px solid var(--line);min-height:112px;padding:7px;overflow:hidden}.calendar-day.outside{background:var(--theme-surface,#fafbfc);color:#c0c5cc}.day-number{background:0 0;border:0;border-radius:50%;width:25px;height:25px;margin-bottom:5px;font-size:11px}.today .day-number{background:var(--blue);color:#fff}.calendar-event{border:0;border-inline-start:3px solid var(--blue);background:var(--theme-surface,#e8f0fb);text-align:start;white-space:nowrap;text-overflow:ellipsis;color:#4772aa;border-radius:3px;width:100%;margin:4px 0;padding:4px 5px;font-size:9px;display:block;overflow:hidden}.calendar-event.task{background:var(--theme-surface,#e7f4ed);color:var(--theme-ink,#52846b);border-color:#57aa83}.agenda{min-height:350px}.overlay{z-index:70;-webkit-backdrop-filter:blur(1px);backdrop-filter:blur(1px);background:#192f4b57;justify-content:flex-end;display:flex;position:fixed;inset:0}.overlay.center{justify-content:center;align-items:center}.drawer{background:var(--theme-surface,white);flex-direction:column;width:650px;max-width:100vw;height:100%;display:flex;box-shadow:-10px 0 40px #112b4426}.detail-drawer{width:780px}.drawer-header{background:var(--theme-surface,#f9fbfe);border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:23px 25px;display:flex}.drawer-header h2{margin-top:3px;font-size:21px}.drawer-header small{color:var(--theme-ink,#8f9aa9);font-size:10px}.drawer-header .icon-btn{color:var(--theme-ink,#8e99a7)}.form-drawer form{flex-direction:column;flex:1;display:flex;overflow:hidden}.drawer-body{flex:1;padding:25px;overflow-y:auto}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:20px;display:grid}.field{color:var(--theme-ink,#737e8a);flex-direction:column;gap:8px;font-size:11px;display:flex}.field>span b{color:#dc6474}.field input,.field select,.field textarea{width:100%;min-height:38px;font-size:12px}.field input[type=checkbox]{width:20px;height:20px;min-height:0}.drawer-footer{border-top:1px solid var(--line);background:var(--theme-surface,#fbfcfe);justify-content:flex-end;align-items:center;gap:10px;padding:18px 25px;display:flex}.drawer-footer>.btn.primary{padding:10px 22px}.detail-actions{flex-wrap:wrap;align-items:center;gap:7px;padding:17px 25px;display:flex}.detail-actions>.icon-btn{color:#b97e7e;margin-inline-start:auto}.tabbar{border-bottom:1px solid var(--line);gap:22px;padding:0 25px;display:flex;overflow-x:auto}.tabbar>button{color:var(--theme-ink,#929ba5);white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;padding:11px 0;font-size:11px}.tabbar>button.active{border-bottom-color:var(--blue);color:var(--blue)}.detail-grid{grid-template-columns:1fr 1fr;gap:24px;display:grid}.detail-grid small{color:var(--theme-ink,#99a2ac);font-size:10px}.detail-grid p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;font-size:12px;line-height:1.7}.metadata{border-top:1px solid var(--line);color:var(--theme-ink,#9ca5af);flex-direction:column;gap:5px;margin-top:30px;padding-top:20px;font-size:10px;display:flex}.timeline article{gap:17px;min-height:75px;padding-bottom:27px;display:flex;position:relative}.timeline article:not(:last-child):before{content:"";top:30px;bottom:0;border-inline-start:1px solid #e0e7ef;position:absolute;inset-inline-start:16px}.timeline-dot{background:var(--theme-surface,#eaf6f3);color:var(--blue);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:33px;height:33px;display:flex}.timeline article>div{min-width:0;padding-top:4px}.timeline article strong{font-size:12px}.timeline article small{color:var(--theme-ink,#9ca4ae);margin:5px 0;font-size:10px;display:block}.timeline pre{background:var(--theme-surface,#f8fafc);border-radius:5px;max-width:550px;padding:13px;font-size:10px;overflow:auto}.related-card{border:1px solid var(--line);background:var(--theme-surface,white);text-align:start;color:#6389b4;border-radius:7px;align-items:center;gap:15px;width:100%;margin:10px 0;padding:17px;display:flex}.related-card>span{color:var(--ink);flex:1}.related-card strong{font-size:12px;display:block}.related-card small{color:var(--theme-ink,#8b97a3);margin-top:5px;font-size:10px;display:block}.related-card:hover{background:var(--theme-surface,#fcfdff);border-color:#acc8ec}.confirm-dialog{background:var(--theme-surface,white);border-radius:12px;flex-direction:column;gap:16px;width:calc(100% - 32px);max-width:530px;padding:30px;display:flex;box-shadow:0 15px 70px #14284344}.confirm-dialog h3{font-size:20px}.confirm-dialog>div{flex-wrap:wrap;justify-content:flex-end;gap:7px;margin-top:10px;display:flex}.confirm-dialog>p{font-size:12px}.confirm-dialog>.empty-icon{width:54px;height:54px}.toast{z-index:100;color:#fff;background:#293c52;border-radius:8px;align-items:center;gap:12px;max-width:calc(100vw - 30px);padding:13px 15px;font-size:12px;display:flex;position:fixed;bottom:26px;left:50%;transform:translate(-50%);box-shadow:0 5px 22px #132a4944}.toast>.lucide{color:#8cc0b1}.toast>.icon-btn{color:#b9c8d9;width:25px;height:25px}.info-note{background:var(--theme-surface,#f1f6fc);color:#7190b4;border:1px solid #dae6f4;border-radius:6px;padding:14px 16px;font-size:11px;line-height:1.9}.trash-row{border-bottom:1px solid var(--line);align-items:center;gap:18px;padding:16px 5px;display:flex}.trash-row>div{flex:1}.trash-row strong{font-size:13px}.trash-row small{color:var(--muted);margin-top:4px;font-size:10px;display:block}.trash-row>.btn{margin-inline-start:auto}.trash-row>.lucide{color:#87a4c8}.upload-zone{background:var(--theme-surface,#f9fbff);color:#7b9abf;cursor:pointer;text-align:center;border:1px dashed #b4cbe6;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:34px 20px;display:flex}.upload-zone strong{color:#6187b5;font-size:13px}.upload-zone span{color:#9ca7b5;font-size:10px}.upload-zone input{max-width:100%;font-size:11px}.file-row{border:1px solid var(--line);border-radius:6px;align-items:center;gap:12px;margin-top:12px;padding:13px 15px;display:flex}.file-row>.lucide{color:#7a9cc8}.file-row a{overflow-wrap:anywhere;flex:1;font-size:12px}.file-row small{color:var(--muted)}.file-row .icon-btn{color:#b27d7d}.import-layout{grid-template-columns:1.4fr 1fr;gap:60px;padding:15px 20px 35px;display:grid}.import-layout>div>p{margin:12px 0 22px;font-size:12px}.import-layout .field{margin:24px 0}.import-guide{background:var(--theme-surface,#f8fafc);border-radius:8px;padding:24px}.import-guide>.lucide{color:var(--blue)}.import-guide h3{margin:12px 0 18px}.import-guide p{color:var(--theme-ink,#8f99a5);justify-content:space-between;gap:10px;margin:10px 0;font-size:10px;display:flex}.import-guide code{color:#6186b6;font-size:11px}.import-guide>small{color:#9ba5b0;margin-top:20px;line-height:1.8;display:block}.import-result{background:var(--theme-surface,#f0f8f3);border:1px solid #d5e9db;border-radius:6px;padding:20px}.import-result li{color:#ab6969;margin:7px 0;font-size:11px}.import-result ul{max-height:220px;padding-inline-start:20px;overflow:auto}.result-count{color:var(--theme-ink,#8b96a3);margin:12px 0 23px;font-size:12px}.result-count b{color:var(--blue)}.matching-grid{flex-direction:column;gap:15px;display:flex}.match-card{border:1px solid var(--line);border-radius:7px;align-items:center;gap:25px;padding:20px;display:flex}.match-icon{background:var(--theme-surface,#edf3fb);color:#94b1d6;border-radius:7px;justify-content:center;align-items:center;width:100px;height:100px;display:flex}.match-card>div{flex:1}.match-card h3{margin:7px 0}.match-card p{color:var(--theme-ink,#919ca8);margin-bottom:13px;font-size:11px}.match-card strong{color:var(--theme-ink,#657e9b);font-size:16px}.duplicate-group{border:1px solid var(--line);border-radius:7px;margin:20px 0;padding:25px}.duplicate-group>.btn{margin-top:17px}.duplicate-group h3{color:var(--theme-ink,#8293a7);font-size:14px}.search-overlay{justify-content:center;padding-top:13vh}.search-dialog{background:var(--theme-surface,white);border-radius:10px;width:680px;max-width:calc(100vw - 32px);height:max-content;max-height:75vh;overflow:hidden;box-shadow:0 10px 80px #132d4d44}.global-search-input{border-bottom:1px solid var(--line);color:#9aa7b7;align-items:center;gap:14px;padding:18px 23px;display:flex}.global-search-input input{border:0;flex:1;min-width:0;padding:7px 0;font-size:14px;outline:0!important}.search-results{max-height:58vh;padding:10px;overflow-y:auto}.search-results>button{background:var(--theme-surface,white);text-align:start;border:0;border-radius:5px;align-items:center;gap:15px;width:100%;padding:12px;display:flex}.search-results>button:hover{background:var(--theme-surface,#f2f7fe)}.search-results>button>span:nth-child(2){flex:1}.search-results strong{font-size:12px;display:block}.search-results small{color:#9ba4b0;margin-top:4px;font-size:10px;display:block}.search-results p{color:#9aa4b0;text-align:center;padding:30px;font-size:12px}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:30px 0;display:grid}.integration-card{border:1px solid var(--line);border-radius:8px;padding:25px}.integration-card h3{margin:15px 0 10px}.integration-card p{color:var(--theme-ink,#919ba7);min-height:45px;margin-bottom:20px;font-size:12px;line-height:1.9}.integration-card>.btn{float:inline-end}.integration-requirements{background:var(--theme-surface,#f5f8fc);color:var(--theme-ink,#8595aa);clear:both;border-radius:6px;margin-top:25px;padding:15px;font-size:11px;line-height:1.9}.integration-local{background:var(--theme-surface,#f5f9ff);color:var(--blue);border-radius:7px;align-items:center;gap:20px;padding:24px;display:flex}.integration-local>div{color:var(--theme-ink,#64758b);flex:1}.integration-local p{margin-top:7px;font-size:11px;line-height:1.8}.preferences-panel form{flex-direction:column;gap:23px;max-width:570px;padding:15px 0;display:flex}.preferences-panel form>.btn{align-self:flex-start;margin-top:6px}.preferences-panel>.muted{max-width:650px;margin:13px 0 23px;font-size:12px}.preferences-panel>h3{font-size:16px}.help-panel>h1{text-align:center;margin:40px 0 12px;font-size:30px}.help-panel>.muted{text-align:center;margin-bottom:40px}.help-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:20px 10px 35px;display:grid}.help-card{text-align:start;background:var(--theme-surface,white);border:1px solid var(--line);border-radius:8px;padding:25px;display:block;position:relative}.help-card>.lucide:first-child{color:var(--blue);margin-bottom:18px}.help-card h3{margin-bottom:12px;font-size:14px}.help-card p{color:var(--theme-ink,#929daa);font-size:11px;line-height:1.9}.help-card>.lucide:last-child{top:25px;color:#9babc0;position:absolute;inset-inline-end:25px}.help-card:hover{background:var(--theme-surface,#fcfdff);border-color:#a3c3e9}.help-panel>.info-note{margin:0 10px 10px}@media (width>=1600px){.lead-row{grid-template-columns:250px 270px minmax(180px,1fr) auto;gap:20px 28px;min-height:112px;padding:27px 15px 11px}.main{padding-inline:20px}.lead-phone{min-width:220px}.topbar nav a{font-size:13px}.settings-grid{gap:55px 90px;max-width:1180px}.settings-group>p{font-size:13px}}@media (width<=1250px){.top-actions{gap:5px}.topbar nav a{padding-inline:8px;font-size:11px}.lead-row{grid-template-columns:180px 195px 1fr;gap:14px;min-height:140px;padding:20px 12px 10px}.lead-actions{grid-area:2/2/auto/4;justify-content:flex-end}.lead-meta{grid-area:3/1/auto/-1;gap:15px;padding-top:0;overflow-x:auto}.lead-note{grid-area:1/3}.record-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-grid{gap:45px;padding:10px 30px}.stat-card{gap:10px;padding:18px 15px}.stat-card strong{font-size:21px}.stat-card:nth-child(3) strong{font-size:17px}.stat-icon{width:38px;height:38px}.save-status{display:none}.breadcrumb>.icon-btn{margin-inline-start:auto}.target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.list-toolbar{flex-wrap:wrap}.toolbar-right .searchbox input{width:145px}}@media (width<=960px){.topbar nav a span{display:none}.topbar nav a{padding:8px 12px}.topbar nav a em{display:none}.top-actions{gap:6px}.main{padding-inline:12px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}.settings-panel .searchbox input{width:160px}.toolbar-right{width:100%;margin-top:6px}.toolbar-right .searchbox{margin-inline-start:auto}.toolbar-right .searchbox input{width:170px}.lead-row{grid-template-columns:1fr 1fr;gap:18px 10px;padding:22px 15px 13px}.lead-note{grid-area:2/1}.lead-actions{grid-area:3/1/auto/-1;justify-content:flex-start}.lead-meta{grid-row:4}.lead-phone{justify-self:end}.lead-actions .stage-select{margin-inline-start:auto}.lead-note span{max-width:450px}.advanced-filters{grid-template-columns:1fr 1fr}.record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.report-stats>div{border-bottom:1px solid var(--line)}.report-body{grid-template-columns:1fr;gap:0}.help-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.import-layout{grid-template-columns:1fr;gap:30px}.import-guide{max-height:430px;overflow-y:auto}.calendar-day{min-height:100px;padding:4px}.calendar-event{font-size:8px}.health-summary .btn{display:none}}@media (width<=600px){:root{--rail:48px;--header:46px}.brand{width:48px;height:55px}.brand>span{font-size:28px}.side-rail .icon-btn{width:37px}.rail-main{gap:10px}.topbar{padding-inline:6px}.topbar nav{gap:0}.topbar nav a{padding-inline:8px}.topbar nav a svg{width:15px}.top-actions>.icon-btn:nth-of-type(2),.top-actions>.icon-btn:nth-of-type(3){display:none}.topbar .icon-btn{width:25px}.top-actions{gap:0}.top-actions .avatar{width:27px;height:27px;font-size:13px}.top-actions>.relative:nth-last-child(2){display:none}.breadcrumb{gap:8px;height:43px;font-size:9px}.main{padding-inline:8px}.panel{border-radius:7px;padding:17px 12px}.records-panel{padding:14px 9px 0}.page-heading{flex-wrap:wrap;align-items:flex-start;gap:12px}.page-heading h2{font-size:17px}.page-heading .btn{font-size:10px}.filter-top{flex-wrap:wrap;gap:5px;margin-bottom:16px}.filter-top .leads-type{margin-inline-end:auto;font-size:9px}.filter-top select{width:105px;font-size:10px}.filter-top .btn{min-height:31px;font-size:10px}.quick-filters>.segment:first-child{width:100%}.quick-filters .segment button{flex:1;font-size:10px}.quick-filters>select{flex:1;max-width:110px;font-size:10px}.quick-filters .switch-label{margin-top:4px;font-size:10px}.switch-label>span{width:32px;height:19px}.switch-label>span:after{width:13px;height:13px}.switch-label>input:checked+span:after{transform:translate(13px)}.select-all{font-size:9px}.list-toolbar>select{width:50px;font-size:10px}.toolbar-right>select{width:112px;font-size:9px}.toolbar-right>.icon-btn{width:28px}.toolbar-right>.searchbox{flex:1;width:90px;padding-inline:6px}.toolbar-right .searchbox input{width:100%;font-size:10px}.toolbar-right>.icon-btn:first-child{display:none}.lead-row{padding:16px 9px 11px}.lead-identity{gap:6px}.lead-name{max-width:125px;font-size:12px}.lead-identity .icon-btn{display:none}.lead-phone{gap:4px;padding:4px;font-size:9px}.lead-phone>svg:last-child{display:none}.lead-phone span{font-size:8px}.lead-note{font-size:10px}.lead-actions{gap:4px}.circle-action{width:27px;height:27px}.circle-action svg{width:15px}.lead-actions>.circle-action.deal{display:none}.lead-actions .icon-btn{width:24px}.stage-select{width:115px;max-width:115px;height:28px;min-height:28px;font-size:9px}.lead-meta{gap:12px;padding-inline-start:0;font-size:8px}.lead-meta .pill{display:none}.pagination{gap:1px}.pagination>span{font-size:8px}.pagination>.icon-btn{width:24px}.pagination>button{min-width:24px}.pagination>select{width:45px;font-size:9px}.record-grid{grid-template-columns:1fr}.dashboard-heading{align-items:flex-start}.dashboard-heading h1{font-size:21px}.dashboard-heading p{font-size:10px}.date-chip{display:none}.stat-grid{gap:9px}.stat-card{gap:10px;padding:17px 12px}.stat-card>svg{display:none}.stat-card small{font-size:8px}.stat-card strong{font-size:19px}.stat-card:nth-child(3) strong{font-size:13px}.stat-icon{border-radius:8px;width:30px;height:30px}.stat-icon svg{width:18px}.chart-row{grid-template-columns:105px 1fr 30px;gap:10px;font-size:10px}.chart-panel{padding:20px 16px}.settings-grid{grid-template-columns:1fr;gap:35px;margin-top:25px;padding:5px 8px}.settings-group>p{max-width:300px;min-height:0}.settings-group a{font-size:13px}.settings-panel .searchbox{width:100%;height:36px}.settings-panel .searchbox input{width:100%}.target-grid{grid-template-columns:1fr}.report-stats{grid-template-columns:1fr 1fr}.report-stats>div{padding:13px}.report-stats strong{font-size:17px}.report-stats small{font-size:9px}.report-controls{gap:10px;padding:12px}.report-controls label{min-width:100px}.calendar-controls{flex-wrap:wrap;gap:5px}.calendar-controls h3{order:-1;width:100%;margin-bottom:10px;font-size:14px}.calendar-week span{padding:9px 2px;font-size:9px}.calendar-grid{min-width:365px}.calendar-panel{overflow-x:auto}.calendar-day{min-height:90px}.calendar-event{padding:2px 3px;font-size:7px}.form-grid{grid-template-columns:1fr;gap:17px;padding:20px}.drawer-header{padding:19px 20px}.drawer-header h2{font-size:19px}.drawer-footer{padding:15px 20px}.drawer-body{padding:20px}.tabbar{gap:20px;padding-inline:20px}.detail-actions{padding:15px 20px}.detail-actions>.btn{font-size:10px}.detail-grid{gap:20px 12px}.detail-grid p{font-size:11px}.detail-grid small{font-size:9px}.detail-drawer{width:100%}.welcome-strip{flex-wrap:wrap;gap:8px;padding:14px}.welcome-strip>div{width:100%;margin-bottom:5px}.welcome-strip .btn{font-size:10px}.integration-grid{grid-template-columns:1fr}.integration-local{flex-wrap:wrap;padding:17px}.help-grid{grid-template-columns:1fr;margin-inline:0}.help-panel>h1{text-align:start;font-size:23px}.help-panel>.muted{text-align:start;font-size:11px}.import-layout{gap:20px;padding:5px}.match-card{flex-wrap:wrap;gap:15px;padding:15px}.match-icon{width:60px;height:60px}.match-card>div{min-width:150px}.match-card>.btn{margin-inline-start:auto}.match-card p{font-size:10px}.notification-popup{width:270px}.user-popup{width:235px}.popup.add-popup{min-width:220px;inset-inline-end:-90px}.trash-row{flex-wrap:wrap;gap:10px}.trash-row>span{font-size:10px}footer{flex-wrap:wrap;gap:10px;font-size:8px}.footer-right{display:none}.bulkbar{flex-wrap:wrap;font-size:10px}.search-overlay{padding-top:6vh}.global-search-input{padding:12px}.global-search-input input{font-size:12px}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}.auth-screen{background:var(--theme-surface,#f3f7fc);grid-template-columns:1fr 1fr;justify-content:center;align-items:center;gap:100px;min-height:100vh;padding:55px 10%;display:grid}.auth-identity>span{letter-spacing:-8px;color:var(--blue);font-size:100px;font-weight:600;line-height:1}.auth-identity h1{color:#426489;margin-top:20px;font-size:38px}.auth-identity p{color:var(--theme-ink,#7890aa);margin:18px 0;font-size:15px}.auth-identity small{color:#9baabe}.auth-card{background:var(--theme-surface,white);border:1px solid #e1e9f4;border-radius:14px;justify-self:end;width:100%;max-width:470px;padding:38px;box-shadow:0 10px 60px #23476e0b}.auth-card h2{margin-top:18px;font-size:22px}.auth-card>p{color:var(--theme-ink,#96a1af);margin:12px 0 25px;font-size:11px;line-height:1.9}.auth-card form{flex-direction:column;gap:20px;display:flex}.auth-card form>.btn{margin-top:3px;padding:12px}.auth-card>.btn{width:100%}.auth-card>small{color:#a0aab6;margin-top:20px;font-size:10px;line-height:1.9;display:block}.auth-divider{color:#a0a9b5;justify-content:center;align-items:center;margin:25px 0 20px;font-size:10px;display:flex;position:relative}.auth-divider:before,.auth-divider:after{content:"";background:var(--theme-surface,#e8edf4);flex:1;height:1px}.auth-divider span{padding:0 10px}.form-error{background:var(--theme-surface,#fff2f2);color:#c65c5c;border-radius:5px;padding:12px;font-size:11px;line-height:1.8}.permissions-editor,.scopes-editor{border:1px solid var(--line);border-radius:7px;width:100%;padding:15px;font-size:11px}.permissions-heading{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:18px;display:flex}.permissions-heading h3,.scopes-editor h3{align-items:center;gap:8px;font-size:14px;display:flex}.permissions-heading input{width:170px}.permissions-editor th,.permissions-editor td{padding:9px;font-size:10px}.permissions-editor th:not(:first-child),.permissions-editor td:not(:first-child){text-align:center}.permissions-editor select{min-width:125px;font-size:10px}.permissions-editor .info-note{margin-top:15px;font-size:10px}.scopes-editor>p{margin:12px 0 20px;font-size:10px}.scopes-editor>details{border-top:1px solid var(--line);padding:12px 0}.scope-columns{grid-template-columns:1fr 1fr;gap:20px;padding:15px 8px;display:grid}.scope-columns strong{margin-bottom:12px;font-size:10px;display:block}.scope-columns label{align-items:center;gap:8px;margin:10px 0;font-size:11px;display:flex}.preview-access-banner{z-index:55;background:var(--theme-surface,#eff6ff);border:1px solid #afcaed;border-radius:8px;align-items:center;gap:13px;max-width:90vw;padding:12px 18px;font-size:11px;display:flex;position:fixed;bottom:15px;left:50%;transform:translate(-50%);box-shadow:0 4px 30px #1738542e}.preview-access-banner>.lucide{color:var(--blue)}.permissions-editor .info-note,.scopes-editor .muted,.detail-drawer .detail-grid .wide{white-space:normal}@media (width<=900px){.auth-screen{gap:35px;padding:40px 5%}.auth-identity h1{font-size:30px}.auth-card{padding:28px}.auth-identity>span{font-size:80px}}@media (width<=600px){.auth-screen{flex-direction:column;gap:25px;padding:25px 20px;display:flex}.auth-identity{text-align:center}.auth-identity>span{letter-spacing:-4px;font-size:50px}.auth-identity h1{margin-top:10px;font-size:22px}.auth-identity p,.auth-identity small{display:none}.auth-card{padding:25px}.auth-card h2{font-size:20px}.scope-columns{grid-template-columns:1fr}.preview-access-banner{flex-wrap:wrap;width:90vw}.permissions-editor{padding:10px}}.wizard-steps{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:10px;margin-bottom:5px;padding:0 0 25px;display:flex}.wizard-steps button{color:#a0a9b5;background:0 0;border:0;align-items:center;gap:7px;font-size:11px;display:flex}.wizard-steps span{color:#9dabbc;border:1px solid #dce3ed;border-radius:50%;justify-content:center;align-items:center;width:27px;height:27px;display:flex}.wizard-steps button.active{color:var(--blue)}.wizard-steps button.active span,.wizard-steps button.complete span{background:var(--blue);color:#fff;border-color:var(--blue)}@media (width<=600px){.wizard-steps{gap:6px}.wizard-steps button{flex-direction:column;gap:5px;font-size:9px}.wizard-steps span{width:25px;height:25px}}.call-radios{gap:25px;display:flex}.call-radios label,.checkbox-line{color:var(--theme-ink,#7d8997);align-items:center;gap:8px;font-size:12px;display:flex}.call-radios input{accent-color:var(--blue)}.date-shortcuts{flex-wrap:wrap;gap:7px;display:flex}.date-shortcuts .btn{min-height:30px;padding:6px 9px;font-size:10px}.custom-dashboard{padding-bottom:5px}.dashboard-layout-bar{justify-content:space-between;align-items:center;gap:20px;padding:7px 2px 25px;display:flex}.dashboard-layout-bar h2,.dashboard-layout-bar>div{align-items:center;gap:8px;display:flex}.dashboard-layout-bar select{width:180px;font-size:12px}.dashboard-widgets{grid-template-columns:1.1fr 1fr;gap:20px;display:grid}.dashboard-widget{min-height:250px;padding:24px}.dashboard-widget h3{font-size:14px}.dashboard-widget.widget-stages{grid-column:1/-1;min-height:0}.stage-tiles{grid-template-columns:repeat(8,minmax(0,1fr));gap:10px;display:grid}.stage-tiles button{background:var(--theme-surface,#f8fbff);color:var(--theme-ink,#526477);border:1px solid #e5edf7;border-radius:6px;flex-direction:column;align-items:center;gap:7px;min-height:100px;padding:16px 7px;display:flex;position:relative}.stage-tiles strong{color:var(--blue);font-size:25px}.stage-tiles span{font-size:10px}.stage-tiles small{color:#a6b4c5;font-size:9px}.stage-tiles button:hover{border-color:var(--blue);background:var(--theme-surface,#eff6ff)}.dashboard-record{text-align:start;background:0 0;border:0;border-bottom:1px solid #eef1f5;align-items:center;gap:12px;width:100%;padding:12px 0;display:flex}.dashboard-record>span:nth-child(2){flex:1}.dashboard-record strong{font-size:11px;display:block}.dashboard-record small{color:var(--theme-ink,#617386);margin-top:3px;font-size:10px;display:block}.dashboard-record>.lucide{color:#a0aec0}.activity-tiles{grid-template-columns:repeat(3,1fr);gap:15px;padding:12px 0;display:grid}.activity-tiles button{background:0 0;border:0;flex-direction:column;align-items:center;gap:10px;display:flex}.activity-tiles strong{font-size:24px}.activity-tiles small{color:var(--theme-ink,#526477);font-size:11px}.dashboard-created{border-top:1px solid var(--line);color:#9aa5b2;align-items:center;gap:15px;margin-top:15px;padding-top:20px;font-size:10px;display:flex}.dashboard-created span{margin-inline-end:auto}.dashboard-created b{color:#7091b8}.widget-tabs{border-bottom:1px solid var(--line);gap:18px;margin:5px 0 13px;display:flex;overflow-x:auto}.widget-tabs button{color:#96a1b0;white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;padding:11px 0;font-size:10px}.widget-tabs button.active{color:var(--blue);border-color:var(--blue)}.dashboard-empty{color:var(--theme-ink,#617386);text-align:center;padding:45px 10px;font-size:11px}.dashboard-welcome{background:var(--theme-surface,#f1f6ff);border-radius:7px;margin-bottom:17px;padding:18px}.dashboard-welcome span{color:#8c9fb8;font-size:10px}.dashboard-welcome h3{color:var(--theme-ink,#18354a);margin-top:6px;font-size:19px}.dashboard-welcome p{color:var(--theme-ink,#526477);margin-top:9px;font-size:10px}.dashboard-target{padding:13px 0}.dashboard-target strong{font-size:12px;display:block}.dashboard-target span{color:#93a2b5;margin-top:7px;font-size:10px;display:block}.dashboard-target .progress{margin-top:13px}.dashboard-customize{min-height:0;margin-bottom:20px}.dashboard-customize>.checkbox-line{margin:20px 20px 10px 0;display:inline-flex}.dashboard-widget-order{grid-template-columns:1fr 1fr;gap:10px;margin:15px 0 25px;display:grid}.dashboard-widget-order>div{border:1px solid var(--line);border-radius:5px;align-items:center;gap:5px;padding:7px 10px;font-size:11px;display:flex}.dashboard-widget-order span{flex:1}.dashboard-widget-order .btn{min-height:27px;padding:4px 9px}.wide-dashboard .dashboard-widgets{grid-template-columns:1fr 1fr 1fr}.compact-dashboard .dashboard-widgets{gap:12px}.compact-dashboard .dashboard-widget{min-height:200px;padding:18px}.compact-dashboard .dashboard-record{padding:7px 0}.compact-dashboard .stage-tiles button{min-height:75px;padding:10px}@media (width<=1100px){.stage-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}.wide-dashboard .dashboard-widgets{grid-template-columns:1fr 1fr}.dashboard-layout-bar{flex-wrap:wrap;align-items:flex-start}}@media (width<=650px){.dashboard-widgets,.wide-dashboard .dashboard-widgets{grid-template-columns:1fr}.stage-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-layout-bar>div{flex-wrap:wrap;width:100%}.dashboard-layout-bar select{flex:1;min-width:130px}.dashboard-layout-bar .btn{font-size:10px}.dashboard-widget{padding:20px 16px}.dashboard-widget-order{grid-template-columns:1fr}.widget-tabs{gap:13px}}.dashboard-widgets{min-width:0}.dashboard-widgets>.dashboard-widget{min-width:0;max-width:100%}.dashboard-record>span:nth-child(2){overflow-wrap:anywhere;min-width:0}.dashboard-welcome h3,.dashboard-target strong{overflow-wrap:anywhere}.dashboard-created{flex-wrap:wrap}.dashboard-layout-bar>div{min-width:0}.report-filter-grid{background:var(--theme-surface,#f7faff);border:1px solid #e1eaf5;border-radius:7px;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 0;padding:20px;display:grid}.report-filter-grid .btn{align-self:end}.cross-report{grid-template-columns:1fr}.cross-report .table-wrap{max-width:100%;overflow-x:auto}.cross-report th,.cross-report td{white-space:nowrap}.reports-panel .chart-row>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.reports-panel tfoot{background:var(--theme-surface,#f7faff)}@media (width<=900px){.report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.report-filter-grid{grid-template-columns:1fr;gap:15px;padding:15px}.reports-panel,.reports-panel .report-controls,.reports-panel .report-body,.reports-panel .chart-panel{min-width:0}}.bulk-import-entry{background:var(--theme-surface,#f4f8ff);color:#6383ab;border:1px solid #d5e5f8;border-radius:7px;align-items:center;gap:15px;padding:16px;display:flex}.bulk-import-entry>div{flex:1}.bulk-import-entry strong{font-size:12px}.bulk-import-entry p{margin-top:5px;font-size:10px;line-height:1.8}.import-mapping{grid-template-columns:1fr 1fr;gap:15px;margin:20px 0;display:grid}.import-summary{flex-wrap:wrap;gap:20px;padding:18px 0;font-size:12px;display:flex}.import-summary b{color:var(--blue)}.import-progress{color:var(--theme-ink,#7b8fa8);flex-direction:column;gap:9px;margin:20px 0;font-size:11px;display:flex}.import-progress progress{width:100%;height:15px;accent-color:var(--blue)}@media (width<=650px){.bulk-import-entry{flex-wrap:wrap}.bulk-import-entry .btn{width:100%}.import-mapping,.import-layout{grid-template-columns:1fr}.import-guide{min-width:0}.import-guide p{overflow-wrap:anywhere}}.company-owner-strip,.inventory-quick-actions{background:var(--theme-surface,#eff6ff);border:1px solid #cbdff6;border-radius:12px;align-items:center;gap:14px;margin-bottom:16px;padding:16px 20px;display:flex}.company-owner-strip>div,.inventory-quick-actions>div{flex:1}.company-owner-strip strong,.company-owner-strip small{display:block}.company-owner-strip small,.inventory-quick-actions p{color:var(--theme-ink,#647b98);margin-top:5px;line-height:1.8}.mobile-tabs{display:none}.bulk-unit-actions{margin:20px 0}.unit-bulk-table{margin-top:18px}.unit-bulk-table input{width:125px;min-height:44px}.unit-bulk-table th{white-space:nowrap}.unit-bulk-table td{padding:8px}.unit-bulk-table td:nth-child(2) input,.unit-bulk-table td:nth-child(9) input{width:180px}.notification-popup{max-height:75vh;overflow:auto}@media (width<=700px){:root{--rail:0px;--header:64px}body{background:var(--theme-surface,#f2f5fa)}.crm-app{padding-bottom:calc(78px + env(safe-area-inset-bottom))}.side-rail{display:none}.topbar{inset-inline:0;height:calc(64px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 15px 0;gap:10px;top:0}.topbar nav{display:none}.topbar:before{content:"مدار CRM";white-space:nowrap;font-family:Cairo,sans-serif;font-size:20px;font-weight:700}.top-actions{gap:10px;margin-inline-start:auto}.top-actions>.icon-btn{display:none}.top-actions>.relative{display:flex!important}.top-actions>.relative .icon-btn{width:36px;height:42px}.top-actions .avatar{width:35px;height:35px;font-size:17px}.main{padding:calc(64px + env(safe-area-inset-top)) 12px 0;min-width:0;margin:0}.breadcrumb{gap:8px;height:50px;font-size:11px}.save-status{font-size:9px}.mobile-tabs{bottom:0;z-index:45;background:var(--theme-surface,#fff);padding:8px 6px calc(8px + env(safe-area-inset-bottom));border-top:1px solid #dae4ef;justify-content:space-around;display:flex;position:fixed;inset-inline:0;box-shadow:0 -6px 25px #203d6010}.mobile-tabs button{min-width:55px;min-height:49px;color:var(--theme-ink,#76879c);background:0 0;border:0;border-radius:12px;flex-direction:column;align-items:center;gap:5px;padding:5px;font-family:Cairo,sans-serif;font-size:10px;display:flex}.mobile-tabs button.active{color:#115e59;background:var(--theme-surface,#eaf3ff)}.mobile-tabs svg{width:21px;height:21px}.panel{border-radius:16px;padding:18px 14px;box-shadow:0 3px 18px #203d6006}.btn,.icon-btn{min-height:44px}.btn{border-radius:10px;font-size:12px}.field input,.field select,.field textarea{border-radius:10px;min-height:46px;font-size:16px}.page-heading{flex-wrap:wrap;align-items:flex-start}.page-heading h2{font-size:19px}.company-owner-strip,.inventory-quick-actions{border-radius:14px;flex-wrap:wrap;padding:16px}.company-owner-strip>div,.inventory-quick-actions>div{flex-basis:100%}.company-owner-strip .btn{width:100%}.inventory-quick-actions .btn{flex:1}.drawer{height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom);border-radius:18px 18px 0 0;width:100%!important;max-width:100vw!important}.drawer-header{padding:18px}.drawer-body{padding:18px 16px}.drawer-footer{padding-bottom:calc(14px + env(safe-area-inset-bottom))}.form-grid{grid-template-columns:1fr}.field{grid-column:1/-1}.top-actions .popup{top:calc(62px + env(safe-area-inset-top));width:auto;max-height:calc(100dvh - 150px);position:fixed;inset-inline:12px;overflow-y:auto}.records-panel .list-toolbar{flex-wrap:wrap;gap:10px}.filters-bar{overflow-x:auto}.table-wrap{overscroll-behavior-x:contain;max-width:100%}.lead-card{border-radius:14px;margin-block:12px}.lead-name{font-size:16px}.lead-meta{gap:10px;font-size:11px}.lead-actions{flex-wrap:wrap;gap:10px}.lead-actions .circle-action{width:42px;height:42px}.pagination{flex-wrap:wrap;justify-content:center;gap:6px;padding:18px 0}.pagination>span{text-align:center;width:100%}.auth-card{border-radius:20px}.auth-card input{min-height:48px;font-size:16px}.auth-screen{padding:24px 18px}.auth-identity>span{font-size:48px}.report-filter-grid{grid-template-columns:1fr 1fr;gap:12px;padding:12px}.report-filter-grid .field{grid-column:auto}.detail-actions{flex-wrap:wrap}.detail-grid{grid-template-columns:1fr 1fr}.detail-grid p{overflow-wrap:anywhere}.wizard-steps button{font-size:10px}.welcome-strip{flex-wrap:wrap}.welcome-strip>div{flex-basis:100%}.sub-navigation{padding-block:10px}.sub-navigation a{background:var(--theme-surface,#fff);border-radius:12px;min-height:44px;padding:12px 14px}.info-note{font-size:12px;line-height:2}footer{padding-bottom:16px}.footer-right{display:none}}.save-status:has([role=alert]){color:#bd3333;font-weight:600;display:flex}.drawer-body>[role=alert]{line-height:1.9}@media (width<=700px){.breadcrumb:has(.save-status [role=alert]){flex-wrap:wrap;height:auto;min-height:50px;padding-block:10px}.save-status:has([role=alert]){flex-basis:100%;order:5;justify-content:flex-start;font-size:11px}}:root{--navy:#102a43;--mint:#3dd5bc;--copper:#d69b47;--line:#dce5eb;--muted:#526477;--ink:#18354a;--light:#eaf6f3;--blue:#0f766e;--blue-dark:#115e59}body{background:var(--theme-surface,#f3f6fa)}.topbar{background:#102a43;box-shadow:0 2px 12px #102a4310}.topbar nav a.active,.topbar nav a:hover,.topbar .icon-btn:hover{background:#1b4057}.topbar nav a.active:after{content:"";bottom:-3px;background:#3dd5bc;border-radius:3px;height:3px;position:absolute;inset-inline:14px}.side-rail{border-color:#dce5eb}.brand{letter-spacing:0;gap:4px;height:78px}.brand small{letter-spacing:0;color:var(--theme-ink,#102a43);padding:0;font-family:Cairo,sans-serif;font-size:10px}.madar-mark{flex-shrink:0;display:block}.mobile-brand{display:none}.panel{border:1px solid #e2e9ef;box-shadow:0 4px 18px #102a4305}.btn{border-radius:8px;font-weight:500}.btn.primary{box-shadow:0 3px 8px #0f766e16}.pill.blue{background:var(--theme-surface,#e3f2ef);color:#115e59}.pill.amber{background:var(--theme-surface,#fff3df);color:#895615}.pill.red{background:var(--theme-surface,#fef0ee);color:#b42318}.lead-name,.page-heading h2,.dashboard-widget h3{color:var(--theme-ink,#102a43)}.lead-row{border-color:#e2e9ef}.lead-row:hover{background:var(--theme-surface,#fbfdfd)}.stage-tiles button{background:var(--theme-surface,#f4faf8);color:var(--theme-ink,#526477);border-color:#d5e7e2}.stage-tiles strong{color:#0f766e}.stage-tiles button:hover{background:var(--theme-surface,#e9f6f1);border-color:#0f766e}.dashboard-welcome{background:var(--theme-surface,#eef7f4);border-inline-start:3px solid #d69b47}.dashboard-welcome h3{color:var(--theme-ink,#102a43)}.dashboard-welcome p,.dashboard-welcome span{color:var(--theme-ink,#526477)}.company-owner-strip,.inventory-quick-actions,.bulk-import-entry{background:var(--theme-surface,#edf7f4);color:var(--theme-ink,#134e4a);border-color:#c5e2d8}.sales-form-intro{background:var(--theme-surface,#edf7f4);color:#115e59;border:1px solid #cde5dc;border-radius:12px;align-items:flex-start;gap:12px;padding:16px;display:flex}.sales-form-intro p{color:var(--theme-ink,#526477);margin-top:5px;font-size:11px;line-height:1.9}.sales-extra-section{border-top:1px solid #dce5eb;padding:18px 0}.sales-extra-section h3{color:var(--theme-ink,#102a43);margin-bottom:16px;font-size:13px}.sales-extra-section .form-grid{gap:16px}.field{color:var(--theme-ink,#334e68)}.field input,.field select,.field textarea{border-color:#cbd8e1}.field input:focus,.field select:focus,.field textarea:focus{border-color:#0f766e}.auth-screen{background:radial-gradient(at 12% 15%,#e4f3ed,#0000 50%),#f3f6fa}.auth-identity h1{color:var(--theme-ink,#102a43)}.auth-identity p,.auth-identity small{color:var(--theme-ink,#526477)}.auth-card{border-color:#d8e6e0;box-shadow:0 18px 70px #102a430a}.auth-identity .madar-mark{filter:drop-shadow(0 10px 16px #102a4314)}.save-status{color:var(--theme-ink,#526477)}.mobile-tabs button.active{background:var(--theme-surface,#e4f3ee);color:#0f766e}.info-note{background:var(--theme-surface,#eff8f4);color:var(--theme-ink,#325a52);border-color:#cde5dc}.muted{color:var(--theme-ink,#526477)}.section-title h3{color:var(--theme-ink,#102a43)}.circle-action.call{background:var(--theme-surface,#e4f4ed);color:#0b6e4f}.circle-action.meeting{background:var(--theme-surface,#eaf0f8);color:#315d91}.circle-action.deal{background:var(--theme-surface,#fff2dc);color:#93601b}.top-actions .avatar{color:var(--theme-ink,#102a43);background:var(--theme-surface,#e8f5ef)}.topbar .popup{color:#18354a}@media (width<=700px){.topbar:before{display:none}.mobile-brand{color:#fff;align-items:center;gap:9px;font-family:Cairo,sans-serif;font-size:21px;display:flex}.mobile-brand .madar-mark{width:35px;height:35px}.auth-identity .madar-mark{width:80px;height:80px;margin:auto}.sales-form-intro{padding:13px}.sales-extra-section .form-grid{grid-template-columns:1fr}.panel{box-shadow:0 5px 20px #102a4306}.mobile-tabs{border-color:#d9e6e1}.topbar nav a.active:after{display:none}}.discard-confirm{z-index:130}.discard-confirm .confirm-dialog{border-top:4px solid #d69b47}.discard-confirm .confirm-dialog p{color:var(--theme-ink,#526477);line-height:2}.madar-dashboard{--md-ink:#102a43;--md-teal:#0f766e;max-width:1600px;margin:auto;padding-bottom:25px}.md-hero{color:#fff;background:#102a43;border-radius:24px;justify-content:space-between;gap:35px;padding:36px 40px;display:flex;position:relative;overflow:hidden}.md-hero:before{content:"";pointer-events:none;border:1px solid #3dd5bc25;border-radius:50%;width:330px;height:330px;position:absolute;top:-200px;left:18%;transform:rotate(-25deg)}.md-hero:after{content:"";pointer-events:none;border:1px solid #d69b4730;border-radius:50%;width:400px;height:200px;position:absolute;top:40px;left:10%;transform:rotate(-30deg)}.md-hero>div,.md-hero aside{z-index:1;position:relative}.md-eyebrow{letter-spacing:1px;color:#88e2d0;font-size:11px}.md-hero h1{margin:12px 0;font-size:30px;font-weight:700}.md-hero p{color:#c1d1df;font-size:13px}.md-hero-actions{gap:10px;margin-top:25px;display:flex}.md-hero-actions .btn{color:#fff;background:#21445b;border-color:#456277;border-radius:11px;min-height:42px}.md-hero-actions .primary{color:var(--theme-ink,#102a43);background:#3dd5bc;border-color:#3dd5bc}.md-hero aside{border-right:1px solid #ffffff25;min-width:200px;padding-right:30px}.md-hero aside>span{color:#c1d1df;font-size:11px}.md-hero aside>div{align-items:baseline;gap:14px;margin:15px 0;display:flex}.md-hero aside strong{color:#fff;font-size:45px}.md-hero aside small{color:#c1d1df}.md-hero aside button{color:#8be5d2;background:0 0;border:0;align-items:center;gap:8px;display:flex}.md-preset-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0;display:grid}.md-preset-grid>button{text-align:start;background:var(--theme-surface,white);color:var(--theme-ink,#526477);border:1px solid #d9e4e8;border-radius:15px;align-items:center;gap:13px;min-width:0;padding:18px 16px;display:flex}.md-preset-grid>button>span{flex:1;min-width:0}.md-preset-grid strong{color:var(--theme-ink,#18354a);font-size:13px;display:block}.md-preset-grid small{margin-top:5px;font-size:10px;line-height:1.8;display:block}.md-preset-grid .active{background:var(--theme-surface,#eaf6f1);border-color:#0f766e;box-shadow:0 0 0 1px #0f766e}.md-preset-grid .active>svg{color:#0f766e}.md-toolbar{justify-content:space-between;align-items:center;gap:18px;margin:30px 2px 20px;display:flex}.md-toolbar h2{font-size:22px}.md-toolbar>div>span{color:var(--theme-ink,#526477);margin-top:7px;font-size:11px;display:block}.md-toolbar>div+div{flex-wrap:wrap;gap:8px;display:flex}.md-toolbar .btn{min-height:39px;font-size:11px}.md-pipeline-summary{background:var(--theme-surface,#fff);border:1px solid #dce5eb;border-radius:15px;align-items:center;gap:20px;margin-bottom:22px;padding:20px 24px;display:flex}.md-pipeline-summary>span{color:var(--theme-ink,#526477);align-items:center;gap:9px;font-size:12px;display:flex}.md-pipeline-summary>div{flex-wrap:wrap;flex:1;gap:15px;display:flex}.md-pipeline-summary strong{color:var(--theme-ink,#102a43);font-size:18px}.md-pipeline-summary button,.md-card-actions>button{color:#0f766e;background:0 0;border:0;font-size:11px}.md-widget-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:22px;display:grid}.md-widget{background:var(--theme-surface,white);border:1px solid #dce5eb;border-radius:18px;grid-column:span 6;min-width:0;padding:24px;box-shadow:0 4px 15px #102a4303}.md-widget-stats{grid-column:span 12}.md-widget-stages{grid-area:span 2/span 7}.md-widget-changes,.md-widget-sources{grid-column:span 5}.md-widget>header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px;display:flex}.md-widget h3{color:var(--theme-ink,#102a43);font-size:15px}.md-widget header small{color:var(--theme-ink,#526477);margin-top:6px;font-size:10px;display:block}.md-widget header select{border:1px solid #dce5eb;font-size:11px}.md-stats{grid-template-columns:repeat(4,1fr);gap:20px;display:grid}.md-stats button{border:0;text-align:start;background:0 0;border-inline-end:1px solid #e4ebef;grid-template-rows:1fr 1fr;grid-template-columns:42px 1fr;column-gap:14px;padding:10px;display:grid}.md-stats button:last-child{border:0}.md-stats button>svg{background:var(--theme-surface,#eaf6f1);box-sizing:content-box;color:#0f766e;border-radius:13px;grid-row:span 2;padding:12px}.md-stats strong{color:var(--theme-ink,#102a43);font-size:30px;line-height:1.1}.md-stats span{color:var(--theme-ink,#526477);font-size:11px}.md-footnote{color:var(--theme-ink,#617386);border-top:1px solid #edf1f4;margin-top:20px;padding-top:12px;font-size:10px;display:block}.md-stage-list{gap:4px;max-height:610px;display:grid;overflow:auto}.md-stage-list button{background:var(--theme-surface,white);text-align:start;border:0;border-bottom:1px solid #eef2f4;align-items:center;gap:12px;width:100%;padding:12px 0;display:flex}.md-stage-list button:hover{background:var(--theme-surface,#f6faf8)}.md-stage-number{color:var(--theme-ink,#688292);width:24px;font-size:10px}.md-stage-name{color:var(--theme-ink,#334e68);flex:1;font-size:11px}.md-stage-name i{background:var(--theme-surface,#edf2f4);border-radius:10px;height:4px;margin-top:9px;display:block;overflow:hidden}.md-stage-name b{background:#0f766e;border-radius:10px;min-width:0;height:100%;display:block}.md-stage-list strong{text-align:center;min-width:25px;color:var(--theme-ink,#102a43);font-size:20px}.md-stage-list small{color:var(--theme-ink,#688292);width:32px;font-size:10px}.md-record{text-align:start;background:0 0;border:0;border-bottom:1px solid #edf2f4;align-items:center;gap:12px;width:100%;padding:14px 0;display:flex}.md-record-icon{background:var(--theme-surface,#edf7f3);color:#0f766e;border-radius:11px;padding:10px;display:flex}.md-record-icon.events{background:var(--theme-surface,#fdf3e4);color:#895615}.md-record-icon.deals{background:var(--theme-surface,#eaf0f8);color:#315d91}.md-record>span:nth-child(2){flex:1;min-width:0}.md-record strong{color:var(--theme-ink,#18354a);overflow-wrap:anywhere;font-size:12px;display:block}.md-record small{color:var(--theme-ink,#526477);margin-top:5px;font-size:10px;display:block}.md-record>svg{color:var(--theme-ink,#688292)}.md-empty{text-align:center;color:var(--theme-ink,#526477);padding:35px 15px;font-size:12px;line-height:2}.md-empty>svg{color:#0f766e;margin-bottom:12px}.md-card-actions{justify-content:space-between;gap:12px;padding-top:18px;display:flex}.md-card-actions .btn{font-size:11px}.md-live-dot{color:#0f766e;font-size:10px}.md-live-dot:before{content:"";background:#0f766e;border-radius:50%;width:6px;height:6px;margin-inline-end:6px;display:inline-block}.md-source-list>div{align-items:center;gap:12px;margin-bottom:22px;display:flex}.md-source-dot{border-radius:3px;width:9px;height:9px}.md-source-list>div>span:nth-child(2){flex:1;font-size:12px}.md-source-list i{background:var(--theme-surface,#edf2f4);border-radius:6px;height:5px;margin-top:9px;display:block;overflow:hidden}.md-source-list b{background:#0f766e;height:100%;display:block}.md-target{border-bottom:1px solid #edf2f4;padding:14px 0}.md-target>div{justify-content:space-between;gap:10px;font-size:12px;display:flex}.md-target b{color:#0f766e}.md-target progress{accent-color:#0f766e;width:100%;height:7px;margin:12px 0}.md-target small{color:var(--theme-ink,#526477);font-size:10px}.md-message{background:var(--theme-surface,#eaf6f1);color:#115e59;border:1px solid #b9dcd0;border-radius:10px;margin-bottom:18px;padding:12px 16px;font-size:12px}.md-editor{background:var(--theme-surface,white);border:1px solid #badbce;border-radius:18px;margin-bottom:24px;padding:25px}.md-editor h3{margin-bottom:20px}.md-editor .field{max-width:420px}.md-editor-pick{flex-wrap:wrap;gap:20px;margin:25px 0;display:flex}.md-editor-pick label{align-items:center;gap:8px;font-size:12px;display:flex}.md-editor-order{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px;display:grid}.md-editor-order>div{border:1px solid #dce5eb;border-radius:10px;align-items:center;gap:8px;padding:8px 13px;display:flex}.md-editor-order span{flex:1;font-size:12px}.md-editor-order .btn{min-height:30px;padding:5px 10px}.madar-focus .md-widget-tasks{border-top:3px solid #0f766e;grid-area:span 2/span 7}.madar-focus .md-widget-meetings,.madar-focus .md-widget-changes{grid-column:span 5}.madar-focus .md-widget-stats{grid-column:span 12}.madar-focus .md-widget-stages{grid-area:auto/span 12}.madar-focus .md-stage-list{grid-template-columns:1fr 1fr;gap:0 25px;max-height:320px}.madar-executive .md-widget-targets,.madar-executive .md-widget-sources,.madar-executive .md-widget-changes{grid-column:span 4}.madar-executive .md-widget-stages{grid-area:auto/span 8}.madar-executive .md-widget-stats{color:#fff;background:#102a43}.madar-executive .md-stats button{border-color:#ffffff25}.madar-agenda .md-widget-meetings{border-top:3px solid #d69b47;grid-area:span 2/span 7}.madar-agenda .md-widget-tasks,.madar-agenda .md-widget-changes{grid-column:span 5}.madar-agenda .md-widget-targets{grid-column:span 12}.madar-agenda .md-hero{background:var(--theme-surface,#edf6f1);color:var(--theme-ink,#102a43);border:1px solid #c9e0d4}.madar-agenda .md-hero h1,.madar-agenda .md-hero aside strong{color:var(--theme-ink,#102a43)}.madar-agenda .md-eyebrow,.madar-agenda .md-hero aside button{color:#0f766e}.madar-agenda .md-hero p,.madar-agenda .md-hero aside>span,.madar-agenda .md-hero aside small{color:var(--theme-ink,#526477)}@media (width<=1050px){.md-preset-grid{grid-template-columns:1fr 1fr}.md-hero{padding:28px}.md-toolbar{flex-wrap:wrap;align-items:flex-start}.md-widget-grid{gap:16px}.md-widget{padding:20px}.md-stats{gap:10px}.md-stats button{column-gap:8px}.md-stats strong{font-size:25px}.madar-executive .md-widget-targets,.madar-executive .md-widget-sources,.madar-executive .md-widget-changes{grid-column:span 6}}@media (width<=700px){.md-hero{border-radius:20px;padding:24px 20px;display:block}.md-hero h1{font-size:24px}.md-hero aside{border:0;border-top:1px solid #ffffff20;grid-template-columns:1fr 1fr;gap:8px;min-width:0;margin-top:24px;padding:16px 0 0;display:grid}.md-hero aside>div{grid-row:span 2;justify-content:flex-end;margin:0}.md-hero aside strong{font-size:35px}.md-hero aside small{font-size:10px}.md-hero aside button{text-align:start;font-size:10px}.md-preset-grid{gap:9px;margin:15px 0}.md-preset-grid>button{border-radius:12px;gap:8px;padding:13px 10px}.md-preset-grid>button>svg{width:17px}.md-preset-grid strong{font-size:11px}.md-preset-grid small{font-size:9px}.md-toolbar{gap:15px;margin:22px 0 15px}.md-toolbar>div+div{width:100%}.md-toolbar .btn{flex:1;font-size:10px}.md-toolbar h2{font-size:20px}.md-pipeline-summary{flex-wrap:wrap;gap:10px;padding:16px}.md-pipeline-summary>span{width:100%;font-size:11px}.md-pipeline-summary strong{font-size:16px}.md-pipeline-summary button{font-size:10px}.md-widget-grid{flex-direction:column;gap:15px;display:flex}.md-widget{border-radius:16px;padding:20px 16px}.md-stats{grid-template-columns:1fr 1fr;gap:15px}.md-stats button{border:0;grid-template-columns:34px 1fr;column-gap:10px;padding:7px}.md-stats button>svg{border-radius:9px;width:17px;height:17px;padding:8px}.md-stats strong{font-size:26px}.md-stats span{font-size:10px}.md-stage-list{max-height:390px}.madar-focus .md-stage-list{grid-template-columns:1fr}.md-editor{padding:18px}.md-editor-order{grid-template-columns:1fr}.md-editor-pick{gap:15px}.md-record strong{font-size:12px}.md-widget h3{font-size:14px}}.import-history{border-top:1px solid #dce5eb;margin-top:35px;padding-top:25px}.import-history .muted{margin-bottom:20px;font-size:11px;line-height:2}.import-history h3{align-items:center;gap:8px;display:flex}.import-history table{width:100%}.import-batch-details{width:95vw;max-width:650px}.import-history-errors{text-align:start;max-height:45vh;margin:18px 0;overflow:auto}.import-history-errors p{overflow-wrap:anywhere;border-bottom:1px solid #edf2f4;padding:10px 0;font-size:12px}.import-batch-details small{color:var(--theme-ink,#526477);margin-top:15px;font-size:10px;display:block}.record-filter-builder{background:var(--theme-surface,#f8fcfa);border:1px solid #cbded7;border-radius:14px;margin:18px 0;padding:22px}.record-filter-builder .page-heading{align-items:flex-start}.record-filter-builder h3{font-size:14px}.record-filter-builder .muted{font-size:11px;line-height:1.9}.record-filter-builder>.field{max-width:260px;margin-bottom:18px}.record-filter-rule{grid-template-columns:25px 1.2fr 1fr 1.2fr auto;align-items:center;gap:10px;margin:12px 0;display:grid}.record-filter-rule>span{color:var(--theme-ink,#526477);font-size:11px}.record-filter-rule input,.record-filter-rule select{width:100%;min-width:0}.record-filter-rule:has(select:nth-child(3):last-of-type){min-width:0}@media (width<=700px){.record-filter-builder{padding:16px}.record-filter-rule{border-bottom:1px solid #dce5eb;grid-template-columns:20px 1fr 1fr;gap:8px;padding-bottom:15px}.record-filter-rule input,.record-filter-rule select:nth-child(4){grid-column:2/4}.record-filter-rule .btn{grid-column:3}.record-filter-builder .page-heading{flex-wrap:wrap}}.module-intro{--module-accent:#0f766e;background:var(--theme-surface,#fff);border:1px solid #dae5e8;border-radius:24px;grid-template-columns:1.5fr 1fr;gap:24px;margin:8px 0 24px;padding:32px;display:grid;position:relative;overflow:hidden}.module-eyebrow{color:var(--module-accent);align-items:center;gap:10px;font-size:12px;font-weight:600;display:flex}.module-intro h1{letter-spacing:-.5px;color:var(--theme-ink,#102a43);margin:12px 0 8px;font-size:28px;line-height:1.5}.module-intro p{color:var(--theme-ink,#617589);max-width:520px;font-size:13px;line-height:1.9}.module-primary-actions{gap:10px;margin-top:22px;display:flex}.module-primary-actions .primary{background:var(--module-accent);border-color:var(--module-accent)}.module-intro-numbers{isolation:isolate;border-inline-start:1px solid #dce7e6;justify-content:center;align-items:center;gap:36px;display:flex;position:relative}.module-intro-numbers>svg{opacity:.045;z-index:-1;width:200px;height:200px;position:absolute;inset-inline-end:-20px}.module-intro-numbers span{color:var(--theme-ink,#617589);max-width:110px;font-size:11px;display:block}.module-intro-numbers strong{color:var(--module-accent);font-size:44px;font-weight:600;line-height:1.4;display:block}.module-deals{--module-accent:#60459a;background:var(--theme-surface,#fcfaff)}.module-units{--module-accent:#9b6a31;background:linear-gradient(120deg,#fff,#faf5eb)}.module-tasks{--module-accent:#2b657d;background:var(--theme-surface,#f2f8fb)}.module-cases{--module-accent:#b35b48;background:var(--theme-surface,#fff8f5)}.module-projects{--module-accent:#3e6757;background:var(--theme-surface,#f2f7f1)}.module-activities{--module-accent:#506895;background:var(--theme-surface,#f5f7fc)}.module-users,.module-groups{--module-accent:#7c5579;background:var(--theme-surface,#faf5fb)}.module-notes{--module-accent:#98752f;background:var(--theme-surface,#fffcf1)}.module-reservations{--module-accent:#7353a0}.module-rentals{--module-accent:#326e8e}.module-blocks{--module-accent:#9d7138}.module-resources{--module-accent:#40614f}.module-requests{--module-accent:#427c77}.module-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:20px;display:grid}.module-card{background:var(--theme-surface,white);border:1px solid #dce5eb;border-radius:18px;flex-direction:column;min-width:0;padding:22px;display:flex;box-shadow:0 3px 12px #102a4304}.module-card-top{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.module-card-symbol{color:#0f766e;background:var(--theme-surface,#eef7f3);border-radius:14px;place-items:center;width:52px;height:52px;font-weight:600;display:grid}.module-card-title{text-align:start;color:var(--theme-ink,#102a43);overflow-wrap:anywhere;background:0 0;border:0;padding:0;font-size:16px;font-weight:600;line-height:1.7}.module-card p{color:var(--theme-ink,#617589);margin:12px 0;font-size:12px;line-height:1.9}.module-card-value{border-bottom:1px solid #edf2f4;justify-content:space-between;gap:10px;padding:10px 0;font-size:11px;display:flex}.module-card-value span{color:var(--theme-ink,#617589)}.module-card-value strong{overflow-wrap:anywhere;font-weight:500}.module-card-footer{justify-content:space-between;gap:10px;margin-top:auto;padding-top:20px;display:flex}.module-card-footer .btn{font-size:11px}.property-specs{flex-wrap:wrap;gap:8px;margin:8px 0 20px;font-size:10px;display:flex}.property-specs span{background:var(--theme-surface,#f5f6f8);border-radius:7px;padding:6px 9px}.property-price{color:var(--theme-ink,#102a43);font-size:23px;font-weight:600}.card-units{border-top:4px solid #bc9761}.card-units .module-card-top{background:linear-gradient(140deg,#f6efe5,#eef3f3);margin:-19px -22px 20px;padding:30px 22px}.card-units .module-card-symbol{color:#9b6a31;background:#ffffffb0;width:65px;height:65px}.card-projects{border-top:4px solid #739987}.card-users{text-align:center}.card-users .module-card-top{justify-content:center;gap:16px}.card-users .module-card-symbol{color:var(--theme-ink,#7c5579);background:var(--theme-surface,#f4edf5);border-radius:50%}.card-cases{border-inline-start:4px solid #d28e7d}.card-cases dl{margin:0 0 10px;font-size:11px}.card-cases dl>div{justify-content:space-between;gap:14px;padding:8px 0;display:flex}.card-cases dt{color:var(--theme-ink,#617589)}.card-cases dd{overflow-wrap:anywhere;margin:0}.card-cases p{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.cards-notes{align-items:start}.card-notes{background:var(--theme-surface,#fffdf2);border:1px solid #eee7cb;border-radius:5px 5px 18px 18px;box-shadow:4px 5px #f4f0de}.card-notes .note-excerpt{white-space:pre-wrap;max-height:220px;overflow:auto}.cards-activities{border-inline-start:2px solid #dce5eb;grid-template-columns:1fr;gap:0;margin:20px;padding:0 22px}.card-activities{border:0;box-shadow:none;border-bottom:1px solid #e3ebef;border-radius:0;padding:20px 8px;position:relative}.card-activities:before{content:"";inset-inline-start:-29px;background:#607ca5;border:3px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;top:40px}.card-activities .module-card-top{margin-bottom:6px}.card-activities .module-card-symbol{width:35px;height:35px}.card-activities .module-card-footer{justify-content:flex-end}.card-tasks{border-top:3px solid #6d9cb1}.card-tasks p{align-items:center;gap:7px;display:flex}.page-reports .reports-panel{border-top:4px solid #4c7773;border-radius:22px}.page-settings .settings-panel{background:var(--theme-surface,#f7f9fc);border:0}.page-import .panel{border-top:4px solid #6d8ca6}.page-matching .panel{border-top:4px solid #d6a56d}.filter-date-range{flex-wrap:wrap;gap:6px;display:flex}.filter-date-range>input{flex:1;min-width:120px}.stage-tabs{scrollbar-width:thin}.module-intro .btn:focus-visible,.module-card button:focus-visible{outline-offset:3px;outline:3px solid #d69b47}@media (width<=1050px){.module-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.module-intro{grid-template-columns:1.4fr 1fr;padding:25px}.module-intro-numbers{gap:20px}.module-intro h1{font-size:24px}}@media (width<=700px){.module-intro{border-radius:18px;margin:8px 0 16px;padding:22px 18px;display:block}.module-intro h1{font-size:22px}.module-intro p{font-size:12px}.module-intro-numbers{border-inline-start:0;border-top:1px solid #dce7e6;justify-content:space-between;margin-top:20px;padding-top:15px}.module-intro-numbers>div{align-items:center;gap:12px;display:flex}.module-intro-numbers strong{font-size:29px}.module-intro-numbers span{max-width:80px;font-size:10px}.module-intro-numbers>svg{display:none}.module-cards{grid-template-columns:1fr;gap:14px;padding:12px}.module-card{padding:18px}.card-units .module-card-top{margin:-15px -18px 18px;padding:22px 18px}.module-card-title{font-size:16px}.module-primary-actions{flex-wrap:wrap}.module-primary-actions .btn{font-size:11px}.cards-activities{padding:0 18px}.card-activities:before{inset-inline-start:-25px}}.language-switch{background:var(--theme-surface,white);color:#0f766e;white-space:nowrap;border:1px solid #dce5eb;border-radius:10px;align-items:center;gap:7px;padding:8px 10px;font-size:11px;display:flex}.auth-language-frame{min-height:100vh}.auth-language-switch{top:22px;z-index:10;background:var(--theme-surface,#fff);color:#0f766e;border:1px solid #d5e4df;border-radius:20px;align-items:center;gap:8px;padding:10px 17px;font-size:12px;display:flex;position:fixed;inset-inline-end:25px;box-shadow:0 4px 20px #102a430a}.auth-language-switch svg{width:17px;height:17px}.app[dir=rtl] .module-card-title,.app[dir=rtl] .module-intro-copy{text-align:right}.app[dir=ltr] .module-card-title,.app[dir=ltr] .module-intro-copy{text-align:left}.module-card small,.module-card time{color:var(--theme-ink,#617589);font-size:11px}.report-more-filters{background:var(--theme-surface,#f7faf9);border-radius:16px;margin:18px 0;padding:22px}.record-filter-rule select[multiple]{min-height:90px}.filter-date-range input{font-size:12px}@media (width<=700px){.language-switch{padding:8px;font-size:10px}.language-switch svg{display:none}.auth-language-switch{top:14px;inset-inline-end:14px}.module-intro-numbers{flex-wrap:wrap;row-gap:15px}}.support-contact{background:var(--theme-surface,#edf6f2);border:1px solid #cfdfd7;border-radius:20px;flex-wrap:wrap;align-items:center;gap:18px;margin-bottom:24px;padding:24px;display:flex}.support-contact .support-icon{background:var(--theme-surface,white);color:#0f766e;border-radius:16px;place-items:center;width:58px;height:58px;display:grid}.support-contact h3{margin:0;font-size:18px}.support-contact p{color:var(--theme-ink,#617589);font-size:12px}.support-contact a{color:#0f766e;background:var(--theme-surface,white);overflow-wrap:anywhere;border:1px solid #bcd6ca;border-radius:10px;align-items:center;gap:9px;padding:12px 16px;font-size:13px;display:flex}.support-contact a svg{width:16px}.caller-id-card{background:var(--theme-surface,#f7fafc);border:1px solid #d9e5eb;border-radius:18px;margin:26px 0;padding:24px}.caller-id-card h3{align-items:center;gap:10px;display:flex}.caller-id-card p{color:var(--theme-ink,#526477);font-size:12px;line-height:1.9}.caller-id-card .field{max-width:280px;margin:20px 0}.call-evidence{align-items:center;gap:12px;margin-top:10px;font-size:11px;display:flex}.followup-schedule{display:contents}.duplicate-exception{background:var(--theme-surface,#fffaf0);border:1px solid #e8d9b9;border-radius:12px;padding:16px}.circle-action.dial{color:#fff;background:#0f766e;border-color:#0f766e}.circle-action.dial:disabled{opacity:.4}.lead-phone button:focus-visible{outline:2px solid #0f766e}.crm-app[dir=rtl] .module-card-title,.crm-app[dir=rtl] .module-intro-copy{text-align:right}.crm-app[dir=ltr] .module-card-title,.crm-app[dir=ltr] .module-intro-copy{text-align:left}.field select[multiple]{min-height:100px}@media (width<=700px){.support-contact{gap:12px;padding:18px}.support-contact>div{flex:1}.support-contact a{justify-content:center;width:100%;font-size:12px}.caller-id-card{padding:18px}}.module-card-top{flex-wrap:wrap;gap:8px}.report-records{border-top:1px solid #dce5eb;margin:24px 0;padding-top:20px}.report-records .field{max-width:140px}.report-records .page-heading h3{font-size:16px}.report-records .inline-buttons{justify-content:center;margin:18px 0}.report-records td{font-size:12px}.settings-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 26px;display:grid}.settings-shortcuts button{background:var(--theme-surface,white);text-align:start;color:var(--theme-ink,#102a43);border:1px solid #dce5eb;border-radius:14px;align-items:center;gap:12px;padding:20px;font-size:13px;display:flex}.settings-shortcuts svg{color:#0f766e}.settings-shortcuts button:hover{background:var(--theme-surface,#f4faf7);border-color:#80b2a7}.list-toolbar>select,.pagination>select{flex-shrink:0;min-width:80px;padding-inline:12px 24px}.record-filter-builder .field input{min-width:0}.settings-shortcuts button:focus-visible{outline:3px solid #d69b47}@media (width<=700px){.settings-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.settings-shortcuts button{padding:16px 12px;font-size:12px}.list-toolbar>select,.pagination>select{width:78px;min-width:78px;padding-inline:10px 24px}.module-card-top .pill{white-space:normal;max-width:135px}}.report-filter-grid .field{min-width:0;max-width:100%}.report-filter-grid input,.report-filter-grid select{width:100%;min-width:0;max-width:100%}.report-records,.export-history,.report-body>*{min-width:0}.report-records .table-wrap{max-width:100%;overflow-x:auto}.madar-dashboard .md-hero{border-radius:18px;min-height:0;padding:24px 28px}.madar-dashboard .md-hero h1{margin:7px 0;font-size:27px}.madar-dashboard .md-hero aside strong{font-size:34px}.madar-dashboard .md-hero aside>div{margin:8px 0}.md-priorities{background:var(--theme-surface,#fff);border:1px solid #dae7e4;border-radius:18px;margin:20px 0;padding:24px}.md-priority-heading{justify-content:space-between;align-items:center;gap:20px;display:flex}.md-priority-heading h2{color:var(--theme-ink,#102a43);margin:0;font-size:22px}.md-priority-heading p{color:var(--theme-ink,#60758a);margin:7px 0;font-size:12px;line-height:1.8}.md-priority-heading .searchbox{min-width:260px}.md-priority-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0;display:grid}.md-priority-tabs button{text-align:start;background:var(--theme-surface,#f7faf9);color:var(--theme-ink,#496275);cursor:pointer;border:1px solid #dce8e4;border-radius:12px;grid-template-columns:25px 1fr;gap:6px 12px;padding:16px;display:grid}.md-priority-tabs button[aria-pressed=true]{background:var(--theme-surface,#e8f6f0);color:#115e59;border-color:#0f766e}.md-priority-tabs svg{grid-row:span 2;align-self:center}.md-priority-tabs strong{color:var(--theme-ink,#102a43);font-size:25px}.md-priority-tabs span{font-size:12px}.md-priority-queue>div{border-top:1px solid #eaf0ee;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;display:flex}.md-priority-record{text-align:start;cursor:pointer;background:0 0;border:0;flex-direction:column;gap:6px;min-width:0;display:flex}.md-priority-record strong{overflow-wrap:anywhere;font-size:13px}.md-priority-record small{color:var(--theme-ink,#697f90);font-size:11px}.md-priority-empty{color:var(--theme-ink,#5f7b70);justify-content:center;align-items:center;gap:10px;padding:20px;font-size:13px;display:flex}.md-preset-grid>button{padding:14px 18px}.madar-overview .md-widget-stages{grid-area:auto/span 6}.madar-overview .md-widget-tasks,.madar-overview .md-widget-meetings,.madar-overview .md-widget-stats{grid-column:span 6}@media (width<=700px){.madar-dashboard .md-hero{padding:20px}.madar-dashboard .md-hero aside{display:none}.md-priorities{padding:17px 14px}.md-priority-heading{display:block}.md-priority-heading h2{font-size:20px}.md-priority-heading .searchbox{width:100%;min-width:0;margin-top:12px}.md-priority-heading input{width:100%;min-width:0}.md-priority-tabs{grid-template-columns:1fr 1fr;gap:8px}.md-priority-tabs button{gap:4px 8px;padding:12px}.md-priority-tabs span{font-size:11px}.md-priority-queue .btn{flex-shrink:0;font-size:11px}.md-preset-grid>button{padding:12px}}.md-company-setup{background:var(--theme-surface,#fff);border:1px solid #dae7e4;border-radius:15px;margin:16px 0;padding:18px 22px}.md-company-setup summary{cursor:pointer;color:var(--theme-ink,#164b45);align-items:center;gap:10px;display:flex}.md-company-setup summary>span{background:var(--theme-surface,#edf6f1);border-radius:18px;margin-inline-start:auto;padding:5px 12px;font-size:12px}.md-company-setup>p{color:var(--theme-ink,#60758a);font-size:12px;line-height:1.8}.md-company-setup>div{grid-template-columns:1fr 1fr;gap:10px;display:grid}.md-company-setup article{border-top:1px solid #ecf1ef;align-items:center;gap:12px;padding:14px 0;display:flex}.md-company-setup article>div{flex:1;min-width:0}.md-company-setup article strong{font-size:13px;display:block}.md-company-setup article small{color:var(--theme-ink,#60758a);margin-top:5px;font-size:11px;line-height:1.7;display:block}.md-company-setup footer{flex-wrap:wrap;gap:10px;margin-top:14px;display:flex}@media (width<=700px){.md-company-setup{padding:15px}.md-company-setup>div{grid-template-columns:1fr}.md-company-setup article .btn{font-size:11px}}.md-backup-status{background:var(--theme-surface,#f7faf9);border:1px solid #dce6e2;border-radius:14px;align-items:flex-start;gap:14px;margin:15px 0;padding:18px 22px;display:flex}.md-backup-status>div{flex:1;min-width:0}.md-backup-status strong{font-size:14px}.md-backup-status p{margin:7px 0;font-size:12px}.md-backup-status small{color:var(--theme-ink,#667c89);font-size:11px;line-height:1.8;display:block}.md-backup-status .btn{flex-shrink:0}.phone-reveal{background:var(--theme-surface,#f7faf9);min-height:36px;color:var(--theme-ink,#164f49);cursor:pointer;white-space:nowrap;font-variant-numeric:tabular-nums;border:1px solid #d5e5e0;border-radius:7px;align-items:center;gap:8px;padding:7px 9px;display:inline-flex}.phone-reveal[aria-expanded=true]{background:var(--theme-surface,#e5f5ec);border-color:#50a18b;font-weight:600}.phone-reveal:disabled{cursor:default;color:var(--theme-ink,#83918d)}.md-section-totals{align-items:baseline;gap:12px;margin:18px 0;display:flex}.md-section-totals>strong{color:var(--theme-ink,#173c50);font-size:32px}.md-section-totals>span{color:var(--theme-ink,#71848e);font-size:12px}.md-mini-counts{grid-template-columns:1fr 1fr;gap:7px;margin-bottom:14px;display:grid}.md-mini-counts>div{background:var(--theme-surface,#f4f7f8);border-radius:6px;justify-content:space-between;gap:10px;padding:9px;font-size:11px;display:flex}.md-widget-inventory,.md-widget-deals,.md-widget-team,.md-widget-care{grid-column:span 6}.md-setup-toggle{justify-content:flex-end;margin:8px 0;display:flex}.md-toolbar .btn{white-space:normal}.md-preset-grid{margin:14px 0}.md-widget{border-radius:10px}.md-hero{box-shadow:none}@media (width<=700px){.lead-phone{flex-wrap:wrap}.phone-reveal{max-width:100%;font-size:12px}.md-mini-counts{grid-template-columns:1fr 1fr}}.madar-dashboard .md-hero{color:var(--theme-ink,#163c53);border:1px solid #dce5ed;border-radius:8px;justify-content:space-between;align-items:center;display:flex;background:var(--theme-surface,#fff)!important;padding:18px 22px!important}.madar-dashboard .md-hero:before,.madar-dashboard .md-hero:after{display:none}.madar-dashboard .md-hero h1{color:var(--theme-ink,#163c53)!important;font-size:23px!important}.madar-dashboard .md-hero p,.madar-dashboard .md-hero aside>span,.madar-dashboard .md-hero aside small{color:var(--theme-ink,#6c7d8c)!important}.madar-dashboard .md-hero aside{border:0;border-inline-start:1px solid #e3eaf0;padding-inline-start:20px}.madar-dashboard .md-hero aside strong{font-size:27px;color:#1d6f9e!important}.madar-dashboard .md-eyebrow{color:#297aa4}.madar-dashboard .md-hero aside button{color:#24779f}.madar-dashboard .md-hero-actions .btn:not(.primary){background:var(--theme-surface,#f4f8fb);color:#245678;border:1px solid #d9e4eb}.md-preset-grid{background:var(--theme-surface,#fff);border-bottom:1px solid #dce5ed;border-radius:7px;gap:0;padding:0;display:flex;overflow:auto}.md-preset-grid>button{background:0 0;border:0;border-bottom:3px solid #0000;border-radius:0;flex:1;min-width:135px;padding:17px}.md-preset-grid>button.active{background:var(--theme-surface,#edf5fc);box-shadow:none;border-color:#2683b5}.md-priorities{border-radius:8px}.md-priority-tabs button{border-radius:6px}.md-widget-grid{gap:16px}.md-widget header{border-bottom:1px solid #e6edf2;padding-bottom:12px}.md-widget{box-shadow:none;border:1px solid #dfe7ef;border-radius:7px;padding:18px}.md-widget h3{font-size:15px}.madar-executive .md-widget-stats{background:var(--theme-surface,#eef5fc);color:#173f5a}.madar-executive .md-widget-stats h3,.madar-executive .md-stats strong{color:#173f5a}.madar-executive .md-stats span,.madar-executive .md-footnote{color:var(--theme-ink,#58728a)}.madar-agenda .md-widget-grid{flex-direction:column;display:flex}.madar-agenda .md-widget-meetings{border-top:3px solid #29967f}.madar-focus .md-priority-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}@media (width<=700px){.madar-dashboard .md-hero{display:block}.md-preset-grid>button{min-width:120px;font-size:11px}.md-priority-tabs,.madar-focus .md-priority-tabs{grid-template-columns:1fr 1fr}.md-widget{padding:16px}}.app:has(.reference-dashboard){--blue:#3677d4}.app:has(.reference-dashboard) .topbar{background:#3677d4}.app:has(.reference-dashboard) .topbar nav a.active{background:#245fb7}.app:has(.reference-dashboard) .main{background:var(--theme-surface,#e5e5e5)}.page-dashboard:has(.reference-dashboard){padding:0 20px 28px}.page-dashboard:has(.reference-dashboard) .breadcrumb{height:68px;margin-bottom:0}.page-dashboard:has(.reference-dashboard) .breadcrumb .save-status{display:none}.reference-dashboard{color:var(--theme-ink,#424242);margin-top:-48px}.ref-layoutbar{pointer-events:none;justify-content:flex-end;align-items:flex-start;height:68px;display:flex}.ref-layoutbar label{pointer-events:auto;background:var(--theme-surface,white);border:1px solid #d8d8d8;border-radius:8px;align-items:center;gap:10px;width:320px;height:48px;padding:0 20px;display:flex;box-shadow:0 2px 3px #00000009}.ref-layoutbar i{background:#27c76f;border-radius:50%;width:10px;height:10px}.ref-layoutbar select{background:var(--theme-surface,white);width:100%;color:var(--theme-ink,#34506b);border:0;font-size:16px}.ref-main-grid{grid-template-columns:minmax(0,2.05fr) minmax(0,1fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}.ref-stages>header{background:var(--theme-surface,#fff);border-radius:11px;justify-content:space-between;align-items:center;height:60px;margin-bottom:10px;padding:0 20px;font-size:20px;display:flex}.ref-stages>header b{color:#287bfa;margin-inline-start:5px;font-weight:500}.ref-stages>header button{color:var(--theme-ink,#777);cursor:pointer;background:0 0;border:0}.ref-stage-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.ref-stage-grid>button{text-align:start;background:var(--theme-surface,#fff);cursor:pointer;border:0;border-radius:11px;min-width:0;min-height:124px;padding:24px 20px}.ref-stage-grid>button>div{flex-wrap:wrap;align-items:baseline;gap:9px;display:flex}.ref-stage-grid strong{color:var(--theme-ink,#414141);font-size:25px;line-height:1.3}.ref-stage-grid span{color:#277afa;font-size:16px}.ref-stage-grid p{white-space:nowrap;text-overflow:ellipsis;color:#1553a9;margin:8px 0 0;font-size:16px;line-height:1.5;overflow:hidden}.ref-middle,.ref-right{flex-direction:column;gap:20px;min-width:0;display:flex}.ref-card{background:var(--theme-surface,white);border-radius:11px;min-width:0;padding:20px}.ref-card h3{margin:3px 0 6px;font-size:19px;line-height:1.5}.ref-card>p{color:var(--theme-ink,#777);margin:0;font-size:14px;line-height:1.6}.ref-motivation{text-align:center;height:124px;padding:15px}.ref-smile{color:var(--theme-ink,#777);font-family:Arial,sans-serif;font-size:43px;line-height:1}.ref-motivation h2{color:var(--theme-ink,#111);margin:12px 0 0;font-size:22px;font-weight:500}.ref-performance{text-align:center}.ref-performance>strong{margin:17px;font-size:35px;display:block}.ref-performance .btn{margin-top:12px}.ref-release{background:linear-gradient(135deg,#a2fac6,#27df27);border-radius:11px;align-items:center;gap:15px;min-height:155px;padding:20px;display:flex;position:relative}.ref-release>svg{box-sizing:content-box;color:#59615b;background:#fff;border-radius:50%;flex-shrink:0;padding:11px}.ref-release h3{margin:0 20px 7px 0;font-size:20px}.ref-release p{margin:0 12px 8px 0;font-size:14px}.ref-release button{cursor:pointer;color:#20462e;background:#ffffff40;border:0;border-radius:5px;padding:7px 10px}.ref-release .ref-dismiss{inset-inline-end:12px;color:#fff;background:0 0;padding:0;font-size:26px;line-height:1;position:absolute;top:50%}.ref-welcome{min-height:220px;padding:0;overflow:hidden}.ref-welcome header{color:#fff;background:repeating-radial-gradient(at 100% 20%,#2759d5 0 6px,#3158cf 7px 13px,#244ac2 14px 20px);border-radius:0 0 45% 4%/0 0 12% 2%;align-items:center;gap:14px;min-height:132px;padding:20px;display:flex}.ref-avatar{background:var(--theme-surface,#edf0f5);color:#9ba4b2;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:76px;height:76px;font-size:35px;display:flex}.ref-welcome h2{color:#fff;margin:0 0 3px;font-size:20px}.ref-welcome header p{margin:0 0 8px;font-size:17px}.ref-welcome header strong{font-size:12px}.ref-tabs{flex-wrap:wrap;gap:8px;padding:20px 0 8px;display:flex}.ref-welcome .ref-tabs{padding:20px 20px 8px}.ref-tabs button{background:var(--theme-surface,white);color:#2f7bea;cursor:pointer;border:1px solid #c3d8fb;border-radius:24px;padding:8px 11px;font-size:12px}.ref-tabs button.active{color:#fff;background:#3677d4;border-color:#3677d4}.ref-records{padding:0}.ref-records>button{text-align:start;cursor:pointer;background:0 0;border:0;border-top:1px solid #edf0f4;flex-direction:column;gap:6px;width:100%;padding:13px 0;display:flex}.ref-records strong{color:#345c89;font-size:12px;font-weight:500}.ref-records small{color:var(--theme-ink,#888);font-size:10px}.ref-records>p{color:var(--theme-ink,#929292);padding:12px 0;font-size:12px}.ref-welcome .ref-records{padding:0 20px}.ref-daily{min-height:350px}.ref-chart{justify-content:center;align-items:center;gap:20px;min-height:190px;padding-top:20px;display:flex}.ref-ring{border-radius:50%;flex-shrink:0;place-items:center;width:130px;height:130px;display:grid;position:relative}.ref-ring:before{content:"";background:var(--theme-surface,white);border-radius:50%;position:absolute;inset:13px}.ref-ring span{z-index:1;font-size:20px;position:relative}.ref-ring.empty{background:0 0}.ref-chart ul{min-width:100px;margin:0;padding:0;list-style:none}.ref-chart li{color:var(--theme-ink,#777);align-items:center;gap:9px;margin:13px 0;font-size:13px;display:flex}.ref-chart li i{border-radius:5px;width:30px;height:6px}.ref-summary-line{width:100%;color:var(--theme-ink,#5c6f82);cursor:pointer;background:0 0;border:0;border-bottom:1px solid #eee;justify-content:space-between;padding:13px 0;font-size:14px;display:flex}.ref-feed{margin-top:20px}.ref-feed .ref-tabs{padding-top:0}.ref-madar-focus .ref-stage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ref-madar-focus .ref-stage-grid>button{min-height:95px;padding:15px}.ref-madar-executive .ref-main-grid{grid-template-columns:minmax(0,3fr) minmax(0,1fr)}.ref-madar-executive .ref-middle{grid-area:2/1;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.ref-madar-executive .ref-right{grid-area:1/2/span 2}.ref-madar-agenda .ref-main-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr)}.ref-madar-agenda .ref-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media (width>=1500px){.ref-stage-grid>button{min-height:124px}.ref-middle .ref-performance{margin-top:0}}@media (width<=1100px){.ref-main-grid{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}.ref-middle{grid-area:2/1;grid-template-columns:1fr 1fr;display:grid}.ref-right{grid-area:1/2/span 2}.ref-stage-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ref-chart{gap:8px}.ref-ring{width:80px;height:80px}.ref-stage-grid>button{padding:18px 13px}.ref-stage-grid p{font-size:13px}.ref-stage-grid strong{font-size:22px}}@media (width<=700px){.reference-dashboard{margin-top:0}.ref-layoutbar{height:65px}.ref-layoutbar label{width:100%}.ref-main-grid,.ref-madar-executive .ref-main-grid,.ref-madar-agenda .ref-main-grid{flex-direction:column;display:flex}.ref-stages,.ref-middle,.ref-right{width:100%}.ref-stage-grid,.ref-madar-focus .ref-stage-grid,.ref-madar-agenda .ref-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ref-middle{grid-template-columns:1fr 1fr;display:grid}.ref-stage-grid>button{min-height:95px;padding:17px}.ref-card{padding:16px}.ref-layoutbar select{font-size:14px}.page-dashboard:has(.reference-dashboard){padding:0 10px 20px}.ref-right .ref-chart{gap:25px}.ref-ring{width:130px;height:130px}.ref-welcome{padding:0}.ref-madar-executive .ref-middle{grid-template-columns:1fr 1fr;display:grid}}:root{--motion:.22s;--ease:cubic-bezier(.16,1,.3,1);--surface:#fff;--surface-soft:#f5f7fb;--ring:#818cf8;font-family:Inter,Cairo,sans-serif}.rtl,[dir=rtl]{font-family:Cairo,Inter,sans-serif}.btn,.icon-btn,.theme-switch,.ref-stage-grid>button,.ref-tabs button,.lead-row,tbody tr{transition:background var(--motion) var(--ease),box-shadow var(--motion) var(--ease),transform var(--motion) var(--ease)}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--ring);outline-offset:3px}.theme-switch{color:inherit;background:#ffffff12;border:1px solid #ffffff60;border-radius:8px;place-items:center;width:32px;height:32px;padding:0;font-size:20px;display:grid}.topbar .theme-switch{color:#fff}.table-wrap{isolation:isolate}.table-wrap thead th{z-index:3;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#f8fafcf2;position:sticky;top:0}.table-wrap tbody tr:hover{background:var(--theme-surface,#eef2ff)}.filter-builder,.record-filter-builder{border-radius:10px}.filter-builder select,.record-filter-rule select{min-height:40px}.drawer,.confirm-dialog{box-shadow:0 24px 70px #0f172a26}.drawer-header{z-index:4;background:var(--surface);position:sticky;top:0}.field:focus-within>span{color:#4f46e5}.reference-dashboard .ref-card,.reference-dashboard .ref-stage-grid>button{animation:madar-enter .24s var(--ease) both}.ref-stage-grid>button:hover{box-shadow:0 4px 13px #4f46e512,0 0 0 1px #b4c6ee}.pill{border-radius:7px;font-weight:500}.skeleton{background:linear-gradient(100deg,#e9edf4 20%,#f6f8fc 40%,#e9edf4 60%) 0 0/200% 100%;border-radius:8px;animation:1.4s ease-in-out infinite skeleton-flow}.loading-skeleton-grid{grid-template-columns:repeat(4,1fr);gap:12px;width:min(900px,88vw);display:grid}.loading-skeleton-grid .skeleton{height:110px}.app-loading>svg{display:none}@keyframes madar-enter{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes skeleton-flow{to{background-position:-200% 0}}html[data-theme=blue]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--surface:#182334;--surface-soft:#111a29;--ink:#e5edf7;--muted:#a2b1c5;--line:#334155;color:#e5edf7;background:#111a29}html[data-theme=blue] body,html[data-theme=blue] .main,html[data-theme=blue] .app,html[data-theme=blue] .app-loading{color:#e5edf7;background:#111a29}html[data-theme=blue] .panel,html[data-theme=blue] .drawer,html[data-theme=blue] .drawer-header,html[data-theme=blue] .drawer-footer,html[data-theme=blue] .confirm-dialog,html[data-theme=blue] .side-rail,html[data-theme=blue] .ref-card,html[data-theme=blue] .ref-stages>header,html[data-theme=blue] .ref-stage-grid>button,html[data-theme=blue] .ref-layoutbar label,html[data-theme=blue] .lead-row,html[data-theme=blue] .module-card,html[data-theme=blue] .ref-tabs button,html[data-theme=blue] .md-widget,html[data-theme=blue] .settings-shortcuts button{color:#e5edf7;background:#182334;border-color:#334155}html[data-theme=blue] .app:has(.reference-dashboard) .main{background:#111a29}html[data-theme=blue] input,html[data-theme=blue] select,html[data-theme=blue] textarea,html[data-theme=blue] .ref-layoutbar select{color:#e5edf7;background:#111b2b;border-color:#475569}html[data-theme=blue] .ref-stage-grid strong,html[data-theme=blue] .ref-card h3,html[data-theme=blue] .ref-motivation h2,html[data-theme=blue] h1,html[data-theme=blue] h2,html[data-theme=blue] h3{color:#e5edf7}html[data-theme=blue] .ref-stage-grid p,html[data-theme=blue] .ref-stage-grid span,html[data-theme=blue] .ref-records strong,html[data-theme=blue] .text-link,html[data-theme=blue] .lead-name{color:#93bbff}html[data-theme=blue] .ref-ring:before{background:#182334}html[data-theme=blue] .ref-card>p,html[data-theme=blue] .muted,html[data-theme=blue] .ref-records>p,html[data-theme=blue] .ref-chart li{color:#a2b1c5}html[data-theme=blue] .table-wrap thead th{color:#e5edf7;background:#1d2a40ed}html[data-theme=blue] .table-wrap tbody tr:hover{background:#25354d}html[data-theme=blue] .ref-tabs button.active{color:#fff;background:#3677d4}html[data-theme=blue] .phone-reveal{color:#bfdbfe;background:#22354b;border-color:#4c6380}html[data-theme=blue] .ref-release,html[data-theme=blue] .ref-release h3{color:#153d26}html[data-theme=blue] .skeleton{background-image:linear-gradient(100deg,#253348 20%,#35465f 40%,#253348 60%)}@media (width<=700px){.loading-skeleton-grid{grid-template-columns:1fr 1fr}.lead-identity{background:var(--surface);z-index:2;position:sticky;inset-inline-start:0}.lead-actions{background:var(--surface);z-index:2;padding:5px 0;position:sticky;inset-inline-start:0}.theme-switch{width:29px;height:29px;font-size:18px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}html[data-theme=blue]{--surface:#182334;--surface-soft:#111a29;--surface-raised:#1e2d43;--stripe:#1c2a3e;--hover:#283c56;--ink:#e5edf7;--muted:#b0bfd2;--line:#3a4e68;--accent:#93bbff;--accent-solid:#3677d4;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}html[data-theme=dark]{--surface:#1c1c1f;--surface-soft:#111113;--surface-raised:#262629;--stripe:#232326;--hover:#303034;--ink:#f0f0f2;--muted:#b8b8c0;--line:#414147;--accent:#bdc8ff;--accent-solid:#5356b8;--blue:#aebaff;--blue-dark:#c9d0ff;--light:#282830;--ring:#b8bfff;color:#f0f0f2;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#111113}html:is([data-theme=blue],[data-theme=dark]) body,html:is([data-theme=blue],[data-theme=dark]) .app,html:is([data-theme=blue],[data-theme=dark]) .main,html:is([data-theme=blue],[data-theme=dark]) .app-loading{background:var(--surface-soft);color:var(--ink)}html:is([data-theme=blue],[data-theme=dark]) .app:has(.reference-dashboard) .main{background:var(--surface-soft);color:var(--ink)}html:is([data-theme=blue],[data-theme=dark]) :is(.panel,.drawer,.drawer-header,.drawer-footer,.confirm-dialog,.side-rail,.dropdown,.user-menu,.filter-popover,.ref-card,.ref-stages>header,.ref-stage-grid>button,.ref-layoutbar label,.lead-row,.module-card,.setting-group,.target-card,.integration-card,.md-widget,.md-priorities,.md-company-setup,.md-backup-status,.auth-card,.search-dialog,.file-row,.trash-row,.kanban-column,.kanban article){background:var(--surface);color:var(--ink);border-color:var(--line)}html:is([data-theme=blue],[data-theme=dark]) :is(.report-controls,.report-filter-grid,.report-more-filters,.filter-grid,.filter-drawer,.info-note,.library-note,.md-mini-counts>div,.calendar-week,.calendar-day.outside,.preferences-panel .info-note,.settings-shortcuts button,.module-card dl,.table-wrap thead th,thead th,tfoot,.report-stats,.stats-strip,.module-intro){background:var(--surface-raised);color:var(--ink);border-color:var(--line)}html:is([data-theme=blue],[data-theme=dark]) table,html:is([data-theme=blue],[data-theme=dark]) tbody tr,html:is([data-theme=blue],[data-theme=dark]) tbody tr:nth-child(odd){background:var(--surface);color:var(--ink)}html:is([data-theme=blue],[data-theme=dark]) tbody tr:nth-child(2n){background:var(--stripe);color:var(--ink)}html:is([data-theme=blue],[data-theme=dark]) tbody tr:hover{background:var(--hover);color:var(--ink)}html:is([data-theme=blue],[data-theme=dark]) :is(td,th){border-color:var(--line)}html:is([data-theme=blue],[data-theme=dark]) :is(input,select,textarea,.searchbox,.ref-layoutbar select){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}html:is([data-theme=blue],[data-theme=dark]) input::placeholder,html:is([data-theme=blue],[data-theme=dark]) textarea::placeholder{color:var(--muted);opacity:1}html:is([data-theme=blue],[data-theme=dark]) :is(.btn,.icon-btn,.ref-tabs button,.phone-reveal,.md-priority-tabs button){background:var(--surface-raised);border-color:var(--line);color:var(--ink)}html:is([data-theme=blue],[data-theme=dark]) :is(.btn.primary,.ref-tabs button.active,.md-priority-tabs button[aria-pressed=true]){background:var(--accent-solid);color:#fff;border-color:var(--accent-solid)}html:is([data-theme=blue],[data-theme=dark]) .btn.danger{color:#fff;background:#7c252c;border-color:#bc505c}html:is([data-theme=blue],[data-theme=dark]) :is(h1,h2,h3,h4,.ref-stage-grid strong,.ref-motivation h2,.module-intro h1,.md-section-totals strong,.md-priority-record strong){color:var(--ink)}html:is([data-theme=blue],[data-theme=dark]) :is(.muted,.ref-card>p,.ref-records>p,.ref-records small,.ref-chart li,.ref-summary-line,.report-note,.module-card small,.md-footnote,.md-backup-status small,.settings-group>p,.breadcrumb){color:var(--muted)}html:is([data-theme=blue],[data-theme=dark]) :is(.text-link,.lead-name,.ref-stage-grid p,.ref-stage-grid span,.ref-records strong,.settings-group a){color:var(--accent)}html:is([data-theme=blue],[data-theme=dark]) .pill{background:var(--surface-raised);color:var(--ink);border:1px solid var(--line)}html:is([data-theme=blue],[data-theme=dark]) .pill.green{color:#a5edc7;background:#153e30;border-color:#31684e}html:is([data-theme=blue],[data-theme=dark]) .pill.red{color:#ffc2cd;background:#51232d;border-color:#854153}html:is([data-theme=blue],[data-theme=dark]) .ref-ring:before{background:var(--surface)}html[data-theme=dark] .topbar{background:#202023}html[data-theme=dark] .app:has(.reference-dashboard) .topbar{background:#202023}html[data-theme=dark] .app:has(.reference-dashboard) .topbar nav a.active{background:#414147}html[data-theme=dark] .ref-release{color:#e2f9e7;background:linear-gradient(135deg,#234338,#315738)}html[data-theme=dark] .ref-release h3{color:#e2f9e7}html[data-theme=dark] .ref-welcome header{background:repeating-radial-gradient(at 100% 20%,#35353f 0 6px,#3e3e4a 7px 13px,#303039 14px 20px)}html[data-theme=dark] .ref-welcome h2{color:#fff}.theme-picker{color:#fff;border:1px solid #ffffff70;border-radius:8px;align-items:center;gap:3px;height:33px;padding:0 6px;display:flex}.theme-picker>span{font-size:19px}.theme-picker select{border:0;max-width:80px;min-height:28px;padding:2px;font-size:11px;color:#fff!important;background:0 0!important}.theme-picker option{color:#1e293b;background:#fff}html:is([data-theme=blue],[data-theme=dark]) .theme-picker option{background:var(--surface);color:var(--ink)}@media (width<=700px){.theme-picker{height:30px;padding:0 3px}.theme-picker>span{display:none}.theme-picker select{max-width:54px;font-size:10px}}.ref-layoutbar{flex-wrap:wrap;justify-content:space-between;gap:12px;display:flex}.ref-sales-filter{align-items:center;gap:8px;max-width:100%;display:flex}.ref-sales-filter select{min-width:150px;max-width:100%}@media (width<=600px){.ref-layoutbar>label{width:100%}.ref-sales-filter select{flex:1;min-width:0}}html:is([data-theme=blue],[data-theme=dark]){--theme-surface:var(--surface);--theme-ink:var(--ink)}.transfer-sales-list{gap:12px;max-height:260px;margin-block:18px;display:grid;overflow:auto}.transfer-sales-list label{border:1px solid var(--line);border-radius:8px;padding:8px}.confirm-dialog .checkbox-line{margin-block:14px}.confirm-dialog>p{line-height:1.8}.app .main{padding-top:calc(var(--measured-header,var(--header)) + 8px)}html{scroll-padding-top:calc(var(--measured-header,var(--header)) + 16px)}.company-signin-info{background:var(--surface-soft);border:1px solid var(--line);overflow-wrap:anywhere;border-radius:10px;grid-column:1/-1;margin-block:12px;padding:16px}.company-signin-info p{margin-block:8px;font-size:12px;line-height:1.8}.company-signin-info code{-webkit-user-select:all;user-select:all;font-size:16px}.lead-note{white-space:normal;overflow-wrap:anywhere;min-width:0}.lead-note>span{min-width:0}.lead-note small{color:var(--muted);margin-top:5px;font-size:10px;display:block}.lead-note b{font-weight:600}.account-security{margin-top:20px}.account-security .inline-buttons{flex-wrap:wrap;margin-block:14px}.account-security .inline-buttons input{width:min(340px,100%)}.account-security td{vertical-align:top;min-width:120px}.account-security td small{margin-top:7px;display:block}.account-device{overflow-wrap:anywhere;max-width:220px;font-size:11px}.account-security .row-actions{flex-wrap:wrap;min-width:230px}.account-security h3{margin-block:24px 12px}.account-event-list{max-height:320px;overflow:auto}.account-event-list p{border-bottom:1px solid var(--line);padding:12px;font-size:12px}.account-event-list small{overflow-wrap:anywhere;margin-top:6px;display:block}.app .main{top:var(--measured-header,var(--header));bottom:0;height:auto;min-height:0;margin:0;padding-top:12px;scroll-padding-top:12px;position:fixed;inset-inline-start:var(--rail);inset-inline-end:0;overflow:auto}.app{min-height:100dvh}.app .topbar{isolation:isolate}.app .breadcrumb{flex-shrink:0}.brand-opening{color:#fff;background:radial-gradient(at 50% 40%,#174c5b,#102a43 65%);flex-direction:column;justify-content:center;align-items:center;gap:14px;min-height:100dvh;display:flex}.brand-opening h1{letter-spacing:2px;margin:0;font-size:38px}.brand-opening p{color:#c4e9e2;font-size:14px}.brand-orbit{padding:25px;animation:.7s ease-out madar-enter;position:relative}.brand-orbit span{border:1px solid #3dd5bc66;border-radius:50%;animation:2s linear infinite madar-orbit;position:absolute;inset:0}.brand-orbit span:after{content:"";background:#d69b47;border-radius:50%;width:10px;height:10px;position:absolute;top:8px;left:28px;box-shadow:0 0 20px #d69b47}.brand-loading-line{background:#3dd5bc;border-radius:8px;width:120px;height:3px;animation:1.3s ease-in-out infinite madar-breathe}.simple-day{max-width:1000px;margin:auto}.simple-day-hero{color:#fff;background:#102a43;border-radius:24px;padding:30px}.simple-day-actions,.sales-podium{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0;display:grid}.simple-day-actions button,.sales-podium article{color:#102a43;text-align:start;background:#fff;border:1px solid #dce8e6;border-radius:18px;padding:20px}.simple-day-actions strong,.sales-podium strong{font-size:26px;display:block}.sales-rank{border-bottom:1px solid #e1e9ec;align-items:center;gap:16px;padding:16px;display:flex}.sales-rank.me{background:#e7f6f0;border-radius:14px}.sales-rank>b{min-width:26px}.sales-rank>span{flex:1}.recruit-layout{max-width:980px;margin:auto}.recruit-stepper{flex-wrap:wrap;gap:10px;margin:22px 0;display:flex}.recruit-stepper span{background:#eaf0f3;border-radius:20px;padding:8px 13px}.recruit-stepper .active{color:#fff;background:#0f766e}.recruit-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;display:grid}.recruit-form .wide{grid-column:1/-1}.recruit-form fieldset{border:1px solid #d7e7e4;border-radius:18px;padding:20px}.recruit-form input,.recruit-form select,.recruit-form textarea{width:100%;min-width:0}.recruit-header{color:#fff;background:#102a43;border-radius:22px;margin-bottom:22px;padding:25px}@keyframes madar-orbit{to{transform:rotate(360deg)}}@keyframes madar-breathe{50%{opacity:.35;transform:scaleX(.55)}}@media (prefers-reduced-motion:reduce){.brand-orbit,.brand-orbit span,.brand-loading-line{animation:none}}@media (width<=600px){.recruit-form{grid-template-columns:1fr}.simple-day-actions,.sales-podium{gap:8px}.simple-day-actions button,.sales-podium article{padding:14px 10px}.simple-day-hero{padding:24px}.simple-day-actions strong{font-size:22px}}.app .reference-dashboard{margin-top:0}.app .main{top:var(--measured-header,var(--header));padding-top:16px}.lead-meta .lead-owner,.lead-meta .lead-source{background:var(--surface-soft,#eef6f4);border:1px solid var(--line,#dce8e4);max-width:100%;color:var(--ink,#18354a);border-radius:9px;align-items:center;gap:6px;padding:5px 9px;font-size:12px;display:inline-flex}.lead-meta .lead-owner strong,.lead-meta .lead-source strong{overflow-wrap:anywhere;font-weight:600}.lead-meta .lead-owner small,.lead-meta .lead-source small{color:var(--muted,#526477)}.lead-meta{opacity:1;flex-wrap:wrap;overflow:visible}.lead-meta>.lead-owner,.lead-meta>.lead-source{white-space:normal;flex-shrink:0}.app-download-card{border:1px solid var(--line,#dce8e4);background:var(--surface-soft,#edf6f3);border-radius:18px;align-items:center;gap:18px;margin:0 0 24px;padding:20px;display:flex}.app-download-icon{color:#3dd5bc;background:#102a43;border-radius:16px;flex-shrink:0;place-items:center;width:56px;height:56px;display:grid}.app-download-card>div{flex:1;min-width:0}.app-download-card h3,.app-download-card p{margin:0 0 6px}.app-download-card small{color:var(--muted,#526477);line-height:1.8;display:block}.app-download-card a{flex-shrink:0}@media (width<=650px){.app-download-card{flex-wrap:wrap;padding:16px}.app-download-card a{justify-content:center;width:100%}.lead-meta>.lead-owner,.lead-meta>.lead-source{flex-shrink:1;max-width:100%}}.crm-app .reference-dashboard{margin-top:0}.crm-app>.main{top:var(--measured-header,var(--header));bottom:0;height:auto;min-height:0;margin:0;padding-top:16px;scroll-padding-top:16px;position:fixed;inset-inline-start:var(--rail);inset-inline-end:0;overflow:auto}.device-setup-card{border:1px solid var(--line);background:var(--surface-soft,#f5f9f8);border-radius:18px;margin:18px 0;padding:20px}.device-setup-card>header{align-items:center;gap:12px;margin-bottom:15px;display:flex}.device-setup-card p{color:var(--muted);font-size:12px;line-height:1.8}.device-setup-status{flex-wrap:wrap;gap:12px;padding:13px 0;font-size:12px;display:flex}.device-setup-status>small{color:var(--muted);flex-basis:100%}.auth-app-download{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.auth-app-download>a{justify-content:center;width:100%;min-height:46px}.auth-app-download>p{line-height:1.9;margin:12px 0 0!important;font-size:11px!important}.device-setup-card .inline-buttons{flex-wrap:wrap}.capture-panel{border:1px solid var(--line);margin:18px 0;min-height:0!important}.capture-panel form{margin:18px 0}.capture-panel code{overflow-wrap:anywhere}.capture-panel details{padding:18px 0;line-height:2}.capture-panel li{margin-block:9px}.capture-secret{background:var(--light);border-radius:12px;flex-wrap:wrap;gap:10px;margin-block:16px;padding:18px;display:flex}.capture-secret strong{width:100%}.capture-secret input{flex:1;min-width:0}.capture-connection{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;padding:16px 0;display:flex}.capture-connection small{color:var(--muted);margin-top:6px;display:block}.brand-opening-premium{color:#fff;isolation:isolate;background:radial-gradient(at 50% 30%,#183e50 0%,#102a43 45%,#091c2c 100%);overflow:hidden}.brand-opening-premium h1{color:#fff;letter-spacing:1px;margin-top:20px;font-size:46px}.brand-opening-premium p{color:#b1d3d5;font-size:15px}.brand-opening-premium>small{color:#85a8b7;letter-spacing:.5px;margin-top:22px;font-size:10px}.brand-opening-caption{letter-spacing:4px;color:#b1d3d5;font-size:10px;position:absolute;top:max(9vh,40px)}.brand-opening-premium .brand-loading-line{background:#ffffff15;width:100px;height:3px;margin-top:28px}.brand-opening-premium .brand-orbit{filter:drop-shadow(0 18px 35px #0005)}.brand-ambient{z-index:-1;border:1px solid #3dd5bc12;border-radius:50%;width:460px;height:460px;position:absolute;transform:rotate(-25deg)scaleX(1.5)}.brand-ambient:before,.brand-ambient:after{content:"";border:1px solid #d69b4718;border-radius:50%;position:absolute;inset:40px}.brand-ambient:after{border-color:#3dd5bc12;inset:90px}@media (prefers-reduced-motion:reduce){.brand-opening-premium *{animation:none!important}}.reference-filter-presets{border:1px solid var(--line);border-radius:14px;margin-bottom:20px;padding:16px}.reference-filter-presets summary{cursor:pointer;font-weight:600}.reference-presets-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;max-height:65vh;margin-top:15px;display:grid;overflow:auto}.reference-preset{background:var(--surface-soft,#f5f8f8);border-radius:10px;gap:8px;padding:14px;display:grid}.reference-preset>label{font-size:12px}.reference-preset .filter-date-range{min-width:0}.reference-preset .filter-date-range input{width:45%;min-width:0}.reference-preset select{max-width:100%}.sales-comparison{border:1px solid var(--theme-border,#dce5ea);border-radius:16px;margin-block:18px;padding:18px}.sales-comparison h3{margin:0 0 10px}.sales-comparison p{margin-bottom:14px;line-height:1.7}.sales-comparison .report-filter-grid{background:0 0;border:0;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:14px 0;padding:0;display:grid}.sales-comparison .checkbox-line{border:1px solid var(--theme-border,#dce5ea);white-space:normal;border-radius:10px;justify-content:flex-start;align-items:center;gap:10px;min-width:0;padding:12px;display:flex}.sales-comparison input[type=checkbox]{flex:none;width:18px;min-width:18px;height:18px;margin:0}.sales-comparison .table-wrap{margin-top:16px}.sales-comparison th,.sales-comparison td{min-width:150px}.brand-opening.brand-opening-premium{z-index:10000;box-sizing:border-box;width:100%;height:100%;min-height:0;padding:max(28px,env(safe-area-inset-top)) 24px max(28px,env(safe-area-inset-bottom));text-align:center;background:radial-gradient(at 50% 43%,#173e4c 0%,#102a43 52%,#091c2c 100%);flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex;position:fixed;inset:0;overflow:hidden}.brand-opening-premium .brand-orbit{box-sizing:content-box;filter:drop-shadow(0 12px 28px #0004);flex:none;width:88px;height:88px;margin:0;padding:20px}.brand-opening-premium .brand-orbit>.madar-mark{flex:none;max-width:none;display:block;overflow:visible;width:88px!important;height:88px!important}.brand-opening-premium .brand-orbit>span{border-color:#3dd5bc30;inset:2px}.brand-opening-premium h1{letter-spacing:0;margin:8px 0 0;font-size:32px;line-height:1.25}.brand-opening-premium p{max-width:260px;margin:0;font-size:14px;line-height:1.6}.brand-opening-premium .brand-opening-caption{letter-spacing:3px;margin:0 0 30px;font-size:9px;position:static}.brand-opening-premium>small{max-width:260px;margin-top:18px;font-size:11px;line-height:1.6}.brand-opening-premium .brand-ambient{pointer-events:none;width:min(74vw,340px);height:min(74vw,340px)}.brand-opening-premium .brand-loading-line{background:#3dd5bc;border-radius:10px;flex:none;width:64px;height:3px;margin-top:20px}@media (height<=480px){.brand-opening-premium .brand-opening-caption{margin-bottom:8px}.brand-opening-premium .brand-orbit{padding:8px}.brand-opening-premium>small{margin-top:4px}.brand-opening.brand-opening-premium{gap:6px}}.reminder-center{max-width:1100px;margin:auto}.reminder-center .page-heading p{color:var(--theme-ink,#64748b);margin-top:8px;font-size:14px}.reminder-tabs{grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0;display:grid}.reminder-tabs button{color:inherit;font:inherit;background:0 0;border:1px solid #cbd5e1;border-radius:14px;justify-content:space-between;align-items:center;gap:10px;padding:16px;display:flex}.reminder-tabs b{background:#64748b18;border-radius:20px;padding:3px 10px}.reminder-tabs .active{color:#0f766e;background:#0f766e12;border-color:#0f766e}.reminder-tabs .active.late{color:#b45309;background:#d9770612;border-color:#d97706}.reminder-explainer{background:#0f766e0c;border-radius:14px;align-items:flex-start;gap:12px;padding:16px;line-height:1.7;display:flex}.reminder-explainer small{opacity:.75;display:block}.reminder-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px;margin:20px 0;display:grid}.reminder-card{border:1px solid #94a3b844;border-inline-start:4px solid #0f766e;border-radius:16px;padding:20px}.reminder-card.late{border-inline-start-color:#d97706}.reminder-card h3{margin:14px 0 6px;font-size:20px}.reminder-card p{margin:6px 0 12px;line-height:1.6}.reminder-card-top{flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:12px;display:flex}.reminder-state{font-weight:700}.reminder-card .inline-buttons{flex-wrap:wrap;gap:8px;margin-top:18px}.reminder-settings{border:1px solid #94a3b833;border-radius:14px;margin:20px 0;padding:18px}.reminder-settings summary{cursor:pointer;font-weight:700}.reminder-settings p{margin:12px 0;line-height:1.8}@media (width<=480px){.reminder-tabs{gap:6px}.reminder-tabs button{padding:12px 8px;font-size:13px}.reminder-card{padding:16px}}html[lang=ar] body,html[lang=ar] button,html[lang=ar] input,html[lang=ar] select,html[lang=ar] textarea,.rtl,[dir=rtl]{font-family:Cairo,Inter,sans-serif}html[lang=ar] body{line-height:1.8}html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3{letter-spacing:0;font-weight:700}html[lang=ar] input,html[lang=ar] select,html[lang=ar] button{line-height:1.6}.mm-only{display:none}.mm-desktop-only{display:block}@media (width<=767px),(width>=768px){.madar-mobile-preview{--mm-ink:#102a43;--mm-teal:#087f75;--mm-mint:#dff5ee;--mm-gold:#d69b47;background:#f3f6f7}.madar-mobile-preview .mm-only{display:block}.madar-mobile-preview .mm-desktop-only{display:none}.madar-mobile-preview .main{background:#f3f6f7;padding:16px 16px 100px!important}.madar-mobile-preview .workspace-save-status,.madar-mobile-preview .welcome-strip,.madar-mobile-preview .company-owner-strip,.madar-mobile-preview .main>footer{display:none}.madar-mobile-preview .topbar{color:#fff;min-height:64px;box-shadow:none;background:#102a43;padding:8px 16px}.madar-mobile-preview .mobile-brand{align-items:center;gap:9px;display:flex}.madar-mobile-preview .topbar>nav{display:none}.madar-mobile-preview .top-actions{gap:6px}.madar-mobile-preview .top-actions>.theme-switch,.madar-mobile-preview .top-actions>.language-switch,.madar-mobile-preview .top-actions>button[title=Calendar],.madar-mobile-preview .top-actions>button[title=To-Dos]{display:none}.madar-mobile-preview .topbar .icon-btn{color:inherit}.madar-mobile-preview .mobile-tabs{height:auto;min-height:70px;padding-bottom:max(8px,var(--safe-area-inset-bottom,env(safe-area-inset-bottom)));background:#fff;border-top:1px solid #e4eaec;box-shadow:0 -4px 20px #102a4308}.madar-mobile-preview .mobile-tabs button{color:#647787;gap:4px;font-size:11px}.madar-mobile-preview .mobile-tabs button.active{color:#087f75;background:#eef9f5;border-radius:16px}.madar-mobile-preview .mobile-tabs svg{width:22px;height:22px}.mm-hero{color:#fff;background:#102a43;border-radius:26px;padding:24px;position:relative;overflow:hidden}.mm-hero:after{content:"";inset-inline-end:-120px;pointer-events:none;border:1px solid #3dd5bc40;border-radius:50%;width:220px;height:220px;position:absolute;top:-50px}.mm-identity{align-items:center;gap:13px;display:flex}.mm-hero h1{color:#fff;margin:4px 0;font-size:23px}.mm-hero small{color:#a8d6d2;font-size:12px}.mm-hero p{color:#c6d4de;margin:14px 0 24px;font-size:13px}.mm-summary{border-top:1px solid #ffffff20;grid-template-columns:repeat(3,1fr);gap:8px;padding-top:16px;display:grid}.mm-summary button{color:#c6d4de;background:0 0;border:0;flex-direction:column;align-items:center;gap:5px;font-size:10px;display:flex}.mm-summary strong{color:#fff;font-size:25px}.mm-summary svg{color:#3dd5bc;height:30px}.mm-next{text-align:start;color:#102a43;background:#fff;border:1px solid #e5ecee;border-radius:20px;align-items:center;gap:12px;width:100%;margin-top:14px;padding:16px;display:flex}.mm-next>span:nth-child(2){flex:1;gap:3px;display:grid}.mm-next small{color:#6c7d88;font-size:11px}.mm-icon{color:#087f75;background:#e6f5ef;border-radius:15px;flex-shrink:0;place-items:center;width:44px;height:44px;display:grid}.mm-shortcuts{grid-template-columns:repeat(4,1fr);gap:8px;margin:22px 0;display:grid}.mm-shortcuts button{color:#102a43;background:0 0;border:0;justify-items:center;gap:8px;font-size:12px;display:grid}.mm-shortcuts button>span{color:#087f75;background:#fff;border-radius:18px;place-items:center;width:54px;height:54px;display:grid;box-shadow:0 3px 12px #102a4306}.mm-section-title{justify-content:space-between;align-items:center;gap:12px;margin:24px 0 16px;display:flex}.mm-section-title small{color:#75848e;letter-spacing:1px;font-size:10px}.mm-section-title h1,.mm-section-title h2{color:#102a43;margin:5px 0;font-size:21px}.mm-section-title h1 em{color:#087f75;background:#e2f4ee;border-radius:9px;padding:3px 9px;font-size:14px;font-style:normal}.mm-section-title>button{color:#087f75;background:#fff;border:0;border-radius:14px;place-items:center;width:42px;height:42px;display:grid}.mm-section-title>button.mm-add{color:#fff;background:#087f75}.mm-stages{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.mm-stage{text-align:start;color:#102a43;background:#fff;border:1px solid #e3e9ec;border-radius:21px;flex-direction:column;gap:7px;min-height:145px;padding:17px;display:flex;position:relative;box-shadow:0 3px 10px #102a4303}.mm-stage-icon{color:#087f75;background:#e5f5ef;border-radius:10px;place-items:center;width:29px;height:29px;display:grid}.mm-stage-icon svg{width:16px}.mm-stage.tone-1 .mm-stage-icon{color:#526fa3;background:#e8effb}.mm-stage.tone-2 .mm-stage-icon{color:#af7a30;background:#fcf2e4}.mm-stage.tone-3 .mm-stage-icon{color:#8b68a7;background:#f2ebf8}.mm-stage>strong{font-size:29px;line-height:1.2}.mm-stage>span:not(.mm-stage-icon){color:#5c6d79;font-size:12px}.mm-stage>svg{inset-inline-end:15px;color:#9cabb4;position:absolute;top:24px}.mm-search{color:#81939e;background:#fff;border:1px solid #e1e9ed;border-radius:17px;align-items:center;gap:10px;padding:5px 14px;display:flex}.mm-search input{color:#102a43;outline-offset:2px;background:0 0;border:0;flex:1;min-width:0;padding:13px 0}.mm-search button{color:#087f75;background:#e6f5ef;border:0;border-radius:11px;place-items:center;width:39px;height:39px;display:grid}.mm-periods{scrollbar-width:none;gap:8px;padding:16px 0;display:flex;overflow-x:auto}.mm-periods button{white-space:nowrap;color:#657683;background:#fff;border:1px solid #e0e7ea;border-radius:30px;padding:9px 14px;font-size:12px}.mm-periods button.active{color:#fff;background:#102a43;border-color:#102a43}.mm-filters{background:#fff;border:1px solid #e1e9ed;border-radius:18px;gap:12px;margin-bottom:15px;padding:16px;display:grid}.mm-filters label{color:#526674;gap:5px;font-size:12px;display:grid}.mm-filters select{color:#102a43;background:#fff;border:1px solid #dbe4e8;border-radius:10px;max-width:100%;padding:10px}.mm-filters button{color:#087f75;background:#eef8f3;border:0;border-radius:10px;padding:10px}.mm-customer-list{gap:16px;display:grid}.mm-customer{background:#fff;border:1px solid #e1e8eb;border-radius:22px;padding:17px;box-shadow:0 4px 12px #102a4304}.mm-customer header{justify-content:space-between;align-items:center;gap:8px;display:flex}.mm-customer header>button{text-align:start;color:#102a43;background:0 0;border:0;align-items:center;gap:9px;min-width:0;display:flex}.mm-customer header strong{overflow-wrap:anywhere;font-size:15px}.mm-initial{background:#edf4f5;border-radius:12px;flex-shrink:0;place-items:center;width:35px;height:35px;display:grid}.mm-status{color:#087f75;background:#e9f5ef;border-radius:8px;max-width:45%;padding:6px 8px;font-size:10px}.mm-customer-meta{color:#6d7d88;flex-direction:column;gap:9px;margin:15px 0;font-size:12px;display:flex}.mm-customer-meta span{overflow-wrap:anywhere;align-items:center;gap:7px;display:flex}.mm-customer-meta b{color:#334e60;font-weight:500}.mm-phone{background:#f4f7f8;border-radius:12px;align-items:center;gap:8px;padding:8px;display:flex}.mm-phone strong{color:#102a43;text-align:start;letter-spacing:.5px;overflow-wrap:anywhere;flex:1;font-size:15px}.mm-phone button{color:#087f75;background:#fff;border:0;border-radius:10px;place-items:center;width:38px;height:38px;display:grid}.mm-phone button:disabled{opacity:.35}.mm-feedback{color:#657985;overflow-wrap:anywhere;font-size:12px;line-height:1.8}.mm-due{color:#a46d22;align-items:center;gap:5px;margin-top:10px;font-size:11px;display:flex}.mm-customer footer{border-top:1px solid #eef2f3;justify-content:space-between;gap:10px;margin-top:13px;padding-top:12px;display:flex}.mm-customer footer button{color:#6c808c;background:0 0;border:0;align-items:center;gap:5px;font-size:12px;display:flex}.mm-customer footer .mm-action-btn{color:#fff;background:#102a43;border-radius:10px;padding:10px 13px}.mm-sheet-backdrop{z-index:1100;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#102a4380;align-items:flex-end;display:flex;position:fixed;inset:0}.mm-sheet{color:#102a43;width:100%;padding:10px 22px max(25px,var(--safe-area-inset-bottom,env(safe-area-inset-bottom)));background:#fff;border-radius:28px 28px 0 0;max-height:85dvh;animation:.2s ease-out mm-rise;overflow:auto}.mm-handle{background:#dce5e8;border-radius:8px;width:38px;height:4px;margin:0 auto 18px}.mm-sheet header{justify-content:space-between;align-items:center;display:flex}.mm-sheet h2{margin:5px 0;font-size:22px}.mm-sheet small{color:#718591}.mm-sheet header>button{background:#f0f5f6;border:0;border-radius:50%;place-items:center;width:35px;height:35px;display:grid}.mm-action-grid{grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0;display:grid}.mm-action-grid button{color:#102a43;background:#fff;border:1px solid #e7edef;border-radius:17px;justify-items:center;gap:9px;padding:17px 4px;font-size:12px;display:grid}.mm-action-grid button span{color:#087f75;background:#e9f6f0;border-radius:12px;padding:10px}.mm-empty{text-align:center;color:#768a97;padding:35px 15px}.mm-empty>svg{color:#087f75}.mm-load,.mm-empty button{color:#087f75;background:#fff;border:1px solid #dce6ea;border-radius:14px;justify-content:center;align-items:center;gap:7px;width:100%;margin-top:16px;padding:14px;display:flex}.mm-more h1{color:#102a43;font-size:25px}.mm-more>p{color:#6d8190;font-size:13px}.mm-more>button{color:#102a43;text-align:start;background:#fff;border:1px solid #e2eaed;border-radius:18px;align-items:center;gap:13px;width:100%;margin:12px 0;padding:14px;display:flex}.mm-more strong{flex:1;font-size:14px}.mm-more>button>svg{color:#a0b1bb}.madar-mobile-preview .drawer{width:100vw;max-width:100vw}.madar-mobile-preview .top-actions>button[title=To-Dos],.madar-mobile-preview .top-actions>button[title=Calendar],.madar-mobile-preview .top-actions>button[title=Duplicates\ Manager]{display:none}@keyframes mm-rise{0%{opacity:.6;transform:translateY(25px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.mm-sheet{animation:none}}}.madar-mobile-preview .top-actions>:first-child,.madar-mobile-preview .top-actions>:nth-child(5),.madar-mobile-preview .top-actions>:nth-child(6),.madar-mobile-preview .top-actions>:nth-child(7){display:none}.madar-mobile-preview .topbar{flex-wrap:nowrap;justify-content:space-between;display:flex}.madar-mobile-preview .top-actions{flex-wrap:nowrap;display:flex}.crm-app.madar-mobile-preview{--rail:0px;color:#102a43;isolation:isolate;background:#f3f6f7;grid-template-rows:auto minmax(0,1fr) auto;max-width:100vw;height:100dvh;min-height:0;padding:0;display:grid;overflow:hidden}.madar-mobile-preview>.side-rail,.madar-mobile-preview>.topbar{display:none!important}.crm-app.madar-mobile-preview>.main{overscroll-behavior:contain;grid-row:2;width:100%;max-width:100%;height:auto;min-height:0;scroll-padding-top:16px;overflow:auto;margin:0!important;padding:0 16px 24px!important;position:relative!important;inset:auto!important}.madar-mobile-preview .mm-only{display:block}.madar-mobile-preview .mm-desktop-only,.madar-mobile-preview .breadcrumb{display:none}.madar-mobile-preview>.mobile-tabs{min-height:68px;padding:8px 4px calc(8px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom)));background:#fff;grid-row:3;width:100%;margin:0;display:flex;box-shadow:0 -3px 15px #102a4306;position:relative!important;inset:auto!important}.madar-mobile-preview>.mobile-tabs button{flex:1;min-width:0;min-height:46px;font-size:10px;line-height:1.4}.madar-mobile-preview>.mobile-tabs button.active{color:#087f75;background:#e4f5ee}.mm-app-header{padding:10px;padding-top:calc(10px + var(--safe-area-inset-top,env(safe-area-inset-top)));color:#fff;z-index:50;background:#102a43;grid-row:1;align-items:center;gap:4px;min-width:0;min-height:64px;display:flex;position:relative}.mm-app-header>button{color:#fff;background:0 0;border:0;border-radius:12px;flex-shrink:0;place-items:center;width:40px;height:42px;display:grid}.mm-app-header>button:active{background:#ffffff15}.mm-app-header>.mm-app-brand{text-align:start;flex:1;justify-content:flex-start;gap:8px;width:auto;min-width:0;display:flex}.mm-app-brand strong{white-space:nowrap;text-overflow:ellipsis;font-size:16px;overflow:hidden}.mm-app-brand svg{flex-shrink:0}.mm-bell{position:relative}.mm-bell i{top:0;color:#102a43;background:#d69b47;border-radius:20px;place-items:center;min-width:17px;height:17px;font-size:10px;font-style:normal;display:grid;position:absolute;inset-inline-end:0}.mm-menu-backdrop{z-index:1150;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#102a4380;display:flex;position:fixed;inset:0}.mm-menu{color:#fff;width:min(87vw,360px);height:100dvh;padding:calc(22px + var(--safe-area-inset-top,env(safe-area-inset-top))) 22px calc(24px + var(--safe-area-inset-bottom,env(safe-area-inset-bottom)));background:#102a43;overflow:auto}.mm-menu header{justify-content:space-between;align-items:center;display:flex}.mm-menu h2{color:#fff;margin:20px 0 6px;font-size:21px}.mm-menu p{color:#a8c4cf;margin-bottom:22px;font-size:12px;line-height:1.8}.mm-menu button{color:inherit;background:0 0;border:0}.mm-menu nav{gap:5px;display:grid}.mm-menu nav button{text-align:start;border-radius:13px;align-items:center;gap:13px;min-height:48px;padding:13px 12px;font-size:14px;display:flex}.mm-menu nav button svg:last-child{margin-inline-start:auto}.mm-menu nav button.active{color:#3dd5bc;background:#ffffff12}.mm-menu-controls{border-block:1px solid #ffffff20;gap:6px;margin:20px 0;padding:15px 0;display:grid}.mm-menu-controls button{text-align:start;align-items:center;gap:12px;padding:12px;font-size:13px;display:flex}.mm-menu>small{color:#85a3b4;font-size:10px}.mm-record-list{gap:15px;margin-top:16px;display:grid}.mm-record{background:#fff;border:1px solid #e0e9ed;border-radius:20px;min-width:0;padding:18px}.mm-record header{align-items:center;gap:10px;display:flex}.mm-record header>button{color:#102a43;text-align:start;overflow-wrap:anywhere;background:0 0;border:0;flex:1;min-width:0;font-size:15px;font-weight:600}.mm-record dl{gap:0;margin:16px 0 5px;display:grid}.mm-record dl>div{border-bottom:1px solid #f0f4f5;justify-content:space-between;align-items:baseline;gap:14px;padding:9px 0;display:flex}.mm-record dt{color:#728692;font-size:11px}.mm-record dd{color:#263f50;text-align:end;overflow-wrap:anywhere;max-width:62%;margin:0;font-size:12px}.mm-record>p{color:#7a8e99;margin-top:12px;font-size:12px;line-height:1.8}.mm-record footer{justify-content:flex-end;gap:16px;padding:14px 0 0;display:flex}.mm-record footer button{color:#087f75;background:0 0;border:0;align-items:center;gap:5px;min-height:38px;font-size:12px;display:flex}.mm-record-units{border-top:3px solid #d69b47}.mm-record-deals{border-top:3px solid #087f75}.mm-record-events{border-top:3px solid #7886ba}.madar-mobile-preview .panel{overflow-wrap:anywhere;border-radius:18px;min-width:0;max-width:100%;margin-top:16px;padding:18px 14px}.madar-mobile-preview .settings-grid,.madar-mobile-preview .help-grid,.madar-mobile-preview .module-cards,.madar-mobile-preview .record-grid{gap:16px;grid-template-columns:1fr!important}.madar-mobile-preview .module-intro{grid-template-columns:1fr;padding:20px}.madar-mobile-preview .module-intro-numbers{flex-wrap:wrap}.madar-mobile-preview .page-heading{flex-wrap:wrap;gap:12px}.madar-mobile-preview .page-heading h1,.madar-mobile-preview .page-heading h2{font-size:21px}.madar-mobile-preview .report-filter-grid{grid-template-columns:1fr 1fr!important}.madar-mobile-preview .report-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.madar-mobile-preview .report-body{display:block}.madar-mobile-preview .table-wrap{width:100%;max-width:100%;overflow-x:auto}.madar-mobile-preview .settings-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.madar-mobile-preview .settings-shortcuts button{width:100%;min-width:0;min-height:75px;padding:14px}.madar-mobile-preview .app-download-card{flex-wrap:wrap;gap:12px;padding:18px;display:flex}.madar-mobile-preview .app-download-card>div{flex:170px;min-width:0}.madar-mobile-preview .app-download-card>a{justify-content:center;width:100%}.madar-mobile-preview .app-download-card p{font-size:12px}.madar-mobile-preview .settings-group{background:#fff;border:1px solid #e0e9ed;border-radius:16px;padding:18px}.madar-mobile-preview .sales-podium{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.madar-mobile-preview .sales-podium article{min-width:0;padding:12px 5px}.madar-mobile-preview .sales-podium h3{overflow-wrap:anywhere;font-size:12px}.madar-mobile-preview .sales-podium strong{font-size:24px}.madar-mobile-preview .inline-buttons{flex-wrap:wrap}.madar-mobile-preview .inline-buttons .btn{min-height:42px}.madar-mobile-preview .overlay{z-index:1200;padding:0;position:fixed;inset:0;overflow:hidden}.madar-mobile-preview .drawer{min-width:0;height:100dvh;max-height:100dvh;padding-top:var(--safe-area-inset-top,env(safe-area-inset-top));padding-bottom:var(--safe-area-inset-bottom,env(safe-area-inset-bottom));border-radius:0;flex-direction:column;display:flex;overflow:hidden;width:100%!important;max-width:100vw!important}.madar-mobile-preview .drawer-header{flex-shrink:0;gap:10px;padding:16px}.madar-mobile-preview .drawer-header h2{overflow-wrap:anywhere;font-size:20px}.madar-mobile-preview .drawer>form{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.madar-mobile-preview .drawer-body{flex:1;min-height:0;padding:16px;overflow-y:auto}.madar-mobile-preview .drawer-footer{background:#fff;border-top:1px solid #e3eaed;flex-wrap:wrap;flex-shrink:0;gap:10px;padding:14px 16px;display:flex}.madar-mobile-preview .form-grid{grid-template-columns:1fr!important}.madar-mobile-preview .form-grid>.field{grid-column:1/-1}.madar-mobile-preview .field input,.madar-mobile-preview .field select,.madar-mobile-preview .field textarea{border-radius:11px;width:100%;min-height:46px;font-size:16px}.madar-mobile-preview .detail-tabs{flex-wrap:nowrap;flex-shrink:0;overflow-x:auto}.madar-mobile-preview .detail-tabs button{white-space:nowrap;min-height:44px}.madar-mobile-preview .detail-actions{flex-wrap:wrap;gap:8px}.madar-mobile-preview .detail-grid{grid-template-columns:1fr!important}.madar-mobile-preview .confirm-dialog{max-width:calc(100vw - 40px);max-height:90dvh;margin:20px;overflow:auto}.madar-mobile-preview .overlay.center{align-items:center}.madar-mobile-preview .call-modal,.madar-mobile-preview .call-dialog{border-radius:0;max-width:100vw;max-height:100dvh;margin:0;overflow:auto}.madar-mobile-preview .toast{inset-inline:12px;overflow-wrap:anywhere;max-width:calc(100vw - 24px);bottom:90px}@media (width<=360px){.mm-app-header{gap:0;padding-inline:6px}.mm-app-header>button{width:34px}.mm-app-brand strong{font-size:14px}.mm-app-brand svg{width:28px}.crm-app.madar-mobile-preview>.main{padding-inline:12px!important}.mm-stages{gap:9px}.mm-stage{padding:14px}.mm-status{max-width:40%;font-size:9px}.mm-action-grid{gap:8px}.mm-action-grid button{font-size:11px}}.madar-mobile-preview .mm-stages{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.madar-mobile-preview .mm-stage{min-height:130px;padding:14px 10px}.madar-mobile-preview .mm-stage>strong{font-size:26px}.madar-mobile-preview .mm-stage>span:not(.mm-stage-icon){min-height:34px;font-size:11px;line-height:1.65}.madar-mobile-preview .mm-stage>svg{display:none}.madar-mobile-preview .mm-hero{margin-top:16px}.madar-mobile-preview .mm-record header .mm-status{overflow-wrap:anywhere;max-width:36%}.madar-mobile-preview .mm-customer-list{margin-top:14px}.crm-app.madar-mobile-preview{--ink:#102a43;--muted:#637888;--line:#e0e9ed;--surface:#fff;--surface-soft:#f3f6f7;--theme-surface:#fff;--theme-ink:#102a43;--blue:#087f75;--blue-dark:#0b685f;--light:#e5f5ef}.crm-app.madar-mobile-preview .searchbox input{width:100%;max-width:100%}.madar-mobile-preview .overlay .drawer-body{overscroll-behavior:contain}.madar-mobile-preview .list-toolbar,.madar-mobile-preview .report-heading,.madar-mobile-preview .filter-top{flex-wrap:wrap}.madar-mobile-preview .advanced-filters{grid-template-columns:1fr}.madar-mobile-preview .app-download-card small{line-height:1.8}.madar-mobile-preview .mm-menu{padding-inline-start:max(22px,var(--safe-area-inset-right,env(safe-area-inset-right)));padding-inline-end:max(22px,var(--safe-area-inset-left,env(safe-area-inset-left)))}.madar-mobile-preview .recruit-layout{gap:16px;grid-template-columns:1fr!important}.madar-mobile-preview .recruit-header{flex-wrap:wrap;gap:12px}.madar-mobile-preview .recruit-form{padding:16px;grid-template-columns:1fr!important}.madar-mobile-preview .recruit-stepper{flex-wrap:nowrap;overflow:auto}.madar-mobile-preview .recruit-stepper button{white-space:nowrap;flex-shrink:0}.mm-stage-change{color:#637888;gap:7px;margin:16px 0;font-size:12px;display:grid}.mm-stage-change select{color:#102a43;background:#fff;border:1px solid #d9e5e7;border-radius:11px;padding:12px;font-size:15px}.madar-mobile-preview .call-radios{flex-wrap:wrap}.madar-mobile-preview .date-shortcuts{flex-wrap:wrap;gap:8px}.madar-mobile-preview .followup-schedule{min-width:0}.madar-mobile-preview .form-drawer>form{overflow:hidden}

/* 2026 consolidated interface: calm navy, clear blue actions, restrained motion. */
:root{--blue:#2563eb;--blue-dark:#1d4ed8;--light:#edf3ff;--navy:#122440;--ink:#20334d;--muted:#60728a;--line:#e2e8f1}
body{background:#f4f7fc}.topbar{background:#122440;box-shadow:0 4px 24px #12244014}.topbar nav a{border-radius:9px;padding:10px 12px}.topbar nav a.active,.topbar nav a:hover,.topbar .icon-btn:hover{background:#243b5b}.topbar nav a.active:after{background:#6ea8ff;bottom:-5px}.side-rail{background:#fff;border-color:#e2e8f1;overflow:visible}.side-rail .icon-btn.active{background:#edf3ff;color:#2563eb;border-radius:11px}.side-rail .icon-btn:hover{background:#f0f5ff;color:#2563eb}.brand small{color:#122440}.panel{border-radius:18px;border-color:#e3eaf4;box-shadow:0 4px 24px #18375c04}.page-heading{gap:16px}.page-heading h2{font-size:21px}.btn{border-color:#d9e3ee;color:#425771;border-radius:10px;min-height:38px}.btn.primary{color:#fff;background:#2563eb;border-color:#2563eb;box-shadow:0 4px 12px #2563eb1a}.btn.primary:hover{background:#1d4ed8;border-color:#1d4ed8}.btn.danger{color:white;background:#c93646;border-color:#c93646}.pill.blue{color:#1d4ed8;background:#edf3ff}.field input,.field select,.field textarea{border-radius:9px;min-height:41px;border-color:#d5e0ec}.field input:focus,.field select:focus,.field textarea:focus{border-color:#6b9df6;box-shadow:0 0 0 3px #2563eb0a}.lead-row:hover{background:#f7faff}.stage-tiles button{background:#f6f9ff;border-color:#dbe6f7}.stage-tiles strong{color:#2563eb}.company-owner-strip,.inventory-quick-actions,.bulk-import-entry,.sales-form-intro{background:#f0f5ff;border-color:#d5e3ff;color:#234a84}.sales-form-intro strong{color:#234a84}.sales-form-intro p{color:#60728a}.info-note{background:#f3f7ff;border-color:#d9e5f8;color:#38557c}.language-switch,.auth-language-switch{color:#285baf;border-color:#d9e4f4}.top-actions .avatar{background:#e9f1ff;color:#1e4380}.auth-screen{background:radial-gradient(ellipse at 12% 15%,#e1ebff,transparent 55%),#f5f8fe}.auth-card{border-color:#dee7f5;border-radius:24px;box-shadow:0 20px 70px #18375c0c}.md-hero{background:linear-gradient(125deg,#122440,#234a78)}.md-hero .md-eyebrow{color:#a9ccff}.md-hero aside button{color:#c5ddff}.md-target b,.md-source-list strong{color:#2563eb}.md-target progress{accent-color:#2563eb}.md-source-list b{background:#4c85ec}.md-message{background:#eff5ff;border-color:#d6e4fb;color:#284e89}.md-widget,.module-card,.target-card{box-shadow:0 4px 20px #17375c05}.module-intro{--module-accent:#2563eb}.module-deals{--module-accent:#7460b3}.module-units{--module-accent:#a17a3d}.module-tasks{--module-accent:#2c7691}.module-notes{--module-accent:#9a7930}.mobile-tabs button.active{color:#2563eb;background:#edf3ff}.drawer{box-shadow:-15px 0 70px #102a4318}.drawer-header{background:#f8faff}.drawer-footer{background:#f8faff}.popup{border-radius:13px;border-color:#dfe7f4;box-shadow:0 12px 40px #12244020}.rail-popup{z-index:80;min-width:245px;max-height:min(75vh,580px);overflow-y:auto;top:0;inset-inline-start:48px}.rail-popup button{min-height:40px}.toast{max-width:min(470px,calc(100vw - 32px));border-radius:13px;box-shadow:0 12px 35px #12244020;z-index:150;overflow-wrap:anywhere}.target-card>.section-title .inline-buttons{gap:2px}.target-card .progress{overflow:hidden}.target-card .progress i{transition:width 600ms cubic-bezier(.2,.7,.2,1)}
.client-select{position:relative;min-width:0}.client-select-control{display:flex;align-items:center;gap:5px;border:1px solid #d5e0ec;background:#fff;border-radius:9px;padding-inline-end:10px}.client-select-control:focus-within{border-color:#6b9df6;box-shadow:0 0 0 3px #2563eb0a}.client-select-control>input{width:100%;border:0;box-shadow:none!important;background:transparent;outline:0;min-width:0}.client-select-control>button{border:0;background:transparent;border-radius:5px;padding:5px;display:grid;place-items:center;color:#60728a}.client-select-options{position:absolute;inset-inline:0;top:calc(100% + 5px);z-index:90;background:white;border:1px solid #dbe5f3;border-radius:12px;box-shadow:0 12px 35px #12244020;max-height:285px;overflow:auto;padding:5px}.client-select-options>button{width:100%;border:0;background:white;text-align:start;padding:10px 12px;border-radius:8px;display:grid;grid-template-columns:1fr auto;gap:4px}.client-select-options>button strong{font-size:12px;grid-column:1}.client-select-options>button small{color:#60728a;grid-column:1;text-align:start;font-size:11px}.client-select-options>button>svg{grid-column:2;grid-row:1/3;color:#2563eb}.client-select-options>button.highlighted,.client-select-options>button:hover{background:#edf3ff}.client-select-options>p{padding:14px 10px;color:#60728a;font-size:11px}.field:has(.client-select){overflow:visible}
@keyframes madar-reveal{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@keyframes madar-drawer{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:no-preference){.btn,.icon-btn,.topbar nav a,.module-card,.target-card,.lead-row{transition:background-color 150ms ease,border-color 150ms ease,box-shadow 150ms ease,transform 150ms ease}.btn:active,.icon-btn:active{transform:scale(.97)}.main>.panel,.main>.madar-dashboard,.main>.module-intro,.popup,.toast{animation:madar-reveal 200ms ease both}.drawer{animation:madar-drawer 220ms cubic-bezier(.2,.7,.2,1) both}.target-card:hover,.module-card:hover{box-shadow:0 10px 30px #17375c0d;transform:translateY(-2px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media(max-width:1050px){.topbar nav{overflow-x:auto;scrollbar-width:none;min-width:0}.topbar nav a{padding-inline:9px}.top-actions{gap:6px}.topbar nav a span{font-size:11px}}
@media(max-width:700px){.panel{border-radius:15px;padding:18px 14px}.page-heading{flex-wrap:wrap}.page-heading h2{font-size:19px}.rail-popup{position:fixed;inset-inline:12px;top:72px;max-height:70vh;width:auto}.target-card .inline-buttons{flex-wrap:nowrap}.toast{bottom:84px}.client-select-options{max-height:235px}.btn{min-height:40px}}
.permission-onboarding{position:fixed;inset:0;z-index:140;background:#12244066;display:grid;place-items:center;padding:20px;backdrop-filter:blur(4px)}.permission-onboarding>section,.permission-onboarding>div{background:white;color:#20334d;border:1px solid #dce7f5;border-radius:24px;padding:30px;width:min(480px,100%);box-shadow:0 20px 90px #12244030}.permission-onboarding h2,.permission-onboarding h3{margin:16px 0 12px}.permission-onboarding p{line-height:1.9;color:#60728a;margin-bottom:18px}.permission-onboarding .inline-buttons{margin-top:22px;justify-content:flex-end}.permission-onboarding .btn{white-space:normal}

.mm-more{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:22px}.mm-more>h1,.mm-more>p{grid-column:1/-1}.mm-more>button{display:flex;align-items:center;gap:14px;min-height:72px;padding:18px;border:1px solid #e0e8f4;border-radius:16px;background:white;text-align:start}.mm-more>button>.lucide:last-child{margin-inline-start:auto}.mm-more>button:hover{border-color:#9bbcf2;background:#f5f9ff}.recruit-layout{gap:22px}.recruit-header{background:linear-gradient(130deg,#122440,#28568a);color:white;padding:30px;border-radius:20px;margin-bottom:24px;position:relative;overflow:hidden}.recruit-header h1{color:white;line-height:1.7;margin:12px 0}.recruit-header p{color:#d2e3fb}.recruit-header:after{content:"";position:absolute;inset-inline-end:-45px;top:-60px;width:200px;height:200px;border:30px solid #ffffff08;border-radius:50%;pointer-events:none}.import-assignment{margin:20px 0;padding:20px;border:1px solid #d9e5f7;border-radius:16px;background:#f6f9ff;display:grid;grid-template-columns:1fr 1fr;gap:14px}.import-assignment h3,.import-assignment p{grid-column:1/-1}.import-assignment p{font-size:11px;line-height:1.9;color:#60728a}.target-card:has(.overlay){transform:none!important}.target-card .overlay{position:fixed;z-index:120;inset:0}.client-select-control{color:#60728a}@media(max-width:767px){.mm-more{grid-template-columns:1fr;padding:14px}.mm-more>button{min-height:66px}.import-assignment{grid-template-columns:1fr;padding:15px}.recruit-header{padding:24px 18px}.recruit-header h1{font-size:24px}.recruit-layout{display:block}.permission-onboarding{z-index:10000}}

html:is([data-theme=blue],[data-theme=dark]) :is(.client-select-control,.client-select-options,.client-select-options>button,.permission-onboarding>section,.import-assignment,.mm-more>button){background:var(--surface);color:var(--ink);border-color:var(--line)}html:is([data-theme=blue],[data-theme=dark]) .client-select-options>button.highlighted{background:var(--surface-raised)}html:is([data-theme=blue],[data-theme=dark]) :is(.client-select-options small,.import-assignment p,.permission-onboarding p){color:var(--muted)}html[data-theme=dark] body{background:#101114}

/* Visual QA: calm release notice and fully readable stage names. */
.ref-release{background:linear-gradient(135deg,#edf4ff,#dceafb);border:1px solid #c8daf2;color:#183d68;box-shadow:0 5px 18px #183d6808;gap:14px;padding:22px}.ref-release>div{min-width:0;flex:1}.ref-release>svg{background:#ffffffc9;color:#37679e}.ref-release h3{color:#163b65;font-size:clamp(17px,1.3vw,21px);line-height:1.65;white-space:normal;overflow-wrap:anywhere;margin:0;margin-inline-end:18px}.ref-release p{color:#46688e;font-size:13px;line-height:1.9;margin:7px 0 12px;white-space:normal;overflow-wrap:anywhere}.ref-release button{background:#ffffffb3;color:#244f80;border:1px solid #c6d8ee;border-radius:9px}.ref-release button:hover{background:white}.ref-release .ref-dismiss{background:#ffffffb3;color:#31597e;inset-inline-end:10px;top:10px}
html:is([data-theme=blue],[data-theme=dark]) .ref-release{background:linear-gradient(135deg,#1c304b,#243e60);border-color:#3d587c;color:#e2edff}html:is([data-theme=blue],[data-theme=dark]) .ref-release h3{color:#edf4ff}html:is([data-theme=blue],[data-theme=dark]) .ref-release p{color:#c0d4ee}html:is([data-theme=blue],[data-theme=dark]) .ref-release button{background:#304b70;border-color:#547196;color:#edf4ff}html:is([data-theme=blue],[data-theme=dark]) .ref-release>svg{background:#304b70;color:#dceaff}
.ref-stage-grid>button{height:auto;min-height:132px;align-self:stretch}.ref-stage-grid p{white-space:normal;text-overflow:clip;overflow:visible;display:block;min-height:3em;line-height:1.55;overflow-wrap:anywhere;font-size:14px;margin-top:10px}.ref-stages>header{height:auto;min-height:60px;gap:12px;padding-block:14px}.ref-stages>header h2,.ref-stages>header h3{min-width:0;overflow-wrap:anywhere;line-height:1.6}.ref-stage-grid>button>div{row-gap:4px}
@media(max-width:1100px){.ref-stage-grid p{font-size:13px}.ref-stage-grid>button{min-height:124px;padding:18px 13px}.ref-release{padding:20px 16px;gap:12px;align-items:flex-start}}
@media(max-width:700px){.ref-stage-grid p{font-size:13px;min-height:3em}.ref-stage-grid>button{min-height:118px;padding:16px 14px}.ref-release{padding:20px 16px}.ref-release h3{font-size:18px}.ref-release>svg{padding:9px}}

.permission-onboarding{overflow-y:auto}.permission-onboarding>section{max-height:calc(100dvh - 40px);overflow-y:auto}.permission-onboarding .permission-feature{padding-top:16px;margin-top:14px;border-top:1px solid #dce5f3}.permission-onboarding .permission-feature h3{font-size:15px;margin:0 0 8px}.permission-onboarding .permission-feature p{font-size:12px;margin-bottom:12px}.permission-onboarding .permission-feature .btn{white-space:normal;text-align:center}.permission-onboarding .permission-finish{position:sticky;bottom:-30px;background:inherit;padding:18px 0 4px;border-top:1px solid #dce5f3}html:is([data-theme=blue],[data-theme=dark]) .permission-onboarding .permission-feature{border-color:var(--line)}

.madar-lead-form{display:grid;gap:15px}.madar-lead-section{padding:20px 22px;border:1px solid #d9e5eb;border-radius:18px;background:#fff}.madar-lead-section h3{display:flex;align-items:center;gap:9px;margin:0 0 18px;color:#173651;font-size:1.05rem}.madar-lead-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.madar-lead-grid>.wide{grid-column:1/-1}.madar-phone-row{display:grid;grid-template-columns:170px minmax(180px,1fr) 150px auto;align-items:end;gap:13px;padding:13px;margin:0 0 12px;background:#f8fafb;border:1px solid #e1e8ea;border-radius:12px}.madar-phone-row label{display:grid;gap:6px}.madar-phone-row input:not([type=checkbox]),.madar-phone-row select,.madar-lead-section select{min-height:44px}.madar-phone-checkbox{display:flex!important;align-items:center;gap:8px;padding-bottom:12px}.madar-lead-actions{display:flex;justify-content:flex-end;gap:12px;align-items:center}.madar-lead-actions span{display:flex;gap:8px;align-items:center}
@media(max-width:800px){.madar-lead-grid{grid-template-columns:1fr}.madar-phone-row{grid-template-columns:1fr 1fr}.madar-phone-checkbox{padding:0}.madar-lead-section{padding:16px}}

.madar-lead-report{padding:24px;margin-bottom:20px}.madar-report-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.madar-report-filters label{display:grid;gap:6px;font-weight:600}.madar-report-filters input,.madar-report-filters select{min-height:42px}.madar-report-tools{display:flex;justify-content:flex-end;margin-bottom:14px}.madar-report-lead{border:1px solid #dce7ec;border-radius:13px;margin:10px 0;background:#fff}.madar-report-lead summary{display:flex;align-items:center;gap:15px;cursor:pointer;padding:15px}.madar-report-lead summary strong{min-width:140px}.madar-report-lead summary small{margin-inline-start:auto}.madar-report-details{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:15px}.madar-report-details div{background:#f5f8fa;padding:10px;border-radius:9px;overflow-wrap:anywhere}.madar-report-details p{margin:5px 0;white-space:pre-wrap}.madar-report-lead h4,.madar-report-feedback{margin:10px 15px}.madar-report-feedback{border-inline-start:3px solid #438c98;padding:8px 12px}.madar-report-feedback p{white-space:pre-wrap;margin:7px 0}
@media(max-width:820px){.madar-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.madar-report-details{grid-template-columns:1fr}.madar-report-lead summary{flex-wrap:wrap}}

/* Midnight teal, jade and warm copper with calm accessible surfaces. */
:root{--blue:#087f82;--blue-dark:#06686f;--light:#e6f5f3;--navy:#112f39;--ink:#1c3440;--muted:#60777e;--line:#d5e4e1}
body{background:#f4f8f6;color:#1c3440}.topbar{background:linear-gradient(110deg,#102d37,#16525a);box-shadow:0 8px 28px #13384320}.topbar nav a.active,.topbar nav a:hover{background:#ffffff20}.topbar nav a.active:after{background:#e7af63}.side-rail{border-color:#dce9e5;background:#fffefa}.side-rail .icon-btn.active,.mobile-tabs button.active{background:#e2f3ef;color:#087f82}.side-rail .icon-btn:hover{background:#edf7f4;color:#06686f}.brand small{color:#1a434b}.panel{border:1px solid #dae9e4;box-shadow:0 6px 28px #173e3708;background:#fff}.btn.primary{background:#087f82;border-color:#087f82;box-shadow:0 5px 15px #087f8225}.btn.primary:hover{background:#06686f;border-color:#06686f}.pill.blue{background:#e1f4f1;color:#086d70}.field input:focus,.field select:focus,.field textarea:focus{border-color:#31a7a3;box-shadow:0 0 0 3px #31a7a323}.auth-screen{background:radial-gradient(ellipse at 15% 18%,#d6f0e8,transparent 50%),radial-gradient(ellipse at 90% 70%,#f9e7cf,transparent 40%),#f8fbf9}.md-hero{background:linear-gradient(130deg,#112f39,#0a7274)}.md-hero .md-eyebrow{color:#f0c588}.md-target b,.md-source-list strong,.stage-tiles strong{color:#087f82}.md-target progress{accent-color:#087f82}.md-source-list b{background:#16a29d}.md-message,.info-note,.sales-form-intro,.stage-tiles button{background:#edf7f3;border-color:#cee5dd;color:#1d595c}.module-intro{--module-accent:#087f82}.module-deals{--module-accent:#a16b4d}.module-units{--module-accent:#ba853a}.drawer-header,.drawer-footer{background:#f3f8f5}.client-select-options>button.highlighted,.client-select-options>button:hover{background:#e7f5ef}.target-card:hover,.module-card:hover{box-shadow:0 12px 32px #17443d16}
@media(prefers-reduced-motion:no-preference){.main>.panel,.main>.madar-dashboard,.main>.module-intro,.popup,.toast,.drawer{animation:none!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

.madar-interview{padding:26px}.madar-interview h2{margin:0 0 8px}.madar-interview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.madar-interview-grid .field:has(textarea){grid-column:1/-1}.madar-lead-history{margin:16px 0;padding:18px;border:1px solid #cfe3df;border-radius:17px;background:#f5faf7}.madar-lead-history h3{margin:0 0 12px}.madar-lead-latest,.madar-lead-history article{background:#fff;border-radius:12px;padding:14px;margin:10px 0}.madar-lead-latest p,.madar-lead-history article p{font-size:1.05rem;line-height:1.7;white-space:pre-wrap}.madar-lead-history details summary{cursor:pointer;font-weight:700}.madar-lead-history article{border-inline-start:3px solid #0e9f9a}.madar-lead-history small{display:block;color:#60777e}
@media(max-width:720px){.madar-interview-grid{grid-template-columns:1fr}}


/* Keep new lead, report and import surfaces in the active dark palette. */
html:is([data-theme=dark],[data-theme=blue]) :is(.madar-lead-section,.madar-phone-row,.madar-report-lead,.madar-report-details div,.madar-lead-history,.madar-lead-latest,.madar-lead-history article,.madar-interview,.import-assignment,.permission-onboarding>section,.ref-release,.ref-release>svg,.ref-release button,.md-message,.stage-tiles button){background:var(--surface-raised);color:var(--ink);border-color:var(--line)}
html:is([data-theme=dark],[data-theme=blue]) :is(.madar-lead-section h3,.madar-report-lead h4,.madar-lead-history h3,.ref-release h3,.ref-release p){color:var(--ink)}
html:is([data-theme=dark],[data-theme=blue]) :is(.madar-phone-row,.madar-report-details div,.madar-lead-latest,.madar-lead-history article){background:var(--surface);color:var(--ink)}
html:is([data-theme=dark],[data-theme=blue]) :is(.madar-lead-history small,.import-assignment p){color:var(--muted)}
html:is([data-theme=dark],[data-theme=blue]) :is(.drawer-header,.drawer-footer,.side-rail,.panel){background:var(--surface);color:var(--ink);border-color:var(--line)}
html:is([data-theme=dark],[data-theme=blue]) .pill.blue{background:var(--surface-raised);color:var(--accent)}
html:is([data-theme=dark],[data-theme=blue]) .ref-release button:hover{background:var(--hover)}

.madar-sales-dashboard .sales-periods{margin-block:20px;flex-wrap:wrap;gap:8px}.madar-sales-dashboard .sales-self-summary{padding:12px 16px;border:1px solid #ffffff40;border-radius:12px;background:#ffffff12;font-weight:700}.madar-sales-dashboard .sales-podium article{border:1px solid var(--border,#dce5f0);border-radius:18px;background:var(--surface,#fff);padding:24px 16px;text-align:center;min-width:0}.madar-sales-dashboard .sales-podium h3{overflow-wrap:anywhere}.madar-sales-dashboard .sales-podium strong{font-variant-numeric:tabular-nums}.madar-sales-dashboard .sales-rank{gap:12px;padding:16px;border-radius:12px;margin-block:8px;border:1px solid var(--border,#dce5f0)}.madar-sales-dashboard .sales-rank.me,.madar-sales-dashboard .sales-podium .me{border-color:#3777ec;box-shadow:inset 4px 0 #3777ec}.madar-sales-dashboard .sales-rank>span{min-width:0;flex:1}.madar-sales-dashboard .sales-rank>span>strong{overflow-wrap:anywhere}.madar-sales-dashboard .sales-rank small{display:block;font-size:12px;opacity:.78}.madar-sales-analysis{margin-block-start:24px;padding-block-start:20px;border-block-start:1px solid var(--border,#dce5f0)}.sales-report-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-block:16px}.sales-report-filters label{display:grid;gap:6px;flex:1;min-width:150px}.sales-analysis-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-block:16px}.sales-analysis-kpis article{display:grid;gap:8px;background:var(--surface,#fff);border:1px solid var(--border,#dce5f0);padding:18px;border-radius:14px}.sales-analysis-kpis strong{font-size:28px;font-variant-numeric:tabular-nums;color:var(--text,#18314e)}.sales-analysis-kpis small{font-size:13px}.sales-hour-chart{display:grid;grid-template-columns:repeat(24,minmax(22px,1fr));gap:6px;overflow-x:auto;direction:ltr;padding:12px 4px;border-block-end:1px solid var(--border,#dce5f0)}.sales-hour-chart>div{display:flex;min-height:130px;flex-direction:column;justify-content:end;align-items:center;gap:6px}.sales-hour-chart span{display:block;width:100%;max-width:28px;border-radius:5px 5px 0 0;background:#3978e8}.sales-hour-chart b,.sales-hour-chart small{font-size:11px}.madar-sales-analysis table{width:100%;border-collapse:collapse;white-space:nowrap}.madar-sales-analysis caption{text-align:start;padding:12px;font-weight:600}.madar-sales-analysis td,.madar-sales-analysis th{padding:10px;text-align:start;border-block-end:1px solid var(--border,#dce5f0)}.madar-sales-analysis .table-scroll{overflow-x:auto;margin-block:16px}[data-theme=dark] .madar-sales-dashboard .sales-podium article,[data-theme=blue] .madar-sales-dashboard .sales-podium article,[data-theme=dark] .sales-analysis-kpis article,[data-theme=blue] .sales-analysis-kpis article{background:#172131;color:#e8edf6}[data-theme=dark] .sales-analysis-kpis strong,[data-theme=blue] .sales-analysis-kpis strong{color:#e8edf6}@media(max-width:650px){.sales-analysis-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.madar-sales-dashboard .sales-podium{gap:8px}.madar-sales-dashboard .sales-podium article{padding:16px 8px}.madar-sales-dashboard .sales-podium h3{font-size:14px}.madar-sales-dashboard .sales-rank{padding:12px;gap:8px}}

.quick-lead-import{max-width:1200px;margin:auto}.quick-lead-import header{margin-bottom:1.3rem}.quick-lead-import header h2{margin:0 0 .4rem;font-size:clamp(1.5rem,3vw,2rem)}.quick-lead-import header p{opacity:.8;margin:0}.quick-import-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.quick-import-steps label,.quick-import-more label{display:grid;gap:.45rem;font-weight:700}.quick-import-steps select,.quick-import-steps input[type=file],.quick-import-more select{width:100%;min-height:3.1rem;padding:.65rem;border:1px solid var(--line,#65758b);border-radius:.8rem;background:var(--theme-surface,#fff);color:var(--theme-ink,#102a43)}.quick-import-steps input[type=file]{font-weight:400}.quick-import-steps input::file-selector-button{border:0;border-radius:.5rem;padding:.5rem;margin-inline-end:.7rem;background:#317acc;color:white}.quick-import-more{margin-top:1rem;border:1px solid var(--line,#65758b);border-radius:.8rem;padding:.85rem}.quick-import-more summary{cursor:pointer;font-weight:700}.quick-import-more label,.quick-import-more p{margin-top:.9rem}.quick-import-summary{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-top:1rem;padding:1rem;border-radius:.8rem;background:var(--theme-surface,#fff)}.quick-import-summary>strong{margin-inline-end:auto;overflow-wrap:anywhere}.quick-import-count{display:grid;gap:.2rem;text-align:center;min-width:7rem}.quick-import-count strong{font-size:1.45rem}.quick-import-count span{font-size:.85rem;opacity:.8}.quick-import-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-top:1.1rem}.quick-import-actions button,.quick-import-more button{border:1px solid var(--line,#65758b);border-radius:.7rem;padding:.75rem 1.1rem;color:inherit;background:var(--theme-surface,#fff);cursor:pointer}.quick-import-actions button.primary{background:#258558;border-color:#258558;color:#fff}.quick-import-actions button:disabled{opacity:.45;cursor:not-allowed}.quick-import-errors{margin-top:1rem;padding:1rem;border:1px solid #c78040;border-radius:.8rem}.quick-import-error-list{max-height:18rem;overflow:auto}.quick-import-error-list p{margin:.45rem 0}.quick-lead-import .form-error{margin-top:1rem}@media(max-width:760px){.quick-import-steps{grid-template-columns:1fr}.quick-import-summary>strong{width:100%}.quick-import-count{flex:1}}

.madar-hiring-links{margin-bottom:20px}.madar-hiring-links .inline-buttons{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.madar-hiring-links .inline-buttons .field{min-width:min(340px,100%);flex:1}.madar-hiring-share{display:flex;gap:10px;align-items:end;flex-wrap:wrap;padding:14px;border-radius:12px;background:var(--surface-soft,#eef7f8);margin:16px 0}.madar-hiring-share .field{flex:1;min-width:200px}.madar-hiring-share input{direction:ltr;text-align:left}.madar-hiring-list{padding:0;list-style:none;display:grid;gap:10px}.madar-hiring-list li{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid var(--border,#dbe6ec);border-radius:10px}.madar-hiring-list li strong{min-width:150px}.madar-hiring-list li small{color:var(--muted,#617587)}@media(max-width:600px){.madar-hiring-list li>*{width:100%}}
