/* Moving Lead Manager: partner portal (register, login, dashboard). */
.mlm-pp{
	--pp-navy:var(--mlm-deep-navy,#0B2D4D);
	--pp-blue:var(--mlm-primary-blue,#0878B9);
	--pp-green:var(--mlm-dark-green,#4F9D22);
	--pp-light:var(--mlm-light-blue,#EAF5FB);
	--pp-text:var(--mlm-dark-text,#172B3A);
	--pp-muted:var(--mlm-muted-text,#5A6F80);
	--pp-border:var(--mlm-border,#DCE6EE);
	--pp-bg:var(--mlm-background,#F4F7FA);
	--pp-danger:var(--mlm-danger,#B3261E);
	--pp-warn:var(--mlm-warning,#8A5A00);
	--pp-gutter:16px;
	box-sizing:border-box;max-width:1100px;margin:0 auto;padding:16px;color:var(--pp-text);font-size:16px;line-height:1.55;
}
.mlm-pp *,.mlm-pp *::before,.mlm-pp *::after{box-sizing:inherit}
.mlm-pp--narrow,.mlm-pp .mlm-pp--narrow{max-width:760px;margin-left:auto;margin-right:auto}

.mlm-pp-card{background:#fff;border:1px solid var(--pp-border);border-radius:16px;padding:28px;margin:0 0 20px;box-shadow:0 1px 2px rgba(11,45,77,.04),0 8px 24px rgba(11,45,77,.04)}
.mlm-pp-title{margin:0 0 6px;font-size:26px;line-height:1.2;color:var(--pp-navy)}
.mlm-pp-h3{margin:24px 0 12px;font-size:19px;letter-spacing:-.005em;color:var(--pp-navy)}
.mlm-pp-card>.mlm-pp-h3:first-child{margin-top:0}
.mlm-pp-h4{margin:26px 0 10px;padding-top:20px;border-top:1px solid var(--pp-border);font-size:15px;color:var(--pp-navy)}
.mlm-pp-form>.mlm-pp-h4:first-of-type{margin-top:4px;padding-top:0;border-top:0}
.mlm-pp-sub{margin:0 0 16px;color:var(--pp-muted)}
.mlm-pp-help{display:block;margin:4px 0 0;font-size:13px;color:var(--pp-muted)}
.mlm-pp-err{display:block;margin:4px 0 0;font-size:13px;color:var(--pp-danger)}
.mlm-pp-req{color:var(--pp-danger)}
.mlm-pp-links{margin:16px 0 0;font-size:14px;color:var(--pp-muted)}
.mlm-pp-links a,.mlm-pp-card a:not(.mlm-pp-btn){color:var(--pp-blue)}

/* Login / register switch */
.mlm-pp-switch{display:flex;gap:8px;margin:0 0 16px;background:var(--pp-light);padding:6px;border-radius:10px}
.mlm-pp-switch a{flex:1;text-align:center;padding:10px 12px;border-radius:8px;text-decoration:none;font-weight:600;color:var(--pp-navy)}
.mlm-pp-switch a.is-active{background:#fff;box-shadow:0 1px 3px rgba(11,45,77,.15);color:var(--pp-blue)}

/* Forms */
.mlm-pp-form{margin:0}
.mlm-pp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
.mlm-pp-field{margin:0 0 14px}
.mlm-pp-field label{display:block;margin:0 0 5px;font-weight:600;font-size:14px;color:var(--pp-navy)}
.mlm-pp-field input[type=text],.mlm-pp-field input[type=email],.mlm-pp-field input[type=tel],.mlm-pp-field input[type=url],.mlm-pp-field input[type=password],.mlm-pp-field select,.mlm-pp-field textarea,.mlm-pp-payout input[type=text]{
	width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--pp-border);border-radius:10px;background:#fff;color:var(--pp-text);font:inherit;box-shadow:none
}
.mlm-pp-field textarea{min-height:120px;resize:vertical}
.mlm-pp-field input:focus,.mlm-pp-field select:focus,.mlm-pp-field textarea:focus,.mlm-pp-payout input:focus{outline:2px solid var(--pp-blue);outline-offset:1px;border-color:var(--pp-blue)}
.mlm-pp-field.has-error input,.mlm-pp-field.has-error select{border-color:var(--pp-danger)}
.mlm-pp-field input[type=file]{width:100%;font:inherit}
.mlm-pp-logo{display:block;max-width:120px;max-height:120px;margin:0 0 8px;border:1px solid var(--pp-border);border-radius:8px;padding:4px;background:#fff}
.mlm-pp-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

.mlm-pp-checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px 16px;margin:0 0 14px}
.mlm-pp-states{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:4px 12px;max-height:280px;overflow:auto;padding:12px;border:1px solid var(--pp-border);border-radius:8px;margin:0 0 14px}
.mlm-pp-check{display:flex;align-items:flex-start;gap:8px;font-size:15px;cursor:pointer}
.mlm-pp-check input{margin-top:4px;width:18px;height:18px;flex:none;accent-color:var(--pp-blue)}
.mlm-pp-confirms{margin:8px 0 18px;display:grid;gap:8px}
.mlm-pp-payout{display:grid;grid-template-columns:minmax(150px,220px) 1fr;gap:8px 14px;align-items:center;margin:0 0 10px}

/* Buttons */
.mlm-pp-btn{display:inline-block;padding:11px 22px;border:0;border-radius:10px;background:var(--pp-blue);color:#fff!important;font:inherit;font-weight:600;text-decoration:none;cursor:pointer;line-height:1.3;transition:filter .15s,box-shadow .15s;box-shadow:0 2px 6px rgba(8,120,185,.25)}
.mlm-pp-btn:hover{filter:brightness(.92)}
.mlm-pp-btn:focus-visible{outline:3px solid var(--pp-navy);outline-offset:2px}
.mlm-pp-btn--block{display:block;width:100%;margin-top:8px;text-align:center}
.mlm-pp-btn--ghost{background:transparent;color:var(--pp-blue)!important;border:1px solid var(--pp-blue);box-shadow:none}
.mlm-pp-btn--ghost:hover{background:var(--pp-light);filter:none}

/* Notices */
.mlm-pp-notice{padding:12px 16px;border-radius:8px;margin:0 0 16px;border:1px solid;font-size:15px}
.mlm-pp-notice--success{background:#EEF8E8;border-color:#BFE0A8;color:#2F6A12}
.mlm-pp-notice--error{background:#FDEDEC;border-color:#F3B8B4;color:var(--pp-danger)}
.mlm-pp-notice--warning{background:#FFF6E0;border-color:#F0D49A;color:var(--pp-warn)}

/* Dashboard shell */
.mlm-pp--wide{max-width:1240px}
.mlm-pp-dash{display:grid;grid-template-columns:272px minmax(0,1fr);gap:28px;align-items:start}
/* Sidebar */
.mlm-pp-side{position:sticky;top:24px;display:flex;flex-direction:column;gap:4px;min-height:520px;padding:22px 14px 14px;background:linear-gradient(180deg,var(--pp-navy) 0%,#071F35 100%);border-radius:18px;color:#fff;box-shadow:0 12px 32px rgba(11,45,77,.2)}
.mlm-pp-brand{display:flex;align-items:center;gap:14px;padding:0 8px 20px;margin:0 0 12px;border-bottom:1px solid rgba(255,255,255,.12)}
.mlm-pp-avatar{flex:none;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:#fff;color:var(--pp-navy);font-weight:800;font-size:18px;overflow:hidden;box-shadow:0 0 0 3px rgba(255,255,255,.14)}
.mlm-pp-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.mlm-pp-brand-text{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.mlm-pp-brand-text strong{display:block;max-width:100%;font-size:16px;line-height:1.25;font-weight:700;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mlm-pp-badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.5;background:var(--pp-light);color:var(--pp-navy)}
.mlm-pp-badge--active{background:#DDF3CE;color:#2F6A12}
.mlm-pp-badge--pending{background:#FFE9B8;color:#7A4E00}
.mlm-pp-badge--paused{background:#FAD4D1;color:var(--pp-danger)}
.mlm-pp-tabs{display:flex;flex-direction:column;gap:3px}
.mlm-pp .mlm-pp-tabs a,.mlm-pp .mlm-pp-logout{position:relative;display:flex;align-items:center;gap:13px;padding:12px 14px;border-radius:12px;color:rgba(255,255,255,.74);font-weight:500;font-size:15px;line-height:1.2;transition:background .15s,color .15s}
.mlm-pp .mlm-pp-tabs a,.mlm-pp .mlm-pp-tabs a:hover,.mlm-pp .mlm-pp-tabs a:focus,.mlm-pp .mlm-pp-tabs a *,
.mlm-pp .mlm-pp-logout,.mlm-pp .mlm-pp-logout:hover,.mlm-pp .mlm-pp-logout *,
.mlm-pp .mlm-pp-btn,.mlm-pp .mlm-pp-btn:hover,.mlm-pp .mlm-pp-btn:focus,.mlm-pp .mlm-pp-switch a{text-decoration:none!important;border-bottom:0}
.mlm-pp .mlm-pp-btn--ghost{border-bottom:1px solid var(--pp-blue)}
.mlm-pp .mlm-pp-tabs a:hover,.mlm-pp .mlm-pp-logout:hover{background:rgba(255,255,255,.08);color:#fff}
.mlm-pp .mlm-pp-tabs a.is-active{background:rgba(255,255,255,.13);color:#fff;font-weight:600;box-shadow:none}
.mlm-pp .mlm-pp-tabs a.is-active::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:4px;border-radius:0 4px 4px 0;background:#7BD94A}
.mlm-pp-tabs a .mlm-pp-ico{opacity:.8}
.mlm-pp-tabs a.is-active .mlm-pp-ico{opacity:1;color:#8FD0F5}
.mlm-pp-tabs a:focus-visible,.mlm-pp-logout:focus-visible{outline:2px solid #fff;outline-offset:2px}
.mlm-pp-ico{flex:none;display:block}
.mlm-pp .mlm-pp-logout{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);border-radius:0 0 12px 12px;padding-top:18px;color:rgba(255,255,255,.6)}
.mlm-pp .mlm-pp-logout:hover{background:rgba(179,38,30,.22);color:#FFD7D4}
.mlm-pp-main{min-width:0}
.mlm-pp-pagehead{margin:2px 0 18px;font-size:28px;line-height:1.2;letter-spacing:-.01em;color:var(--pp-navy)}

/* Stats */
.mlm-pp-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}
.mlm-pp-stat{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--pp-border);border-radius:14px;padding:18px;box-shadow:0 1px 2px rgba(11,45,77,.04)}
.mlm-pp-stat-ico{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:12px;background:var(--pp-light);color:var(--pp-blue)}
.mlm-pp-stat:nth-child(2) .mlm-pp-stat-ico{background:#EAF6DF;color:var(--pp-green)}
.mlm-pp-stat:nth-child(3) .mlm-pp-stat-ico{background:#FFF3D6;color:#B07400}
.mlm-pp-stat:nth-child(4) .mlm-pp-stat-ico{background:#EEEAFB;color:#5B46C2}
.mlm-pp-stat strong{display:block;font-size:26px;line-height:1.1;color:var(--pp-navy)}
.mlm-pp-stat div>span{display:block;margin-top:3px;font-size:13px;color:var(--pp-muted)}

/* Progress + checklist */
.mlm-pp-pct{float:right;color:var(--pp-green);font-weight:800}
.mlm-pp-bar{height:10px;border-radius:999px;background:var(--pp-light);overflow:hidden;margin:0 0 18px}
.mlm-pp-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--pp-blue),var(--pp-green));border-radius:999px}
.mlm-pp-list{list-style:none;margin:0 0 20px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.mlm-pp-list li{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:10px;background:var(--pp-bg);color:var(--pp-muted);font-size:14.5px}
.mlm-pp-list li.is-done{background:#F1F9EA;color:var(--pp-text)}
.mlm-pp-list li:not(.is-done) span{font-size:0}
.mlm-pp-list li span{flex:none;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;border:1.5px solid var(--pp-border);background:#fff;font-size:11px;line-height:1}
.mlm-pp-list li.is-done span{background:var(--pp-green);border-color:var(--pp-green);color:#fff;font-weight:700}
.mlm-pp-card>p:last-child{margin-bottom:0}
.mlm-pp-card>p>.mlm-pp-btn{margin:0 8px 8px 0}
.mlm-pp-empty{margin:0;padding:32px 24px;text-align:center;color:var(--pp-muted);background:var(--pp-bg);border:1px dashed var(--pp-border);border-radius:12px}

/* Tables */
.mlm-pp-tablewrap{overflow-x:auto;border:1px solid var(--pp-border);border-radius:12px}
.mlm-pp-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff}
.mlm-pp-table th{text-align:left;padding:12px 14px;background:var(--pp-bg);color:var(--pp-muted);font-size:12.5px;font-weight:700;border-bottom:1px solid var(--pp-border);white-space:nowrap}
.mlm-pp-table td{padding:14px;border-bottom:1px solid var(--pp-border);vertical-align:top}
.mlm-pp-table tbody tr:last-child td{border-bottom:0}
.mlm-pp-table tbody tr:hover td{background:#FAFCFE}
.mlm-pp-pill{display:inline-block;padding:3px 11px;border-radius:999px;background:var(--pp-light);color:var(--pp-blue);font-size:12.5px;font-weight:700;white-space:nowrap}

@media (max-width:1000px){
	.mlm-pp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:860px){
	.mlm-pp-dash{grid-template-columns:1fr;gap:16px}
	.mlm-pp-side{position:static;min-height:0;padding:14px}
	.mlm-pp-brand{padding-bottom:12px}
	.mlm-pp-tabs{flex-direction:row;overflow-x:auto;gap:4px;-webkit-overflow-scrolling:touch;padding-bottom:2px}
	.mlm-pp-tabs a{flex:none;white-space:nowrap}
	.mlm-pp .mlm-pp-logout{margin-top:4px;padding-top:12px;border-top:0;border-radius:12px}
}
@media (max-width:760px){
	.mlm-pp{padding:12px}
	.mlm-pp-card{padding:20px}
	.mlm-pp-pagehead{font-size:23px}
	.mlm-pp-grid{grid-template-columns:1fr}
	.mlm-pp-stats{grid-template-columns:1fr 1fr;gap:10px}
	.mlm-pp-stat{flex-direction:column;align-items:flex-start;padding:14px}
	.mlm-pp-list{grid-template-columns:1fr}
	.mlm-pp-payout{grid-template-columns:1fr}
	.mlm-pp-tablewrap{border:0}
	.mlm-pp-table thead{display:none}
	.mlm-pp-table,.mlm-pp-table tbody,.mlm-pp-table tr,.mlm-pp-table td{display:block;width:100%}
	.mlm-pp-table tr{border:1px solid var(--pp-border);border-radius:12px;margin:0 0 12px;padding:6px}
	.mlm-pp-table td{border:0;padding:6px 8px}
	.mlm-pp-table td::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:var(--pp-muted)}
}

/* Service coverage widget (state > city > ZIP) */
.mlm-pp .mlm-input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--pp-border);border-radius:8px;background:#fff;color:var(--pp-text);font:inherit;box-shadow:none}
.mlm-pp .mlm-input:focus{outline:2px solid var(--pp-blue);outline-offset:1px;border-color:var(--pp-blue)}
.mlm-pp .mlm-button{display:inline-block;padding:10px 18px;border-radius:8px;font:inherit;font-weight:600;line-height:1.3;cursor:pointer;white-space:nowrap}
.mlm-pp .mlm-button--navy{background:var(--pp-navy);color:#fff;border:1px solid var(--pp-navy)}
.mlm-pp .mlm-button--navy:hover{background:var(--pp-blue);border-color:var(--pp-blue)}
.mlm-pp .mlm-button--outline{background:#fff;color:var(--pp-navy);border:1.5px solid var(--pp-navy)}
.mlm-pp .mlm-button--outline:hover{background:var(--pp-light)}
.mlm-pp .mlm-muted{color:var(--pp-muted);font-size:13px}
.mlm-pp .mlm-field-error{margin:6px 0 0;font-size:13px;color:var(--pp-danger)}
.mlm-pp .mlm-cov-eyebrow{display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--pp-muted)}
.mlm-pp .mlm-cov-label{display:block;font-weight:600;margin:0 0 6px;color:var(--pp-navy)}
.mlm-pp .mlm-cov-hint{margin:6px 0 0;font-size:13px;color:var(--pp-blue)}
.mlm-pp .mlm-cov-addbox{background:var(--pp-light);border:1px solid var(--pp-border);border-radius:10px;padding:16px}
.mlm-pp .mlm-cov-addbox .mlm-cov-eyebrow{margin:0 0 8px;font-size:13px;text-transform:none;letter-spacing:0;color:var(--pp-navy)}
.mlm-pp .mlm-cov-add-row{display:flex;gap:12px;align-items:center}
.mlm-pp .mlm-cov-add-row .mlm-input{flex:1 1 auto;width:auto;max-width:520px}
.mlm-pp .mlm-cov-state{margin-top:16px;border:1px solid var(--pp-border);border-radius:10px;background:#fff}
.mlm-pp .mlm-cov-state-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px 16px;background:var(--pp-light);border-bottom:1px solid var(--pp-border);border-radius:10px 10px 0 0}
.mlm-pp .mlm-cov-state-name{margin:2px 0 0;font-size:20px;color:var(--pp-navy)}
.mlm-pp .mlm-cov-remove{background:none;border:0;padding:0;cursor:pointer;font:inherit;font-size:13px;font-weight:700;color:var(--pp-danger);text-decoration:underline}
.mlm-pp .mlm-cov-state-body{padding:16px;display:flex;flex-direction:column;gap:12px}
.mlm-pp .mlm-cov-city-picker{position:relative}
.mlm-pp .mlm-cov-suggest{position:absolute;z-index:100;left:0;right:0;max-height:320px;overflow:auto;margin:4px 0 0;padding:4px;list-style:none;background:#fff;border:1px solid var(--pp-border);border-radius:8px;box-shadow:0 8px 24px rgba(11,45,77,.15)}
.mlm-pp .mlm-cov-suggest[hidden]{display:none}
.mlm-pp .mlm-cov-suggest li{display:flex;justify-content:space-between;gap:12px;padding:8px 12px;margin:0;border-radius:6px;cursor:pointer}
.mlm-pp .mlm-cov-suggest li small{color:var(--pp-muted)}
.mlm-pp .mlm-cov-suggest li:hover,.mlm-pp .mlm-cov-suggest li:focus{background:var(--pp-light);outline:none}
.mlm-pp .mlm-cov-suggest .mlm-cov-custom{color:var(--pp-blue);font-weight:600}
.mlm-pp .mlm-cov-suggest .mlm-cov-empty,.mlm-pp .mlm-cov-suggest .mlm-cov-count-row{cursor:default;color:var(--pp-muted);font-size:13px}
.mlm-pp .mlm-cov-suggest .mlm-cov-count-row{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--pp-border);border-radius:0}
.mlm-pp .mlm-cov-filter{display:flex;align-items:center;gap:12px}
.mlm-pp .mlm-cov-filter .mlm-input{max-width:320px}
.mlm-pp .mlm-cov-city{border:1px solid #CFE8BC;border-left:4px solid var(--pp-green);border-radius:8px;background:#F5FBEF}
.mlm-pp .mlm-cov-city-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px}
.mlm-pp .mlm-cov-toggle{background:none;border:0;padding:0 90px 0 0;text-align:left;cursor:pointer;flex:1 1 auto;display:grid;gap:2px;position:relative;font:inherit;color:inherit}
.mlm-pp .mlm-cov-city-name{font-size:16px;font-weight:700;color:var(--pp-navy)}
.mlm-pp .mlm-cov-count{position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:12px;color:var(--pp-green);background:#fff;border:1px solid #CFE8BC;border-radius:999px;padding:1px 8px}
.mlm-pp .mlm-cov-city-body{padding:0 14px 14px;border-top:1px solid #DCEFCB}
.mlm-pp .mlm-zip-chips{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;max-height:200px;overflow:auto}
.mlm-pp .mlm-zip-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 12px 4px 8px;border:1px solid #B9DDA0;border-radius:999px;background:#fff;color:var(--pp-green);font-weight:700;font-size:13px;cursor:pointer}
.mlm-pp .mlm-zip-chip.is-on{background:#EAF6DF}
.mlm-pp .mlm-zip-chip input{margin:0;accent-color:var(--pp-blue)}
.mlm-pp .mlm-cov-zipadd{border-top:1px solid #DCEFCB;padding-top:12px}
.mlm-pp .mlm-cov-zipadd-row{display:grid;grid-template-columns:170px minmax(0,1fr);gap:12px;align-items:center}
@media (max-width:600px){
	.mlm-pp .mlm-cov-add-row,.mlm-pp .mlm-cov-zipadd-row{display:flex;flex-direction:column;align-items:stretch}
	.mlm-pp .mlm-cov-add-row .mlm-input{max-width:none}
	.mlm-pp .mlm-cov-state-head,.mlm-pp .mlm-cov-filter{flex-wrap:wrap}
}

/* ---- Full-width layout, top bar with site logo ---- */
body.mlm-portal-page{overflow-x:clip}
.mlm-portal-main{display:block;width:100%;max-width:none;margin:0;padding:0}
.mlm-pp.mlm-pp--full{--pp-gutter:clamp(16px,3vw,48px);max-width:none;width:100vw;position:relative;left:50%;margin-left:-50vw;margin-right:0;padding:0 var(--pp-gutter) 48px;background:var(--pp-bg)}
.mlm-pp.mlm-pp--full .mlm-pp--narrow{margin-top:32px}
.mlm-pp-topbar{display:flex;align-items:center;gap:20px;margin:0 0 28px;padding:14px 0;background:#fff;border-bottom:1px solid var(--pp-border)}
.mlm-pp--full>.mlm-pp-topbar{margin:0 calc(-1 * var(--pp-gutter)) 28px;padding:14px var(--pp-gutter);box-shadow:0 1px 0 rgba(11,45,77,.04),0 6px 20px rgba(11,45,77,.05)}
.mlm-pp .mlm-pp-sitelogo{display:flex;align-items:center;flex:none;font-size:20px;font-weight:800;color:var(--pp-navy);text-decoration:none}
.mlm-pp .mlm-pp-sitelogo img{display:block;width:auto;height:auto;max-height:48px;max-width:220px}
.mlm-pp-topbar-title{padding-left:20px;border-left:1px solid var(--pp-border);font-size:15px;font-weight:700;letter-spacing:.02em;color:var(--pp-muted);text-transform:uppercase}
.mlm-pp .mlm-pp-topbar-link{margin-left:auto;padding:8px 16px;border:1px solid var(--pp-border);border-radius:999px;font-size:14px;font-weight:600;color:var(--pp-navy);text-decoration:none;transition:background .15s,border-color .15s}
.mlm-pp .mlm-pp-topbar-link:hover{background:var(--pp-light);border-color:var(--pp-blue);color:var(--pp-blue)}
.mlm-pp--full .mlm-pp-dash{grid-template-columns:280px minmax(0,1fr);gap:32px}
.mlm-pp--full .mlm-pp-main{width:100%}
.mlm-pp-pagehead{font-weight:800}
@media (max-width:640px){
	.mlm-pp-topbar{gap:12px}
	.mlm-pp-topbar-title{display:none}
	.mlm-pp .mlm-pp-sitelogo img{max-height:38px;max-width:150px}
}

/* ---- App mode: logged-in dashboard fills the whole screen ---- */
html:has(body.mlm-portal-app){margin:0!important;padding:0}
body.mlm-portal-app{margin:0;padding:0;background:var(--mlm-background,#F4F7FA);overflow:hidden}
body.mlm-portal-app .mlm-portal-main{margin:0;padding:0;max-width:none}
.mlm-pp.mlm-pp--app{--pp-gutter:clamp(16px,2.5vw,40px);position:static;left:auto;margin:0;width:100%;max-width:none;height:100vh;height:100dvh;padding:0;background:var(--pp-bg);font-size:16px}
.mlm-pp--app .mlm-pp-dash{display:grid;grid-template-columns:288px minmax(0,1fr);gap:0;height:100%;align-items:stretch}
.mlm-pp--app .mlm-pp-side{position:relative;top:0;height:100%;min-height:0;border-radius:0;overflow-y:auto;padding:20px 14px 14px;box-shadow:4px 0 24px rgba(11,45,77,.12)}
.mlm-pp--app .mlm-pp-main{height:100%;overflow-y:auto;padding:28px var(--pp-gutter) 48px;-webkit-overflow-scrolling:touch}
.mlm-pp--app .mlm-pp-pagehead{margin-top:0}
.mlm-pp-side-logo{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 4px 16px;padding:10px 14px;background:#fff;border-radius:12px}
.mlm-pp-side-logo .mlm-pp-sitelogo img{max-height:40px;max-width:190px}
.mlm-pp-menuclose,.mlm-pp-mobilebar,.mlm-pp-overlay{display:none}
.mlm-pp .mlm-pp-menuclose{background:none;border:0;font-size:30px;line-height:1;color:var(--pp-navy);cursor:pointer;padding:0 4px}

@media (max-width:860px){
	body.mlm-portal-app{overflow:auto}
	.mlm-pp.mlm-pp--app{height:auto;min-height:100dvh}
	.mlm-pp--app .mlm-pp-dash{display:block;height:auto}
	.mlm-pp--app .mlm-pp-main{height:auto;overflow:visible;padding:20px var(--pp-gutter) 40px}
	.mlm-pp-mobilebar{position:sticky;top:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px var(--pp-gutter);background:#fff;border-bottom:1px solid var(--pp-border);box-shadow:0 2px 12px rgba(11,45,77,.06)}
	.mlm-pp-mobilebar .mlm-pp-sitelogo img{max-height:36px;max-width:170px}
	.mlm-pp .mlm-pp-menubtn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--pp-border);border-radius:10px;background:#fff;color:var(--pp-navy);cursor:pointer}
	.mlm-pp--app .mlm-pp-side{position:fixed;z-index:80;top:0;bottom:0;left:0;width:min(86vw,300px);height:100dvh;padding:16px 12px 12px;transform:translateX(-102%);transition:transform .25s ease;overflow-y:auto}
	.mlm-pp--app .mlm-pp-tabs{flex-direction:column;overflow:visible}
	.mlm-pp--app .mlm-pp-tabs a{white-space:normal}
	.mlm-pp--app .mlm-pp-logout{margin-top:auto;padding-top:18px;border-top:1px solid rgba(255,255,255,.12)}
	.mlm-pp-dash.is-open .mlm-pp-side{transform:none}
	.mlm-pp-dash.is-open .mlm-pp-overlay{display:block;position:fixed;z-index:70;inset:0;background:rgba(7,31,53,.55)}
	.mlm-pp-menuclose{display:block}
}
@media (max-width:520px){
	.mlm-pp .mlm-mp-figures{grid-template-columns:1fr 1fr}
	.mlm-pp-pagehead{font-size:22px}
}

/* ---- Unified buttons and tables (colors come from Settings > Colors) ---- */
.mlm-pp .mlm-pp-btn,.mlm-pp .mlm-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 18px;border:1px solid var(--pp-blue);border-radius:10px;background:var(--pp-blue);color:#fff!important;font:inherit;font-size:14.5px;font-weight:600;line-height:1.2;text-align:center;white-space:nowrap;text-decoration:none;cursor:pointer;box-shadow:0 1px 2px rgba(11,45,77,.12);transition:background .15s,border-color .15s,color .15s,box-shadow .15s,transform .05s}
.mlm-pp .mlm-pp-btn:hover,.mlm-pp .mlm-button:hover{background:var(--pp-navy);border-color:var(--pp-navy);filter:none;box-shadow:0 4px 12px rgba(11,45,77,.18)}
.mlm-pp .mlm-pp-btn:active,.mlm-pp .mlm-button:active{transform:translateY(1px)}
.mlm-pp .mlm-pp-btn:disabled,.mlm-pp .mlm-button:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.mlm-pp .mlm-pp-btn--ghost,.mlm-pp .mlm-button--secondary,.mlm-pp .mlm-button--outline{background:#fff;color:var(--pp-blue)!important;border:1px solid var(--pp-blue);box-shadow:none}
.mlm-pp .mlm-pp-btn--ghost:hover,.mlm-pp .mlm-button--secondary:hover,.mlm-pp .mlm-button--outline:hover{background:var(--pp-light);border-color:var(--pp-blue);color:var(--pp-navy)!important;box-shadow:none}
.mlm-pp .mlm-button--navy{background:var(--pp-navy);border-color:var(--pp-navy);color:#fff!important}
.mlm-pp .mlm-pp-btn--block{display:flex;width:100%}
.mlm-pp .mlm-pp-btn[aria-expanded="true"]{background:var(--pp-light);color:var(--pp-navy)!important}
.mlm-pp .mlm-chat-toggle .mlm-chat-badge{margin-left:2px}
.mlm-pp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.mlm-pp-actions form{margin:0}
.mlm-pp .mlm-chat-form .mlm-pp-btn,.mlm-pp .mlm-chat-counter .mlm-button{min-height:40px}
.mlm-pp .mlm-chat-counter .mlm-input{width:130px;min-height:40px}
.mlm-pp .mlm-chat-accept{min-height:34px;padding:6px 14px;border-radius:8px;font-size:13.5px}

.mlm-pp .mlm-pp-tablewrap{border:1px solid var(--pp-border);border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(11,45,77,.04)}
.mlm-pp .mlm-pp-table{border-collapse:separate;border-spacing:0}
.mlm-pp .mlm-pp-table th{padding:13px 16px;background:var(--pp-light);color:var(--pp-navy);font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;border-bottom:1px solid var(--pp-border)}
.mlm-pp .mlm-pp-table td{padding:16px;border-bottom:1px solid var(--pp-border);vertical-align:middle;line-height:1.5}
.mlm-pp .mlm-pp-table tbody tr:nth-child(even) td{background:#FBFDFE}
.mlm-pp .mlm-pp-table tbody tr:hover td{background:var(--pp-light)}
.mlm-pp .mlm-pp-table tbody tr:last-child td{border-bottom:0}
.mlm-pp .mlm-pp-table td a:not(.mlm-pp-btn){color:var(--pp-blue);text-decoration:none;font-weight:500}
.mlm-pp .mlm-pp-table td a:not(.mlm-pp-btn):hover{text-decoration:underline}
.mlm-pp .mlm-pp-table .mlm-chat-row td{background:var(--pp-bg)!important;padding:14px 16px}
.mlm-pp .mlm-pp-pill{padding:4px 12px;font-size:12.5px;font-weight:700}
.mlm-pp .mlm-pp-pill--done{background:#DDF3CE;color:#2F6A12}
@media (max-width:760px){
	.mlm-pp .mlm-pp-tablewrap{border:0;background:transparent;box-shadow:none}
	.mlm-pp .mlm-pp-table tr{background:#fff;box-shadow:0 1px 2px rgba(11,45,77,.05)}
	.mlm-pp .mlm-pp-table tbody tr:nth-child(even) td,.mlm-pp .mlm-pp-table tbody tr:hover td{background:transparent}
	.mlm-pp .mlm-pp-table td{padding:8px 10px}
	.mlm-pp .mlm-pp-actions .mlm-pp-btn{flex:1 1 140px}
}

/* ---- Mobile menu buttons: force visible colors (themes often restyle <button>) ---- */
@media (max-width:860px){
	.mlm-pp .mlm-pp-mobilebar .mlm-pp-menubtn,.mlm-pp .mlm-pp-mobilebar button.mlm-pp-menubtn{display:flex!important;align-items:center;justify-content:center;width:46px;height:46px;min-height:46px;padding:0!important;border:0!important;border-radius:12px!important;background:var(--pp-navy)!important;color:#fff!important;box-shadow:0 2px 8px rgba(11,45,77,.25)!important;opacity:1!important;visibility:visible!important;-webkit-appearance:none;appearance:none}
	.mlm-pp .mlm-pp-menubtn svg{display:block;width:24px;height:24px;stroke:#fff!important;fill:none!important}
	.mlm-pp .mlm-pp-menubtn:hover,.mlm-pp .mlm-pp-menubtn:focus,.mlm-pp .mlm-pp-menubtn:active{background:var(--pp-blue)!important;color:#fff!important}
	.mlm-pp .mlm-pp-side-logo .mlm-pp-menuclose,.mlm-pp .mlm-pp-menuclose{display:flex!important;align-items:center;justify-content:center;width:38px;height:38px;min-height:38px;padding:0!important;border:0!important;border-radius:10px!important;background:var(--pp-light)!important;color:var(--pp-navy)!important;font-size:26px;line-height:1;box-shadow:none!important}
	.mlm-pp .mlm-pp-side-logo{justify-content:space-between}
}

/* ---- Mobile menu button: always visible, immune to theme button styles ---- */
.mlm-pp .mlm-pp-menubtn{display:flex!important;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0!important;margin:0;border:0!important;border-radius:10px!important;background:var(--pp-navy)!important;color:#fff!important;box-shadow:0 2px 8px rgba(11,45,77,.25)!important;opacity:1!important;cursor:pointer}
.mlm-pp .mlm-pp-menubtn:hover,.mlm-pp .mlm-pp-menubtn:focus{background:var(--pp-blue)!important;color:#fff!important}
.mlm-pp .mlm-pp-menubtn svg{display:block!important;width:24px!important;height:24px!important;stroke:#fff!important;fill:none!important;opacity:1!important}
.mlm-pp .mlm-pp-menubtn svg path{stroke:#fff!important}
.mlm-pp .mlm-pp-menuclose{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--pp-navy)!important;font-size:30px;line-height:1;padding:0 6px!important}
@media (min-width:861px){.mlm-pp .mlm-pp-menubtn{display:none!important}}

/* ---- Login / register screen: colored panel + form ---- */
html:has(body.mlm-portal-guest){margin:0!important;padding:0}
body.mlm-portal-guest{margin:0;padding:0;background:#fff}
body.mlm-portal-guest .mlm-portal-main{display:block;margin:0;padding:0;max-width:none}
.mlm-pp .mlm-auth{display:grid;grid-template-columns:minmax(300px,5fr) minmax(0,7fr);max-width:1080px;margin:40px auto 0;background:#fff;border:1px solid var(--pp-border);border-radius:24px;box-shadow:0 24px 60px rgba(11,45,77,.12),0 2px 6px rgba(11,45,77,.05);overflow:hidden}
.mlm-pp .mlm-auth--register{max-width:1180px;grid-template-columns:minmax(280px,4fr) minmax(0,8fr)}

.mlm-pp .mlm-auth-brand{position:relative;display:flex;flex-direction:column;align-items:flex-start;padding:52px 44px 40px;color:#fff;background:linear-gradient(155deg,var(--pp-navy) 0%,#0A4C7E 62%,var(--pp-blue) 135%);overflow:hidden;isolation:isolate}
.mlm-pp .mlm-auth-brand::before,.mlm-pp .mlm-auth-brand::after{content:"";position:absolute;z-index:-1;border-radius:50%}
.mlm-pp .mlm-auth-brand::before{width:340px;height:340px;top:-130px;right:-120px;background:rgba(255,255,255,.07)}
.mlm-pp .mlm-auth-brand::after{width:260px;height:260px;bottom:-110px;left:-90px;background:rgba(123,217,74,.16)}
.mlm-pp .mlm-auth-eyebrow{display:inline-block;padding:5px 14px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#fff}
.mlm-pp .mlm-auth-headline{margin:22px 0 12px;font-size:clamp(28px,3vw,38px);line-height:1.15;font-weight:800;letter-spacing:-.015em;color:#fff}
.mlm-pp .mlm-auth-text{margin:0;font-size:17px;line-height:1.6;color:rgba(255,255,255,.84)}
.mlm-pp .mlm-auth-points{list-style:none;margin:30px 0 0;padding:0;display:grid;gap:16px}
.mlm-pp .mlm-auth-points li{display:flex;align-items:flex-start;gap:12px;margin:0;font-size:15.5px;line-height:1.45;color:rgba(255,255,255,.94)}
.mlm-pp .mlm-auth-tick{flex:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-top:-1px;border-radius:50%;background:#7BD94A;color:var(--pp-navy)}
.mlm-pp .mlm-auth-back{margin-top:auto;padding-top:36px;font-size:14px;font-weight:600;color:rgba(255,255,255,.8);text-decoration:none!important;border-bottom:0}
.mlm-pp .mlm-auth-back:hover,.mlm-pp .mlm-auth-back:focus{color:#fff}

.mlm-pp .mlm-auth-main{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:44px 56px 48px}
.mlm-pp .mlm-auth--register .mlm-auth-main{justify-content:flex-start}
.mlm-pp .mlm-auth .mlm-pp-switch{max-width:440px;margin:0 0 30px;padding:5px;background:var(--pp-bg);border-radius:12px}
.mlm-pp .mlm-auth .mlm-pp-switch a{padding:11px 12px;border-radius:9px;font-size:15px;color:var(--pp-muted)}
.mlm-pp .mlm-auth .mlm-pp-switch a:hover{color:var(--pp-navy)}
.mlm-pp .mlm-auth .mlm-pp-switch a.is-active{background:#fff;color:var(--pp-blue);box-shadow:0 1px 4px rgba(11,45,77,.14)}

.mlm-pp .mlm-pp-card--auth{margin:0;padding:0;background:transparent;border:0;box-shadow:none;max-width:none}
.mlm-pp .mlm-auth .mlm-pp-title{font-size:30px;font-weight:800;letter-spacing:-.01em}
.mlm-pp .mlm-auth .mlm-pp-sub{margin:0 0 24px;font-size:16px}
.mlm-pp .mlm-auth .mlm-pp-field{margin:0 0 18px}
.mlm-pp .mlm-auth .mlm-pp-field label{margin:0 0 7px;font-size:14px}
.mlm-pp .mlm-auth .mlm-pp-field input[type=text],.mlm-pp .mlm-auth .mlm-pp-field input[type=email],.mlm-pp .mlm-auth .mlm-pp-field input[type=tel],.mlm-pp .mlm-auth .mlm-pp-field input[type=url],.mlm-pp .mlm-auth .mlm-pp-field input[type=password],.mlm-pp .mlm-auth .mlm-pp-field select{min-height:50px;padding:11px 14px;border:1px solid #C9D6E2;border-radius:10px;background:#fff;font-size:16px;transition:border-color .15s,box-shadow .15s}
.mlm-pp .mlm-auth .mlm-pp-field input::placeholder{color:#9AABB9}
.mlm-pp .mlm-auth .mlm-pp-field input:focus,.mlm-pp .mlm-auth .mlm-pp-field select:focus{outline:0;border-color:var(--pp-blue);box-shadow:0 0 0 4px rgba(8,120,185,.15)}
.mlm-pp .mlm-auth .mlm-pp-field.has-error input,.mlm-pp .mlm-auth .mlm-pp-field.has-error select{border-color:var(--pp-danger);box-shadow:0 0 0 4px rgba(179,38,30,.08)}
.mlm-pp .mlm-auth .mlm-pp-grid{gap:0 20px}

.mlm-pp .mlm-pp-pw{position:relative;display:block}
.mlm-pp .mlm-pp-pw input{padding-right:76px!important}
.mlm-pp .mlm-pp-pw .mlm-pp-pwtoggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:auto;min-height:0;margin:0;padding:7px 10px!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:var(--pp-blue)!important;font:inherit;font-size:13px;font-weight:700;line-height:1;cursor:pointer}
.mlm-pp .mlm-pp-pw .mlm-pp-pwtoggle:hover,.mlm-pp .mlm-pp-pw .mlm-pp-pwtoggle:focus{background:var(--pp-light)!important;color:var(--pp-navy)!important}

.mlm-pp .mlm-pp-formrow{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:2px 0 22px}
.mlm-pp .mlm-pp-forgot{font-size:14px;font-weight:600;color:var(--pp-blue);text-decoration:none}
.mlm-pp .mlm-pp-forgot:hover{text-decoration:underline}
.mlm-pp .mlm-pp-btn--lg{min-height:52px;font-size:16px;font-weight:700;border-radius:12px}
.mlm-pp .mlm-pp-links--center{margin:24px 0 0;padding-top:22px;border-top:1px solid var(--pp-border);text-align:center;font-size:15px}
.mlm-pp .mlm-pp-links--center a{font-weight:700;text-decoration:none}
.mlm-pp .mlm-pp-links--center a:hover{text-decoration:underline}
.mlm-pp .mlm-auth .mlm-pp-check{font-size:15px;color:var(--pp-text)}
.mlm-pp .mlm-auth .mlm-pp-notice{border-radius:10px}

/* Register: numbered sections */
.mlm-pp .mlm-auth--register .mlm-pp-form{counter-reset:mlmstep}
.mlm-pp .mlm-auth--register .mlm-pp-form>.mlm-pp-h3{display:flex;align-items:center;gap:12px;margin:30px 0 16px;padding-top:0;font-size:18px;font-weight:800}
.mlm-pp .mlm-auth--register .mlm-pp-form>.mlm-pp-h3:first-of-type{margin-top:6px}
.mlm-pp .mlm-auth--register .mlm-pp-form>.mlm-pp-h3::before{counter-increment:mlmstep;content:counter(mlmstep);flex:none;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--pp-light);color:var(--pp-blue);font-size:14px;font-weight:800}
.mlm-pp .mlm-auth--register .mlm-pp-confirms{padding:16px 18px;background:var(--pp-bg);border-radius:12px;margin:18px 0 22px}
.mlm-pp .mlm-auth--register .mlm-pp-checks{padding:14px 16px;background:var(--pp-bg);border-radius:12px}

@media (max-width:960px){
	.mlm-pp .mlm-auth,.mlm-pp .mlm-auth--register{grid-template-columns:1fr;margin-top:20px;border-radius:20px}
	.mlm-pp .mlm-auth-brand{padding:30px 28px 26px}
	.mlm-pp .mlm-auth-headline{margin:16px 0 8px;font-size:26px}
	.mlm-pp .mlm-auth-text{font-size:15.5px}
	.mlm-pp .mlm-auth-points{margin-top:18px;gap:10px}
	.mlm-pp .mlm-auth-back{display:none}
	.mlm-pp .mlm-auth-main{padding:30px 28px 34px}
}
@media (max-width:560px){
	.mlm-pp .mlm-auth{margin-top:12px;border-radius:16px}
	.mlm-pp .mlm-auth-brand{padding:24px 20px}
	.mlm-pp .mlm-auth-points{display:none}
	.mlm-pp .mlm-auth-main{padding:24px 18px 28px}
	.mlm-pp .mlm-auth .mlm-pp-title{font-size:25px}
	.mlm-pp .mlm-auth .mlm-pp-switch{margin-bottom:22px}
	.mlm-pp .mlm-auth .mlm-pp-switch a{font-size:14px;padding:10px 6px}
}

/* ---- Login screens fill the whole window, like the dashboard ---- */
.mlm-pp.mlm-pp--authpage{position:static;left:auto;width:100%;max-width:none;margin:0;padding:0;background:#fff}
.mlm-pp--authpage .mlm-auth,.mlm-pp--authpage .mlm-auth--register{max-width:none;width:100%;min-height:100vh;min-height:100dvh;margin:0;border:0;border-radius:0;box-shadow:none;grid-template-columns:minmax(360px,5fr) minmax(0,7fr)}
.mlm-pp--authpage .mlm-auth-brand{position:sticky;top:0;align-self:start;height:100vh;height:100dvh;padding:56px clamp(32px,4vw,64px) 40px}
.mlm-pp--authpage .mlm-auth-headline{font-size:clamp(32px,3.4vw,46px)}
.mlm-pp--authpage .mlm-auth-text{font-size:18px;max-width:460px}
.mlm-pp--authpage .mlm-auth-points{max-width:460px}
.mlm-pp--authpage .mlm-auth-main{justify-content:center;padding:48px clamp(24px,5vw,72px);background:#fff}
.mlm-pp .mlm-auth-panel[hidden]{display:none}
.mlm-pp .mlm-auth-inner{width:100%;max-width:480px;margin:0 auto}
.mlm-pp .mlm-auth--register .mlm-auth-inner{max-width:720px}
.mlm-pp--authpage .mlm-auth--register .mlm-auth-main{justify-content:flex-start}
.mlm-pp .mlm-auth .mlm-pp-switch{max-width:none}
@media (max-width:960px){
	.mlm-pp--authpage .mlm-auth,.mlm-pp--authpage .mlm-auth--register{grid-template-columns:1fr;min-height:0}
	.mlm-pp--authpage .mlm-auth-brand{position:static;height:auto;padding:30px 24px 26px}
	.mlm-pp--authpage .mlm-auth-headline{font-size:26px}
	.mlm-pp--authpage .mlm-auth-text{font-size:15.5px}
	.mlm-pp--authpage .mlm-auth-main{padding:28px 20px 40px}
}

/* Sticky side panel needs a container without overflow clipping */
.mlm-pp--authpage .mlm-auth,.mlm-pp--authpage .mlm-auth--register{overflow:visible}
body.mlm-portal-guest,html:has(body.mlm-portal-guest){overflow-x:visible}
@media (max-width:960px){.mlm-pp--authpage .mlm-auth-brand{position:static}}

/* Site logo on top of the colored panel */
.mlm-pp .mlm-auth-logo{display:inline-flex;align-items:center;margin:0 0 28px;padding:10px 18px;background:#fff;border-radius:14px;box-shadow:0 6px 20px rgba(7,31,53,.25)}
.mlm-pp .mlm-auth-logo .mlm-pp-sitelogo{color:var(--pp-navy);text-decoration:none!important;border-bottom:0}
.mlm-pp .mlm-auth-logo .mlm-pp-sitelogo img{max-height:46px;max-width:210px}
@media (max-width:560px){.mlm-pp .mlm-auth-logo{margin-bottom:18px;padding:8px 14px}.mlm-pp .mlm-auth-logo .mlm-pp-sitelogo img{max-height:36px;max-width:160px}}

/* ---- Login / register: blue panel stays, logo sits on a white background ---- */
.mlm-pp .mlm-auth-logo{display:flex!important;align-items:center;align-self:stretch;justify-content:flex-start;margin:0 0 32px;padding:16px 22px;background:#fff!important;border-radius:14px;box-shadow:0 6px 20px rgba(7,31,53,.25)}
.mlm-pp .mlm-auth-logo .mlm-pp-sitelogo,.mlm-pp .mlm-auth-logo .mlm-pp-sitelogo img{background:#fff!important}
.mlm-pp .mlm-auth-logo .mlm-pp-sitelogo img{max-height:52px;max-width:240px}

/* ---- Icon-only action buttons + tooltip (leads table) ---- */
.mlm-pp .mlm-pp-icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border:1px solid var(--pp-border,#dce6ee);border-radius:10px;background:#fff;color:var(--pp-blue,#0878B9)!important;line-height:1;text-decoration:none;cursor:pointer;box-shadow:none;transition:background .15s,border-color .15s,color .15s}
.mlm-pp .mlm-pp-icon-btn:hover,.mlm-pp .mlm-pp-icon-btn:focus-visible{background:var(--pp-blue,#0878B9);border-color:var(--pp-blue,#0878B9);color:#fff!important;outline:none}
.mlm-pp .mlm-pp-icon-btn[aria-expanded="true"]{background:var(--pp-light,#EAF4FB);border-color:var(--pp-blue,#0878B9);color:var(--pp-navy,#0B2D4D)!important}
.mlm-pp .mlm-pp-icon-btn--ok{color:#2F6A12!important}
.mlm-pp .mlm-pp-icon-btn--ok:hover,.mlm-pp .mlm-pp-icon-btn--ok:focus-visible{background:#2F6A12;border-color:#2F6A12}
.mlm-pp .mlm-pp-icon-btn--pay{color:#8A5A00!important}
.mlm-pp .mlm-pp-icon-btn--pay:hover,.mlm-pp .mlm-pp-icon-btn--pay:focus-visible{background:#C77A00;border-color:#C77A00}
.mlm-pp .mlm-pp-icon-btn.is-closed{opacity:.6}
.mlm-pp .mlm-pp-icon-btn .mlm-chat-badge{position:absolute;top:-7px;right:-7px;margin:0;min-width:18px;line-height:18px;padding:0 5px}
.mlm-pp .mlm-pp-actions{flex-wrap:nowrap}
.mlm-pp .mlm-pp-actions .mlm-pp-icon-btn{flex:0 0 auto}
.mlm-pp .mlm-pp-pill--pending{background:var(--pp-light,#EAF4FB);color:var(--pp-blue,#0878B9)}
.mlm-pp .mlm-pp-pill--due{background:#FFF4DB;color:#8A5A00}
.mlm-pp .mlm-pp-pill--paid{background:#DDF3CE;color:#2F6A12}
.mlm-pp .mlm-pp-pill--cancelled{background:#EDF1F4;color:#5a6f80}
.mlm-tooltip{position:fixed;z-index:100000;max-width:240px;padding:6px 10px;border-radius:6px;background:var(--pp-navy,#0B2D4D);color:#fff;font-size:12px;font-weight:600;line-height:1.3;pointer-events:none;opacity:0;transition:opacity .12s;box-shadow:0 4px 12px rgba(11,45,77,.25)}
.mlm-tooltip.is-visible{opacity:1}
.mlm-tooltip::after{content:"";position:absolute;left:var(--mlm-tip-arrow,50%);transform:translateX(-50%);border:6px solid transparent}
.mlm-tooltip[data-pos="top"]::after{top:100%;border-top-color:var(--pp-navy,#0B2D4D);border-bottom:0}
.mlm-tooltip[data-pos="bottom"]::after{bottom:100%;border-bottom-color:var(--pp-navy,#0B2D4D);border-top:0}
@media (max-width:1000px){
	.mlm-pp .mlm-pp-actions .mlm-pp-icon-btn{flex:0 0 auto}
}

/* ---- My Leads table: compact 5-column layout, fits narrow dashboards ---- */
.mlm-pp .mlm-pp-table--leads{table-layout:auto;font-size:13.5px}
.mlm-pp .mlm-pp-table--leads th{padding:12px 12px;white-space:nowrap}
.mlm-pp .mlm-pp-table--leads td{padding:14px 12px;vertical-align:top;overflow-wrap:anywhere}
.mlm-pp .mlm-pp-table--leads .mlm-pp-sub{display:block;margin-top:3px;font-size:12.5px;color:var(--pp-muted,#5a6f80);line-height:1.35}
.mlm-pp .mlm-pp-table--leads .mlm-pp-sub--commission{margin-top:10px;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.mlm-pp .mlm-pp-table--leads .mlm-pp-route{display:flex;flex-direction:column;gap:8px;min-width:130px}
.mlm-pp .mlm-pp-table--leads .mlm-pp-route em{display:block;font-style:normal;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--pp-muted,#5a6f80)}
.mlm-pp .mlm-pp-table--leads .mlm-pp-mail{font-size:13px}
.mlm-pp .mlm-pp-table--leads .mlm-pp-actions{flex-wrap:wrap;gap:8px;width:84px;max-width:100%}
.mlm-pp .mlm-pp-table--leads td:last-child{width:96px}
.mlm-pp .mlm-pp-table--leads .mlm-chat-row td{overflow-wrap:normal}
@media (max-width:760px){
	.mlm-pp .mlm-pp-table--leads .mlm-pp-actions{width:auto;flex-wrap:wrap}
	.mlm-pp .mlm-pp-table--leads td:last-child{width:100%}
	.mlm-pp .mlm-pp-table--leads .mlm-pp-route{flex-direction:row;gap:14px;flex-wrap:wrap}
}

/* ---- Multi-step company registration ---- */
.mlm-pp .mlm-reg-progress{display:none;margin:20px 0 26px;padding:0;list-style:none}
.mlm-pp .mlm-reg.is-js .mlm-reg-progress{display:flex}
.mlm-pp .mlm-reg-progress li{position:relative;flex:1;text-align:center}
.mlm-pp .mlm-reg-progress li:not(:last-child)::after{content:"";position:absolute;top:17px;left:calc(50% + 24px);right:calc(-50% + 24px);height:2px;background:var(--pp-border,#dce6ee)}
.mlm-pp .mlm-reg-progress li:has(.is-done)::after{background:var(--pp-blue,#0878B9)}
.mlm-pp .mlm-reg-dot{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;padding:0;border:0;background:none;color:var(--pp-muted,#5a6f80);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.mlm-pp .mlm-reg-dot:disabled{cursor:default}
.mlm-pp .mlm-reg-num{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:2px solid var(--pp-border,#dce6ee);border-radius:50%;background:#fff;color:var(--pp-muted,#5a6f80);font-size:14px;transition:background .15s,border-color .15s,color .15s}
.mlm-pp .mlm-reg-dot.is-current .mlm-reg-num{border-color:var(--pp-blue,#0878B9);background:var(--pp-blue,#0878B9);color:#fff;box-shadow:0 0 0 4px var(--pp-light,#EAF4FB)}
.mlm-pp .mlm-reg-dot.is-current{color:var(--pp-navy,#0B2D4D)}
.mlm-pp .mlm-reg-dot.is-done .mlm-reg-num{border-color:var(--pp-blue,#0878B9);background:var(--pp-light,#EAF4FB);color:var(--pp-blue,#0878B9);font-size:0}
.mlm-pp .mlm-reg-dot.is-done .mlm-reg-num::before{content:"\2713";font-size:16px}
.mlm-pp .mlm-reg-dot.is-done{color:var(--pp-navy,#0B2D4D)}
.mlm-pp .mlm-reg-step[hidden]{display:none}
.mlm-pp .mlm-reg-nav{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}
.mlm-pp .mlm-reg-nav .mlm-pp-btn{min-width:130px}
.mlm-pp .mlm-reg-nav--last .mlm-pp-btn[type="submit"]{flex:1}
.mlm-pp .mlm-reg:not(.is-js) [data-reg-next],.mlm-pp .mlm-reg:not(.is-js) [data-reg-prev]{display:none}
.mlm-pp .mlm-reg:not(.is-js) .mlm-reg-step + .mlm-reg-step{margin-top:8px}
@media (max-width:480px){
	.mlm-pp .mlm-reg-nav{flex-direction:column-reverse}
	.mlm-pp .mlm-reg-nav .mlm-pp-btn{width:100%}
}

/* ---- Password eye icon ---- */
.mlm-pp .mlm-pp-pw .mlm-pp-pwtoggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0!important;font-size:0}
.mlm-pp .mlm-pp-pwtoggle .mlm-eye{display:block}
.mlm-pp .mlm-pp-pwtoggle .mlm-eye--hide{display:none}
.mlm-pp .mlm-pp-pwtoggle.is-on .mlm-eye--show{display:none}
.mlm-pp .mlm-pp-pwtoggle.is-on .mlm-eye--hide{display:block}

/* ---- Auth side panel: logo box hugs the logo ---- */
.mlm-pp .mlm-auth-logo{display:inline-flex!important;align-self:flex-start!important;width:fit-content!important;max-width:100%;justify-content:center;padding:10px 16px!important;margin:0 0 28px}
.mlm-pp .mlm-auth-logo .mlm-pp-sitelogo{display:inline-flex}
.mlm-pp .mlm-auth-logo .mlm-pp-sitelogo img{max-height:56px;max-width:230px}
@media (max-width:560px){.mlm-pp .mlm-auth-logo{padding:8px 12px!important;margin-bottom:18px}.mlm-pp .mlm-auth-logo .mlm-pp-sitelogo img{max-height:38px;max-width:170px}}

/* ---- Commissions table: reuse the compact leads layout ---- */
.mlm-pp .mlm-pp-table--comm td:last-child{width:70px}
.mlm-pp .mlm-pp-table--comm th:last-child{text-align:left}
.mlm-pp .mlm-pp-table--comm td form{margin:0}
@media (max-width:760px){
	.mlm-pp .mlm-pp-table--comm td:last-child{width:100%}
}

/* ---- Responsive tables: the layout follows the width of the card, not the screen ---- */
.mlm-pp .mlm-pp-card--ct{container-type:inline-size;container-name:mlmcard}
.mlm-pp .mlm-pp-table--leads tr[hidden]{display:none!important}
.mlm-pp .mlm-pp-table--leads .mlm-chat-row td::before{display:none}
@container mlmcard (min-width: 1100px){
	.mlm-pp .mlm-pp-table--leads .mlm-pp-actions{width:auto;flex-wrap:nowrap}
	.mlm-pp .mlm-pp-table--leads td:last-child{width:auto}
}
@container mlmcard (max-width: 900px){
	.mlm-pp .mlm-pp-card--ct .mlm-pp-tablewrap{border:0;background:transparent;box-shadow:none;overflow:visible;border-radius:0}
	.mlm-pp .mlm-pp-table--leads{display:block;width:100%;background:transparent}
	.mlm-pp .mlm-pp-table--leads thead{display:none}
	.mlm-pp .mlm-pp-table--leads tbody{display:block;width:100%}
	.mlm-pp .mlm-pp-table--leads tr{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:0 12px;width:100%;margin:0 0 14px;padding:8px 6px;border:1px solid var(--pp-border,#dce6ee);border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(11,45,77,.05)}
	.mlm-pp .mlm-pp-table--leads tbody tr:nth-child(even) td,.mlm-pp .mlm-pp-table--leads tbody tr:hover td{background:transparent}
	.mlm-pp .mlm-pp-table--leads td{display:block;width:auto!important;padding:9px 10px;border:0;background:transparent}
	.mlm-pp .mlm-pp-table--leads td::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--pp-muted,#5a6f80)}
	.mlm-pp .mlm-pp-table--leads td:last-child{grid-column:1/-1;padding-top:12px;margin-top:4px;border-top:1px solid var(--pp-border,#dce6ee)}
	.mlm-pp .mlm-pp-table--leads .mlm-pp-actions{width:auto;flex-wrap:wrap}
	.mlm-pp .mlm-pp-table--leads .mlm-pp-route{flex-direction:row;flex-wrap:wrap;gap:6px 22px}
	.mlm-pp .mlm-pp-table--leads tr.mlm-chat-row{display:block;margin:-6px 0 14px;padding:0;border:0;background:transparent;box-shadow:none}
	.mlm-pp .mlm-pp-table--leads tr.mlm-chat-row td{display:block;grid-column:auto;margin:0;padding:0;border:0}
}
@container mlmcard (max-width: 520px){
	.mlm-pp .mlm-pp-table--leads tr{grid-template-columns:1fr 1fr}
	.mlm-pp .mlm-pp-table--leads td:first-child,.mlm-pp .mlm-pp-table--leads:not(.mlm-pp-table--comm) td:nth-child(-n+3){grid-column:1/-1}
}
/* Unpaid commission indicators and "deal not completed" */
.mlm-pp .mlm-pp-pill--review{background:#FFE9D6;color:#9A4A00}
.mlm-pp .mlm-pp-icon-btn--warn{color:#B3261E!important}
.mlm-pp .mlm-pp-icon-btn--warn:hover,.mlm-pp .mlm-pp-icon-btn--warn:focus-visible{background:#B3261E;border-color:#B3261E}
.mlm-pp-tabs .mlm-pp-due-badge{display:inline-block;min-width:20px;height:20px;padding:0 6px;margin-left:auto;border-radius:10px;background:#D63638;color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center;box-sizing:border-box;animation:mlm-pp-pulse 2s ease-in-out infinite}
@keyframes mlm-pp-pulse{0%,100%{box-shadow:0 0 0 0 rgba(214,54,56,.5)}50%{box-shadow:0 0 0 6px rgba(214,54,56,0)}}
@media (prefers-reduced-motion:reduce){.mlm-pp-tabs .mlm-pp-due-badge{animation:none}}
.mlm-pp .mlm-pp-dueban{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.mlm-pp .mlm-pp-dueban .mlm-pp-btn{flex:none}
.mlm-pp .mlm-pp-btn svg,.mlm-pp .mlm-button svg{flex:none}
.mlm-pp .mlm-pp-btn--danger{background:transparent;border-color:#B3261E;color:#B3261E!important}
.mlm-pp .mlm-pp-btn--danger:hover,.mlm-pp .mlm-pp-btn--danger:focus-visible{background:#B3261E;border-color:#B3261E;color:#fff!important}
.mlm-pp .mlm-pp-contact-btns{display:flex;flex-wrap:wrap;gap:8px}
