:root{
  --mpc-bg:#f5f7fb;
  --mpc-surface:#ffffff;
  --mpc-surface-2:#f8fafc;
  --mpc-border:#e5e7eb;
  --mpc-border-strong:#d7dde8;
  --mpc-text:#172033;
  --mpc-muted:#65758b;
  --mpc-muted-2:#94a3b8;
  --mpc-primary:#2557d6;
  --mpc-primary-600:#1d47b8;
  --mpc-primary-soft:#edf3ff;
  --mpc-info:#0ea5e9;
  --mpc-success:#16a34a;
  --mpc-warning:#d97706;
  --mpc-danger:#dc2626;
  --mpc-sidebar:#0f172a;
  --mpc-sidebar-2:#121c33;
  --mpc-sidebar-border:rgba(148,163,184,.16);
  --mpc-shadow:0 18px 50px rgba(15,23,42,.08);
  --mpc-shadow-sm:0 10px 28px rgba(15,23,42,.06);
  --mpc-radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  min-height:100vh;
  margin:0;
  font-family:'Inter','Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:14px;
  font-weight:400;
  color:var(--mpc-text);
  background:var(--mpc-bg);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

a{color:var(--mpc-primary)}
strong,.fw-bold{font-weight:600!important}.fw-bolder{font-weight:600!important}
.text-muted{color:var(--mpc-muted)!important}

/* Shell */
.mpc-app-body{overflow-x:hidden}
.mpc-sidebar{
  position:fixed;inset:0 auto 0 0;width:292px;z-index:1040;
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,var(--mpc-sidebar),var(--mpc-sidebar-2));
  color:#cbd5e1;border-right:1px solid var(--mpc-sidebar-border);
  box-shadow:10px 0 35px rgba(15,23,42,.18);
}
.mpc-sidebar-brand{height:82px;display:flex;align-items:center;padding:0 24px;border-bottom:1px solid var(--mpc-sidebar-border)}
.mpc-brand{display:flex;align-items:center;gap:13px;color:#fff!important;min-width:0}
.mpc-brand-logo,.mpc-login-logo{
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
  color:#fff;font-size:20px;font-weight:700;
  background:linear-gradient(135deg,#3b82f6,#1d4ed8 55%,#0f172a);
  box-shadow:0 12px 28px rgba(37,87,214,.36);
}
.mpc-brand-copy{display:flex;flex-direction:column;min-width:0}.mpc-brand-title{font-size:16px;font-weight:600;letter-spacing:.01em;color:#fff}.mpc-brand-subtitle{font-size:12px;color:#94a3b8;font-weight:400}
.mpc-sidebar-nav{padding:20px 16px;overflow-y:auto;flex:1}.mpc-nav-label{padding:0 12px 8px;font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#64748b;font-weight:600}.mpc-nav-link{
  height:44px;margin-bottom:6px;padding:0 12px;border-radius:12px;display:flex;align-items:center;gap:11px;
  color:#cbd5e1;text-decoration:none;font-weight:500;transition:.18s ease;
}
.mpc-nav-link i{width:22px;text-align:center;font-size:17px;color:#93a4bd}.mpc-nav-link span{flex:1}.mpc-nav-link small{font-size:10px;padding:3px 7px;border-radius:999px;background:rgba(148,163,184,.13);color:#94a3b8;font-weight:500}.mpc-nav-link:hover{background:rgba(148,163,184,.1);color:#fff}.mpc-nav-link.active{background:#fff;color:#172033;box-shadow:0 12px 26px rgba(15,23,42,.24)}.mpc-nav-link.active i{color:var(--mpc-primary)}.mpc-nav-link.disabled{opacity:.55;pointer-events:none}
.mpc-sidebar-footer{padding:18px 20px 24px}.mpc-session-box{display:flex;gap:12px;align-items:center;padding:14px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}.mpc-session-box i{font-size:20px;color:#60a5fa}.mpc-session-box strong{display:block;color:#f8fafc;font-size:13px;font-weight:600}.mpc-session-box span{display:block;color:#94a3b8;font-size:12px}

.mpc-shell{min-height:100vh;margin-left:292px;display:flex;flex-direction:column}.mpc-topbar{height:82px;position:sticky;top:0;z-index:1020;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 28px;background:rgba(255,255,255,.86);backdrop-filter:blur(16px);border-bottom:1px solid rgba(226,232,240,.86)}.mpc-eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--mpc-muted);font-weight:600}.mpc-page-title{margin:3px 0 0;font-size:24px;line-height:1.15;font-weight:600;letter-spacing:-.025em;color:var(--mpc-text)}.mpc-topbar-actions{display:flex;align-items:center;gap:12px}.mpc-user-chip{height:42px;display:flex;align-items:center;gap:10px;padding:5px 12px 5px 5px;border:1px solid var(--mpc-border);background:#fff;border-radius:999px;box-shadow:0 8px 24px rgba(15,23,42,.04)}.mpc-user-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--mpc-primary-soft);color:var(--mpc-primary);font-weight:700}.mpc-user-name{font-size:13px;font-weight:600}.mpc-user-role{font-size:11px;color:var(--mpc-muted)}.mpc-content{flex:1;padding:28px}.mpc-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 28px;color:var(--mpc-muted);font-size:12px;border-top:1px solid var(--mpc-border);background:#fff}.mpc-mobile-backdrop{display:none}

/* Cards and page blocks */
.mpc-card,.card{border:1px solid var(--mpc-border);border-radius:var(--mpc-radius);box-shadow:var(--mpc-shadow-sm);background:#fff}.card-header{background:#fff;border-bottom:1px solid var(--mpc-border);padding:18px 20px;border-radius:var(--mpc-radius) var(--mpc-radius) 0 0!important}.card-body{padding:20px}.mpc-hero-pro{position:relative;overflow:hidden;margin-bottom:22px;border-radius:24px;background:linear-gradient(135deg,#102a5c 0%,#2557d6 48%,#0ea5e9 100%);box-shadow:var(--mpc-shadow);color:#fff}.mpc-hero-pro:after{content:"";position:absolute;inset:auto -120px -210px auto;width:420px;height:420px;border-radius:50%;background:rgba(255,255,255,.16)}.mpc-hero-inner{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px}.mpc-hero-kicker{display:inline-flex;gap:8px;align-items:center;padding:6px 10px;margin-bottom:12px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;font-weight:500;color:#eaf2ff}.mpc-hero-title{font-size:30px;line-height:1.08;font-weight:600;letter-spacing:-.035em;margin:0}.mpc-hero-text{max-width:780px;color:#dbeafe;margin:10px 0 0;font-size:14px;line-height:1.65}.mpc-hero-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.mpc-hero-metric{min-width:126px;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(8px)}.mpc-hero-metric strong{display:block;font-size:24px;color:#fff}.mpc-hero-metric span{font-size:12px;color:#dbeafe}
.mpc-section-title{display:flex;align-items:center;gap:12px}.mpc-title-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:var(--mpc-primary-soft);color:var(--mpc-primary);font-size:18px}.mpc-section-title h3{font-size:17px;font-weight:600;margin:0;letter-spacing:-.01em}.mpc-section-title span{display:block;color:var(--mpc-muted);font-size:12px;margin-top:2px}.mpc-toolbar{display:flex;gap:8px;flex-wrap:wrap}

/* KPI */
.mpc-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.mpc-kpi-card{position:relative;overflow:hidden;border:1px solid var(--mpc-border);border-radius:20px;background:#fff;padding:18px;box-shadow:var(--mpc-shadow-sm)}.mpc-kpi-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--mpc-primary)}.mpc-kpi-card.success:before{background:var(--mpc-success)}.mpc-kpi-card.warning:before{background:var(--mpc-warning)}.mpc-kpi-card.danger:before{background:var(--mpc-danger)}.mpc-kpi-card.info:before{background:var(--mpc-info)}.mpc-kpi-card.secondary:before{background:#64748b}.mpc-kpi-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.mpc-kpi-label{color:var(--mpc-muted);font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.04em}.mpc-kpi-value{display:block;font-size:30px;line-height:1.1;margin-top:5px;letter-spacing:-.04em}.mpc-kpi-icon{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:var(--mpc-primary-soft);color:var(--mpc-primary);font-size:20px}.success .mpc-kpi-icon{background:#ecfdf3;color:var(--mpc-success)}.warning .mpc-kpi-icon{background:#fff7ed;color:var(--mpc-warning)}.danger .mpc-kpi-icon{background:#fef2f2;color:var(--mpc-danger)}.info .mpc-kpi-icon{background:#eff6ff;color:var(--mpc-info)}.secondary .mpc-kpi-icon{background:#f1f5f9;color:#64748b}.mpc-kpi-sub{color:var(--mpc-muted);font-size:12px;margin-top:12px}

/* Bootstrap component polish */
.btn{border-radius:11px;font-weight:500;box-shadow:none!important}.btn-primary{--bs-btn-bg:var(--mpc-primary);--bs-btn-border-color:var(--mpc-primary);--bs-btn-hover-bg:var(--mpc-primary-600);--bs-btn-hover-border-color:var(--mpc-primary-600)}.btn-light-primary{color:var(--mpc-primary);background:var(--mpc-primary-soft);border-color:var(--mpc-primary-soft)}.btn-light-primary:hover{color:#fff;background:var(--mpc-primary);border-color:var(--mpc-primary)}.btn-light-danger{color:var(--mpc-danger);background:#fef2f2;border-color:#fef2f2}.btn-light-danger:hover{color:#fff;background:var(--mpc-danger);border-color:var(--mpc-danger)}.btn-light-success{color:var(--mpc-success);background:#ecfdf3;border-color:#ecfdf3}.btn-icon{width:40px;height:40px;display:inline-grid;place-items:center;padding:0}.form-label{font-size:12px;color:#334155;font-weight:600;margin-bottom:7px}.form-control,.form-select,.input-group-text{border-color:var(--mpc-border-strong);border-radius:12px}.form-control,.form-select{min-height:42px}.form-control:focus,.form-select:focus{border-color:#93b4ff;box-shadow:0 0 0 .22rem rgba(37,87,214,.12)}.form-control-solid,.form-select-solid{background:#f8fafc}.input-group>.form-control,.input-group>.form-select{border-radius:0 12px 12px 0}.input-group-text{background:#f8fafc;color:var(--mpc-muted)}.form-check-input:checked{background-color:var(--mpc-primary);border-color:var(--mpc-primary)}
.badge{font-weight:500;border-radius:999px;padding:.45rem .65rem}.badge-light,.badge-light-secondary{background:#f1f5f9;color:#475569}.badge-light-primary{background:var(--mpc-primary-soft);color:var(--mpc-primary)}.badge-light-success{background:#ecfdf3;color:var(--mpc-success)}.badge-light-warning{background:#fff7ed;color:var(--mpc-warning)}.badge-light-danger{background:#fef2f2;color:var(--mpc-danger)}
.table{--bs-table-color:var(--mpc-text);--bs-table-border-color:var(--mpc-border);margin-bottom:0}.table thead th{font-size:11px;text-transform:uppercase;letter-spacing:.045em;color:#64748b;font-weight:600;background:#f8fafc;border-bottom:1px solid var(--mpc-border);white-space:nowrap}.table tbody td{vertical-align:middle;color:#334155}.table-hover tbody tr:hover{background:#f8fbff}.dt-container .dt-search input,.dt-container .dt-length select{border-radius:10px;border-color:var(--mpc-border-strong);padding:.375rem .75rem}.dataTables_wrapper .row{align-items:center}.mpc-code-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#eef2ff;color:#3730a3;font-weight:600;font-size:12px;border:1px solid #e0e7ff}

/* Form workflow */
.mpc-client-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}.mpc-workflow-card{position:sticky;top:104px;border-radius:20px;background:#fff;border:1px solid var(--mpc-border);box-shadow:var(--mpc-shadow-sm);padding:18px}.mpc-workflow-card h3{font-size:16px;font-weight:600;margin:0}.mpc-workflow-card p{font-size:12px;color:var(--mpc-muted);margin:6px 0 14px}.mpc-workflow-steps{display:grid;gap:8px}.mpc-step{display:flex;gap:10px;align-items:center;padding:10px;border-radius:14px;color:#475569;text-decoration:none;background:#f8fafc;border:1px solid transparent}.mpc-step:hover{background:#eef4ff;color:var(--mpc-primary)}.mpc-step-number{width:28px;height:28px;border-radius:10px;display:grid;place-items:center;background:#fff;border:1px solid var(--mpc-border);font-size:12px;font-weight:600}.mpc-step span:last-child{font-size:13px;font-weight:500}.client-dependent.disabled,.client-dependent.disabled-card{opacity:.58;filter:grayscale(.1);pointer-events:none}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.check-tile{display:flex;align-items:center;gap:9px;min-height:42px;border:1px solid var(--mpc-border);border-radius:13px;background:#fff;padding:9px 11px;color:#334155;font-weight:500}.check-tile input{accent-color:var(--mpc-primary)}.profile-list{display:grid;grid-template-columns:160px 1fr;gap:10px 16px;margin:0}.profile-list dt{color:var(--mpc-muted);font-size:12px;font-weight:600}.profile-list dd{margin:0;color:#1f2937}.audit-pre{background:#0f172a;color:#dbeafe;border-radius:14px;padding:16px;white-space:pre-wrap;max-height:520px;overflow:auto}.mpc-empty-state{min-height:360px;display:grid;place-items:center}.mpc-empty-state h1{font-size:90px;font-weight:700;letter-spacing:-.08em;color:var(--mpc-primary);margin:0}.mpc-empty-state h2{font-size:24px;font-weight:600}.mpc-empty-state p{color:var(--mpc-muted);max-width:440px;margin:auto}
.py-15{padding-top:5rem!important;padding-bottom:5rem!important}.mb-6{margin-bottom:1.5rem!important}.mt-6{margin-top:1.5rem!important}

/* Login */
.mpc-login-page{min-height:100vh;background:radial-gradient(circle at top left,#dbeafe 0,#f8fafc 34%,#eef2ff 100%);display:grid;place-items:center;padding:28px}.mpc-login-shell{width:min(1120px,100%);min-height:680px;display:grid;grid-template-columns:1.12fr .88fr;border-radius:30px;overflow:hidden;background:#fff;box-shadow:0 30px 90px rgba(15,23,42,.16);border:1px solid rgba(255,255,255,.7)}.mpc-login-hero{position:relative;overflow:hidden;padding:42px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(135deg,#0f172a,#1d4ed8 58%,#0ea5e9);color:#fff}.mpc-login-hero:after{content:"";position:absolute;right:-140px;bottom:-160px;width:460px;height:460px;border-radius:50%;background:rgba(255,255,255,.13)}.mpc-login-brand{position:relative;z-index:1;display:flex;gap:13px;align-items:center}.mpc-login-brand strong{display:block;font-size:18px}.mpc-login-brand small{display:block;color:#bfdbfe}.mpc-login-copy{position:relative;z-index:1;max-width:610px}.mpc-login-kicker{display:inline-flex;gap:8px;align-items:center;border-radius:999px;background:rgba(255,255,255,.14);padding:7px 11px;font-size:13px;margin-bottom:18px}.mpc-login-copy h1{font-size:44px;line-height:1.05;letter-spacing:-.055em;font-weight:600;margin:0}.mpc-login-copy p{color:#dbeafe;font-size:16px;line-height:1.7;margin:18px 0 0}.mpc-login-points{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mpc-login-points div{padding:13px;border-radius:16px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);font-size:12px;color:#eaf2ff}.mpc-login-points i{display:block;font-size:20px;margin-bottom:8px}.mpc-login-card{display:flex;flex-direction:column;justify-content:center;padding:46px}.mpc-login-card-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;margin:0 auto 14px;background:var(--mpc-primary-soft);color:var(--mpc-primary);font-size:22px}.mpc-login-card h2{font-weight:600;letter-spacing:-.03em;margin:0}.mpc-login-card p{color:var(--mpc-muted);margin:8px 0 0}.mpc-login-help{margin-top:22px;padding:14px;border-radius:16px;background:#f8fafc;border:1px solid var(--mpc-border);font-size:12px;color:var(--mpc-muted)}.mpc-login-help strong{display:block;color:#334155;margin-bottom:3px}

/* Responsiveness */
@media (max-width:1199.98px){.mpc-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mpc-client-layout{grid-template-columns:1fr}.mpc-workflow-card{position:relative;top:auto}.mpc-workflow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:991.98px){.mpc-sidebar{transform:translateX(-105%);transition:.22s ease}.mpc-sidebar.show{transform:translateX(0)}.mpc-mobile-backdrop.show{display:block;position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:1030}.mpc-shell{margin-left:0}.mpc-topbar{height:auto;min-height:74px;padding:14px 18px}.mpc-content{padding:20px}.mpc-hero-inner{align-items:flex-start;flex-direction:column}.mpc-hero-actions{justify-content:flex-start}.mpc-login-shell{grid-template-columns:1fr}.mpc-login-hero{min-height:420px}.mpc-login-points{grid-template-columns:1fr 1fr 1fr}}
@media (max-width:767.98px){.mpc-topbar{align-items:flex-start;flex-direction:column}.mpc-topbar-actions{width:100%;justify-content:space-between;gap:8px}.mpc-page-title{font-size:20px}.mpc-kpi-grid{grid-template-columns:1fr}.mpc-hero-inner{padding:22px}.mpc-hero-title{font-size:24px}.check-grid{grid-template-columns:1fr}.profile-list{grid-template-columns:1fr}.mpc-workflow-steps{grid-template-columns:1fr}.card-header,.card-body{padding:16px}.mpc-login-page{padding:12px}.mpc-login-shell{border-radius:22px}.mpc-login-hero,.mpc-login-card{padding:26px}.mpc-login-copy h1{font-size:32px}.mpc-login-points{grid-template-columns:1fr}.mpc-footer{padding:16px 20px}}
.btn-light-warning{color:var(--mpc-warning);background:#fff7ed;border-color:#fff7ed}.btn-light-warning:hover{color:#fff;background:var(--mpc-warning);border-color:var(--mpc-warning)}
.btn-light-dark{color:#334155;background:#f1f5f9;border-color:#f1f5f9}.btn-light-dark:hover{color:#fff;background:#334155;border-color:#334155}
.action-buttons{white-space:nowrap}.action-buttons .btn{margin-right:4px}
.client-code-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;padding:14px 18px;border-radius:16px;background:#eef2ff;border:1px solid #dfe7ff;color:#334155}.client-code-banner span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#64748b;font-weight:600}.client-code-banner strong{font-size:18px;color:#3730a3;font-weight:700}.mpc-form-shell{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}.mpc-step-panel{position:sticky;top:104px;background:#fff;border:1px solid var(--mpc-border);border-radius:20px;padding:18px;box-shadow:var(--mpc-shadow-sm)}.mpc-step-title{font-size:16px;font-weight:600}.mpc-step-caption{font-size:12px;color:var(--mpc-muted);line-height:1.55;margin:6px 0 15px}.mpc-step-list{display:grid;gap:8px}.mpc-step-item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:14px;background:#f8fafc;color:#475569;font-weight:500;font-size:13px}.mpc-step-item span{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:#fff;border:1px solid var(--mpc-border);font-size:12px;font-weight:600}.mpc-step-item.active{background:var(--mpc-primary-soft);color:var(--mpc-primary)}.mpc-step-item.active span{background:var(--mpc-primary);border-color:var(--mpc-primary);color:#fff}.mpc-step-item.locked{opacity:.55}.mpc-form-grid{min-width:0}.required-star{color:var(--mpc-danger);font-weight:600}.separator{height:1px;background:var(--mpc-border);margin:28px 0}.separator-dashed{background:repeating-linear-gradient(90deg,var(--mpc-border),var(--mpc-border) 8px,transparent 8px,transparent 14px)}.form-check-custom{gap:8px}.form-check-solid .form-check-input{border-color:var(--mpc-border-strong)}
@media (max-width:1199.98px){.mpc-form-shell{grid-template-columns:1fr}.mpc-step-panel{position:relative;top:auto}.mpc-step-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:767.98px){.mpc-step-list{grid-template-columns:1fr}.client-code-banner{align-items:flex-start;flex-direction:column}}
.mt-8{margin-top:2rem!important}.my-8{margin-top:2rem!important;margin-bottom:2rem!important}.px-7{padding-left:1.75rem!important;padding-right:1.75rem!important}

/* Demo credentials box */
.mpc-demo-access {
  text-align: left;
}
.mpc-demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .45rem 0;
  border-top: 1px solid rgba(15, 23, 42, .08);
  font-size: .86rem;
  color: var(--mpc-muted);
}
.mpc-demo-row code {
  color: #0f172a;
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .65rem;
  padding: .18rem .5rem;
  font-size: .84rem;
  font-weight: 600;
}

/* Create Individual Client - modern Bootstrap redesign */
.mpc-create-page{
  display:grid;
  gap:20px;
}
.mpc-create-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:26px 28px;
  border-radius:24px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255,255,255,.22) 0, rgba(255,255,255,0) 30%),
    linear-gradient(135deg,#0f1f46 0%,#2557d6 55%,#14b8a6 100%);
  color:#fff;
  box-shadow:0 20px 60px rgba(15,23,42,.12);
}
.mpc-create-hero:after{
  content:"";
  position:absolute;
  right:-130px;
  bottom:-210px;
  width:440px;
  height:440px;
  border-radius:50%;
  background:rgba(255,255,255,.12);
}
.mpc-create-hero-copy,.mpc-create-hero-actions{position:relative;z-index:1}
.mpc-create-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 11px;
  margin-bottom:12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.16);
  color:#eef6ff;
  font-size:12px;
  font-weight:500;
}
.mpc-create-hero h2{
  margin:0;
  font-size:30px;
  line-height:1.08;
  font-weight:600;
  letter-spacing:-.035em;
}
.mpc-create-hero p{
  max-width:820px;
  margin:10px 0 0;
  color:#dbeafe;
  line-height:1.65;
}
.mpc-create-hero-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.mpc-intake-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.mpc-intake-steps .mpc-step-item{
  min-height:72px;
  padding:14px;
  border-radius:18px;
  border:1px solid var(--mpc-border);
  background:#fff;
  box-shadow:0 10px 28px rgba(15,23,42,.045);
}
.mpc-intake-steps .mpc-step-item strong{
  display:block;
  color:#172033;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
}
.mpc-intake-steps .mpc-step-item small{
  display:block;
  color:var(--mpc-muted);
  font-size:12px;
  margin-top:3px;
}
.mpc-intake-steps .mpc-step-item.active{
  border-color:#c7d7ff;
  background:linear-gradient(180deg,#ffffff 0%,#f5f8ff 100%);
}
.mpc-create-main-card{
  overflow:hidden;
  border-radius:24px;
}
.mpc-card-header-clean{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#fff;
}
.mpc-card-header-clean .mpc-section-title h3{
  font-size:18px;
}
.mpc-form-zone{
  padding:24px;
}
.mpc-form-zone + .mpc-form-zone{
  border-top:1px solid var(--mpc-border);
}
.mpc-form-zone-muted{
  background:linear-gradient(180deg,#fbfdff 0%,#f8fafc 100%);
}
.mpc-zone-title{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:20px;
}
.mpc-zone-title i{
  width:38px;
  height:38px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:var(--mpc-primary-soft);
  color:var(--mpc-primary);
  font-size:17px;
  flex:0 0 auto;
}
.mpc-zone-title h4{
  margin:0;
  font-size:16px;
  font-weight:600;
  letter-spacing:-.01em;
}
.mpc-zone-title p{
  margin:3px 0 0;
  font-size:12px;
  color:var(--mpc-muted);
}
.mpc-form-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 24px;
  border-top:1px solid var(--mpc-border);
  background:#fff;
}
.mpc-action-note{
  color:var(--mpc-muted);
  font-size:12px;
}
.mpc-secondary-workspace{
  transition:opacity .18s ease, filter .18s ease;
}
.mpc-tab-shell{
  border:1px solid var(--mpc-border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 36px rgba(15,23,42,.055);
  overflow:hidden;
}
.mpc-tab-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px 14px;
}
.mpc-tab-header h3{
  margin:0;
  font-size:20px;
  font-weight:600;
  letter-spacing:-.025em;
}
.mpc-tab-header p{
  margin:4px 0 0;
  color:var(--mpc-muted);
  font-size:13px;
}
.mpc-intake-tabs{
  gap:8px;
  padding:0 24px 18px;
  border-bottom:1px solid var(--mpc-border);
}
.mpc-intake-tabs .nav-link{
  border-radius:999px;
  color:#475569;
  background:#f8fafc;
  border:1px solid var(--mpc-border);
  font-weight:500;
  min-height:38px;
  padding:.5rem .9rem;
}
.mpc-intake-tabs .nav-link:hover{
  color:var(--mpc-primary);
  background:#eef4ff;
}
.mpc-intake-tabs .nav-link.active{
  background:var(--mpc-primary);
  border-color:var(--mpc-primary);
  color:#fff;
}
.mpc-tab-content{
  padding:20px;
  background:#f8fafc;
}
.mpc-module-card{
  height:100%;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}
.mpc-module-card .card-header{
  min-height:74px;
}
.mpc-mini-table{
  border:1px solid var(--mpc-border);
  border-radius:14px;
  overflow:hidden;
}
.mpc-preference-block{
  height:100%;
  padding:16px;
  border:1px solid var(--mpc-border);
  border-radius:18px;
  background:#fff;
}
.mpc-preference-block h6{
  margin:0 0 14px;
  font-size:13px;
  font-weight:600;
  color:#172033;
}
.mpc-secondary-workspace.disabled-card .mpc-tab-shell{
  background:#fff;
}
.mpc-secondary-workspace.disabled-card:before{
  content:"Create the main client first to unlock these modules";
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  margin-bottom:12px;
  border-radius:16px;
  border:1px dashed #c7d2fe;
  background:#eef2ff;
  color:#3730a3;
  font-size:13px;
  font-weight:500;
}
@media (max-width:1199.98px){
  .mpc-intake-steps{grid-template-columns:1fr}
  .mpc-create-hero{align-items:flex-start;flex-direction:column}
  .mpc-create-hero-actions{justify-content:flex-start}
}
@media (max-width:767.98px){
  .mpc-create-hero{padding:22px}
  .mpc-create-hero h2{font-size:24px}
  .mpc-form-zone,.mpc-form-actions,.mpc-tab-content{padding:16px}
  .mpc-form-actions{align-items:stretch;flex-direction:column}
  .mpc-form-actions .btn{width:100%}
  .mpc-tab-header{padding:18px 16px 12px}
  .mpc-intake-tabs{padding:0 16px 16px;overflow-x:auto;flex-wrap:nowrap}
  .mpc-intake-tabs .nav-link{white-space:nowrap}
}

/* Create Client cleanup patch */
.client-code-banner{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  width:fit-content;
  margin-bottom:20px;
  padding:10px 16px;
  border-radius:999px;
  background:#eef2ff;
  border:1px solid #dfe7ff;
}
.client-code-banner strong{
  font-size:14px;
  color:#3730a3;
  font-weight:600;
  letter-spacing:.02em;
}
.mpc-section-title-plain{
  gap:0;
}
.mpc-create-main-card .mpc-card-header-clean{
  min-height:78px;
}

/* Select2 for Create Client */
.mpc-create-page .select2-container{
  width:100%!important;
  font-size:14px;
}
.mpc-create-page .select2-container .select2-selection--single{
  min-height:42px;
  height:42px;
  display:flex;
  align-items:center;
  border:1px solid var(--mpc-border-strong);
  border-radius:12px;
  background:#f8fafc;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mpc-create-page .select2-container--default .select2-selection--single .select2-selection__rendered{
  width:100%;
  padding-left:13px;
  padding-right:36px;
  color:#172033;
  line-height:40px;
  font-weight:400;
}
.mpc-create-page .select2-container--default .select2-selection--single .select2-selection__placeholder{
  color:#94a3b8;
  font-weight:400;
}
.mpc-create-page .select2-container--default .select2-selection--single .select2-selection__arrow{
  height:40px;
  right:8px;
}
.mpc-create-page .select2-container--default .select2-selection--single .select2-selection__clear{
  height:40px;
  margin-right:24px;
  color:#94a3b8;
  font-size:18px;
  font-weight:400;
}
.mpc-create-page .select2-container--default.select2-container--focus .select2-selection--single,
.mpc-create-page .select2-container--default.select2-container--open .select2-selection--single{
  border-color:#93b4ff;
  background:#fff;
  box-shadow:0 0 0 .22rem rgba(37,87,214,.12);
}
.mpc-create-page .select2-container--default.select2-container--disabled .select2-selection--single{
  background:#eef2f7;
  opacity:.75;
}
.select2-dropdown{
  border:1px solid #d8e0ec;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 18px 44px rgba(15,23,42,.14);
  z-index:1090;
}
.select2-container--default .select2-search--dropdown .select2-search__field{
  border:1px solid #d8e0ec;
  border-radius:10px;
  min-height:38px;
  outline:none;
  padding:7px 10px;
}
.select2-results__option{
  padding:9px 12px;
  font-size:13px;
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable{
  background:var(--mpc-primary);
}
.select2-container--default .select2-results__option--selected{
  background:#eef4ff;
  color:#1d4ed8;
}

.mpc-create-page .select2-container .select2-selection--multiple{
  min-height:42px;
  width:100%;
  border:1px solid var(--mpc-border-strong);
  border-radius:12px;
  background:#f8fafc;
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  padding:5px 10px;
  cursor:text;
  overflow:hidden;
}
.mpc-create-page .select2-container--default.select2-container--focus .select2-selection--multiple,
.mpc-create-page .select2-container--default.select2-container--open .select2-selection--multiple{
  border-color:#93b4ff;
  background:#fff;
  box-shadow:0 0 0 .22rem rgba(37,87,214,.12);
}
.mpc-create-page .select2-container--default .select2-selection--multiple .select2-selection__rendered{
  display:flex!important;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  width:100%;
  min-height:30px;
  margin:0!important;
  padding:0!important;
  list-style:none;
}
.mpc-create-page .select2-container--default .select2-selection--multiple .select2-selection__choice,
.mpc-create-page .select2-container--default .select2-selection--multiple .select2-search--inline{
  float:none!important;
}
.mpc-create-page .select2-container--default .select2-selection--multiple .select2-selection__choice{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  margin:0!important;
  padding:4px 10px 4px 26px!important;
  border:1px solid rgba(37,87,214,.16);
  border-radius:999px;
  background:linear-gradient(135deg,#eef4ff 0%,#dbeafe 100%);
  color:#1d4ed8;
  font-size:12px;
  font-weight:600;
  box-shadow:0 8px 18px rgba(37,87,214,.08);
}
.mpc-create-page .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
  position:absolute;
  left:8px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  color:#64748b;
  font-size:15px;
  font-weight:600;
  line-height:1;
  padding:0!important;
  margin:0!important;
}
.mpc-create-page .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{
  color:#dc2626;
  background:transparent;
}
.mpc-create-page .select2-container--default .select2-selection--multiple .select2-search--inline{
  display:block!important;
  flex:1 1 160px!important;
  min-width:160px!important;
  max-width:100%;
  margin:0!important;
  padding:0!important;
  line-height:30px;
}
.mpc-create-page .select2-container--default .select2-selection--multiple .select2-search__field{
  width:100%!important;
  min-width:100%!important;
  height:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  font-family:inherit;
  color:#172033;
  text-align:left!important;
  line-height:30px!important;
}
.mpc-create-page .select2-container--default .select2-selection--multiple .select2-search__field::placeholder{
  color:#94a3b8;
  font-weight:400;
  opacity:1;
}
.mpc-create-page .select2-container.mpc-select2-empty .select2-selection--multiple .select2-search--inline{
  flex:1 1 100%!important;
  min-width:100%!important;
}
.mpc-create-page .select2-container.mpc-select2-has-value .select2-selection--multiple .select2-search--inline{
  flex:1 1 120px!important;
  min-width:120px!important;
}
.mpc-create-page .select2-container--default.select2-container--disabled .select2-selection--multiple{
  background:#eef2f7;
  opacity:.75;
}
.mpc-create-page .select2-container.is-invalid .select2-selection--multiple{
  border-color:#ef4444!important;
  background-color:#fff7f7!important;
  box-shadow:0 0 0 .22rem rgba(239,68,68,.12)!important;
}

/* Create Client - client code badge and validation patch */
.mpc-card-header-client{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.mpc-card-header-client .client-code-banner{
  margin:0 0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:auto;
  min-width:210px;
  padding:12px 18px;
  border-radius:16px;
  border:1px solid rgba(37,87,214,.18);
  background:linear-gradient(135deg,#eef4ff 0%,#dbeafe 55%,#eff6ff 100%);
  box-shadow:0 14px 34px rgba(37,87,214,.16);
}
.mpc-card-header-client .client-code-banner span{
  display:block;
  margin:0;
  font-size:11px;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  font-weight:600;
}
.mpc-card-header-client .client-code-banner strong{
  display:block;
  font-size:18px;
  line-height:1;
  color:#1d4ed8;
  font-weight:700;
  letter-spacing:.04em;
}
.mpc-create-page .form-control.is-invalid,
.mpc-create-page .form-select.is-invalid,
.mpc-create-page .select2-container.is-invalid .select2-selection--single{
  border-color:#ef4444!important;
  background-color:#fff7f7!important;
  box-shadow:0 0 0 .22rem rgba(239,68,68,.12)!important;
}
.mpc-required-group-invalid{
  border:1px solid rgba(239,68,68,.55)!important;
  border-radius:14px;
  padding:8px;
  background:#fff7f7;
}
.mpc-alert-card-name{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:12px;
  background:#eef4ff;
  color:#1d4ed8;
  font-weight:700;
  border:1px solid #dbeafe;
}
@media (max-width:767.98px){
  .mpc-card-header-client{align-items:flex-start;flex-direction:column}
  .mpc-card-header-client .client-code-banner{margin-left:0;width:100%;min-width:0;justify-content:space-between}
}


/* Create Client: main record locked after successful creation */
.mpc-main-locked {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.mpc-main-locked .form-control,
.mpc-main-locked .form-select,
.mpc-main-locked .select2-container--default .select2-selection--single {
  background-color: #eef2f7 !important;
  color: #64748b !important;
  cursor: not-allowed;
  border-color: #d7dee8 !important;
}
.mpc-main-locked .select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: #eef2f7 !important;
}
.mpc-main-locked::after {
  content: "Main client created";
  position: absolute;
  top: 18px;
  right: 22px;
  padding: .38rem .75rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}
@media (max-width: 767.98px) {
  .mpc-main-locked::after {
    position: static;
    display: inline-flex;
    margin: 0 0 14px 22px;
  }
}

/* Create Client: move secondary Add / Save buttons to the card header */
.mpc-module-card > .card-header.mpc-card-header-clean{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:nowrap;
}
.mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title{
  min-width:0;
  flex:1 1 auto;
}
.mpc-card-header-actions{
  margin-left:auto;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
}
.mpc-card-header-actions .btn{
  min-height:40px;
  padding:.55rem 1rem;
  border-radius:13px;
  font-weight:500;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(37,87,214,.10)!important;
}
.mpc-card-header-actions .btn i{
  font-size:1rem;
}
.mpc-module-card .card-body form.row.g-4{
  align-items:end;
}
@media (max-width:575.98px){
  .mpc-module-card > .card-header.mpc-card-header-clean{
    align-items:stretch;
    flex-direction:column;
  }
  .mpc-card-header-actions{
    width:100%;
  }
  .mpc-card-header-actions .btn{
    width:100%;
  }
}

/* Create Client - Account History modal/readability */
.mpc-mini-table .mpc-comment-cell{
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-buttons{
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.mpc-dark-comment-modal{
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.55) !important;
}

.mpc-dark-comment-modal-title{
  color: #ffffff !important;
  font-weight: 600 !important;
  letter-spacing: -.02em;
}

.mpc-dark-comment-modal-html{
  color: #e5e7eb !important;
}

.mpc-comment-modal-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 13px;
}

.mpc-comment-modal-meta span{
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 8px 12px;
}

.mpc-comment-modal-body{
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.65;
  max-height: 55vh;
  overflow: auto;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #f8fafc;
}

/* Create/Edit Client - PDF preview button moved to Client Information header */
.mpc-main-card-tools{
  margin-left:auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  flex-wrap:wrap;
}

.mpc-primary-client-action{
  min-height:42px;
  border-radius:14px;
  font-weight:600;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.25rem;
}
.mpc-pdf-preview-btn{
  min-height:42px;
  padding:.62rem 1.05rem;
  border-radius:14px;
  font-weight:600;
  color:#b42318!important;
  background:#fff1f0!important;
  border:1px solid #fecaca!important;
  box-shadow:0 12px 28px rgba(248,113,113,.14)!important;
}
.mpc-pdf-preview-btn:hover,
.mpc-pdf-preview-btn:focus{
  color:#991b1b!important;
  background:#fee2e2!important;
  border-color:#fca5a5!important;
  box-shadow:0 16px 34px rgba(248,113,113,.20)!important;
}
.mpc-card-header-client .mpc-main-card-tools .client-code-banner{
  margin-left:0;
}
@media (max-width:767.98px){
  .mpc-main-card-tools{
    width:100%;
    justify-content:stretch;
  }
  .mpc-main-card-tools .btn,
  .mpc-main-card-tools .client-code-banner{
    width:100%;
  }
}

/* Dark professional client PDF summary modal */
.mpc-dark-pdf-modal{
  border-radius:26px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  box-shadow:0 34px 100px rgba(0,0,0,.62)!important;
  overflow:hidden!important;
}
.mpc-dark-pdf-html{
  margin:0!important;
  padding:0!important;
  color:#e5e7eb!important;
}
.mpc-pdf-summary{
  text-align:left;
  max-height:72vh;
  overflow:auto;
  padding:0 4px 8px;
}
.mpc-pdf-summary-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:24px;
  margin-bottom:18px;
  border-radius:22px;
  background:
    radial-gradient(circle at right top, rgba(45,212,191,.28), transparent 34%),
    linear-gradient(135deg, rgba(30,64,175,.92), rgba(2,132,199,.76));
  border:1px solid rgba(255,255,255,.15);
}
.mpc-pdf-summary-hero span{
  display:block;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#bfdbfe;
  font-weight:600;
}
.mpc-pdf-summary-hero h3{
  margin:7px 0 6px;
  color:#fff;
  font-size:28px;
  font-weight:600;
  letter-spacing:-.035em;
}
.mpc-pdf-summary-hero p{
  margin:0;
  color:#dbeafe;
  font-size:14px;
}
.mpc-pdf-summary-code{
  flex:0 0 auto;
  min-width:190px;
  padding:14px 16px;
  border-radius:18px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  text-align:right;
}
.mpc-pdf-summary-code strong{
  display:block;
  color:#fff;
  font-size:22px;
  letter-spacing:.04em;
  font-weight:700;
  margin-top:6px;
}
.mpc-pdf-summary-section{
  margin:14px 0;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.055);
}
.mpc-pdf-summary-section-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.mpc-pdf-summary-section-title i{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#93c5fd;
  background:rgba(96,165,250,.12);
  border:1px solid rgba(147,197,253,.18);
}
.mpc-pdf-summary-section-title h4{
  margin:0;
  color:#fff;
  font-size:17px;
  font-weight:600;
  letter-spacing:-.02em;
}
.mpc-pdf-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.mpc-pdf-summary-field{
  min-height:72px;
  padding:12px 14px;
  border-radius:16px;
  background:rgba(15,23,42,.58);
  border:1px solid rgba(255,255,255,.08);
}
.mpc-pdf-summary-field span{
  display:block;
  margin-bottom:7px;
  color:#94a3b8;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:600;
}
.mpc-pdf-summary-field strong{
  display:block;
  color:#f8fafc;
  font-weight:500;
  font-size:14px;
  line-height:1.35;
  word-break:break-word;
}
.mpc-pdf-summary-two-col{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.mpc-pdf-summary-two-col h5{
  color:#e0f2fe;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:600;
  margin:0 0 10px;
}
.mpc-pdf-summary-table{
  margin:0;
  color:#e5e7eb!important;
}
.mpc-pdf-summary-table thead th{
  color:#93c5fd!important;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:600;
  border-bottom:1px solid rgba(255,255,255,.12)!important;
  padding:9px 10px!important;
  white-space:nowrap;
}
.mpc-pdf-summary-table tbody td{
  color:#f8fafc!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
  padding:10px!important;
  font-size:13px;
  vertical-align:top;
}
.mpc-pdf-summary-empty{
  color:#cbd5e1;
  padding:13px 14px;
  border-radius:14px;
  background:rgba(15,23,42,.58);
  border:1px dashed rgba(255,255,255,.14);
  font-size:13px;
}
@media (max-width:991.98px){
  .mpc-pdf-summary-grid,
  .mpc-pdf-summary-two-col{grid-template-columns:1fr;}
  .mpc-pdf-summary-hero{flex-direction:column;}
  .mpc-pdf-summary-code{width:100%;text-align:left;}
}


/* Create/Edit Client - PDF viewer modal */
.mpc-dark-pdf-viewer-popup{
  width:min(94vw, 1240px)!important;
}
.mpc-pdf-viewer-modal{
  text-align:left;
  color:#e5e7eb;
  padding:20px;
}
.mpc-pdf-viewer-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px;
  margin-bottom:16px;
  border-radius:22px;
  background:
    radial-gradient(circle at right top, rgba(248,113,113,.32), transparent 30%),
    linear-gradient(135deg, rgba(15,23,42,.98), rgba(127,29,29,.78));
  border:1px solid rgba(255,255,255,.12);
}
.mpc-pdf-viewer-header span{
  display:block;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#fecaca;
  font-weight:700;
}
.mpc-pdf-viewer-header h3{
  margin:6px 0 4px;
  color:#ffffff;
  font-size:24px;
  font-weight:700;
}
.mpc-pdf-viewer-header p{
  margin:0;
  color:#fee2e2;
  font-weight:600;
}
.mpc-pdf-viewer-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  color:#fee2e2;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.14);
  white-space:nowrap;
  font-size:13px;
  font-weight:600;
}
.mpc-pdf-frame-wrap{
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.14);
  background:#111827;
  box-shadow:0 24px 80px rgba(0,0,0,.38);
}
.mpc-pdf-frame{
  display:block;
  width:100%;
  height:min(72vh, 760px);
  border:0;
  background:#ffffff;
}
.mpc-pdf-viewer-actions{
  padding:0 20px 20px!important;
  margin-top:0!important;
}
@media (max-width:767.98px){
  .mpc-pdf-viewer-modal{padding:14px;}
  .mpc-pdf-viewer-header{flex-direction:column;}
  .mpc-pdf-viewer-badge{width:100%;justify-content:center;}
  .mpc-pdf-frame{height:68vh;}
}

/* View Individual Client - aligned with Create/Edit layout */
.mpc-view-page .mpc-create-hero h2{
  letter-spacing:-.035em;
}

.mpc-view-main-card .mpc-form-zone{
  padding:26px 24px;
}

.mpc-view-field-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.mpc-view-field-grid-four{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.mpc-view-field-grid.is-single{
  grid-template-columns:1fr;
  gap:10px;
}

.mpc-view-field{
  min-height:76px;
  padding:14px 16px;
  border-radius:16px;
  background:#fff;
  border:1px solid var(--mpc-border);
  box-shadow:0 8px 22px rgba(15,23,42,.035);
}

.mpc-form-zone-muted .mpc-view-field{
  background:#ffffff;
}

.mpc-view-field span{
  display:block;
  margin-bottom:8px;
  color:#64748b;
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.mpc-view-field strong{
  display:block;
  color:#172033;
  font-size:15px;
  font-weight:500!important;
  line-height:1.35;
  word-break:break-word;
}

.mpc-view-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:28px;
  padding:5px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
}

.mpc-view-status:before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
}

.mpc-view-status.is-active{
  color:#15803d;
  background:#dcfce7;
  border:1px solid #bbf7d0;
}

.mpc-view-status.is-muted{
  color:#475569;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
}

.mpc-view-table{
  margin-bottom:0;
  background:#fff;
}

.mpc-view-table thead th{
  color:#52647c;
  background:#f8fafc;
  border-bottom:1px solid var(--mpc-border)!important;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  white-space:nowrap;
  padding:11px 12px!important;
}

.mpc-view-table tbody td{
  color:#172033;
  font-size:13px;
  font-weight:400;
  vertical-align:middle;
  border-bottom:1px solid #edf2f7!important;
  padding:12px!important;
}

.mpc-view-table tbody tr:last-child td{
  border-bottom:0!important;
}

.mpc-view-empty{
  min-height:130px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:22px;
  border-radius:18px;
  border:1px dashed #cbd5e1;
  background:#f8fafc;
  color:#64748b;
  text-align:center;
  font-size:13px;
  font-weight:500;
}

.mpc-view-empty i{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:var(--mpc-primary);
  background:var(--mpc-primary-soft);
  font-size:20px;
}

.mpc-view-empty.is-compact{
  min-height:92px;
  padding:16px;
}

.mpc-view-empty.is-compact i{
  width:34px;
  height:34px;
  font-size:16px;
}

.mpc-view-preference-block{
  min-height:220px;
}

.mpc-view-pill-list{
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:10px;
}

.mpc-view-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:36px;
  padding:8px 12px;
  border-radius:999px;
  color:#1d4ed8;
  background:#eef4ff;
  border:1px solid #dbe7ff;
  font-size:13px;
  font-weight:500;
}

.mpc-view-history-comment{
  max-width:560px;
  color:#334155!important;
  line-height:1.45;
}

.mpc-view-action-btn{
  width:34px;
  height:34px;
  display:inline-grid;
  place-items:center;
  border-radius:12px;
  color:#2563eb;
  background:#eff6ff;
  border:1px solid #dbeafe;
}

.mpc-view-action-btn:hover,
.mpc-view-action-btn:focus{
  color:#fff;
  background:#2563eb;
  border-color:#2563eb;
}

.mpc-view-page .mpc-tab-header p{
  max-width:680px;
}

@media (max-width:1199.98px){
  .mpc-view-field-grid,
  .mpc-view-field-grid-four{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:767.98px){
  .mpc-view-field-grid,
  .mpc-view-field-grid-four{
    grid-template-columns:1fr;
  }
  .mpc-view-main-card .mpc-form-zone{
    padding:20px 16px;
  }
  .mpc-view-history-comment{
    max-width:280px;
  }
}

/* Individual Clients dashboard redesign */
.mpc-clients-hub{
  position:relative;
  overflow:hidden;
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:34px 36px;
  border-radius:24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(14,165,233,.34), transparent 34%),
    linear-gradient(135deg,#0b1f4d 0%,#244ed8 56%,#0ea5e9 100%);
  color:#fff;
  box-shadow:0 22px 55px rgba(15,23,42,.16);
}
.mpc-clients-hub:after{
  content:"";
  position:absolute;
  right:-120px;
  bottom:-210px;
  width:420px;
  height:420px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
}
.mpc-clients-hub-content{position:relative;z-index:1;max-width:780px}
.mpc-hub-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
  padding:7px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  color:#eaf2ff;
  font-size:12px;
  font-weight:500;
}
.mpc-clients-hub h2{
  margin:0;
  font-size:34px;
  line-height:1.05;
  letter-spacing:-.04em;
  font-weight:600;
}
.mpc-clients-hub p{
  margin:12px 0 0;
  max-width:720px;
  color:#dbeafe;
  line-height:1.65;
  font-size:14px;
}
.mpc-hub-visual{
  position:relative;
  z-index:1;
  min-width:140px;
  min-height:140px;
  display:grid;
  place-items:center;
}
.mpc-hub-visual i{
  position:relative;
  z-index:2;
  width:82px;
  height:82px;
  display:grid;
  place-items:center;
  border-radius:28px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(10px);
  font-size:38px;
}
.mpc-hub-orb{
  position:absolute;
  width:132px;
  height:132px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  filter:blur(.2px);
}
.mpc-client-overview{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.mpc-overview-card{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:14px;
  min-height:174px;
  padding:18px;
  border:1px solid var(--mpc-border);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--mpc-shadow-sm);
}
.mpc-overview-card:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:var(--mpc-primary);
}
.mpc-overview-card.danger:before{background:var(--mpc-danger)}
.mpc-overview-card.warning:before{background:var(--mpc-warning)}
.mpc-overview-card.info:before{background:var(--mpc-info)}
.mpc-overview-card.success:before{background:var(--mpc-success)}
.mpc-overview-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:var(--mpc-primary-soft);
  color:var(--mpc-primary);
  font-size:22px;
}
.mpc-overview-card.danger .mpc-overview-icon{background:#fef2f2;color:var(--mpc-danger)}
.mpc-overview-card.warning .mpc-overview-icon{background:#fff7ed;color:var(--mpc-warning)}
.mpc-overview-card.info .mpc-overview-icon{background:#eff6ff;color:var(--mpc-info)}
.mpc-overview-card.success .mpc-overview-icon{background:#ecfdf3;color:var(--mpc-success)}
.mpc-overview-body span{
  display:block;
  color:#64748b;
  font-size:12px;
  font-weight:600;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.mpc-overview-body strong{
  display:block;
  margin-top:6px;
  font-size:34px;
  line-height:1;
  font-weight:650;
  letter-spacing:-.04em;
  color:#0f172a;
}
.mpc-overview-body p{
  margin:8px 0 0;
  color:#64748b;
  font-size:12px;
  line-height:1.5;
}
.mpc-overview-split{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:4px;
}
.mpc-overview-split.one-line{grid-template-columns:1fr}
.mpc-overview-split small{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:9px 10px;
  border-radius:13px;
  background:#f8fafc;
  color:#64748b;
  font-size:11px;
  border:1px solid #edf2f7;
}
.mpc-overview-split b{color:#0f172a;font-size:13px}
.mpc-workspace-grid{
  display:grid;
  grid-template-columns:1.35fr .9fr;
  gap:16px;
}
.mpc-workspace-card{
  border:1px solid var(--mpc-border);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--mpc-shadow-sm);
  padding:20px;
}
.mpc-workspace-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.mpc-mini-label{
  display:block;
  margin-bottom:5px;
  color:#64748b;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:600;
}
.mpc-workspace-head h3{
  margin:0;
  font-size:19px;
  letter-spacing:-.025em;
  font-weight:600;
}
.mpc-workspace-head>i{
  width:42px;
  height:42px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:var(--mpc-primary);
  background:var(--mpc-primary-soft);
  font-size:20px;
}
.mpc-follow-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mpc-follow-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #edf2f7;
}
.mpc-follow-item div{display:flex;align-items:center;gap:10px;min-width:0;color:#334155;font-weight:500;font-size:13px}
.mpc-follow-item i{width:30px;height:30px;border-radius:11px;display:grid;place-items:center;background:#fff;color:var(--mpc-primary)}
.mpc-follow-item strong{font-size:18px;line-height:1;color:#0f172a}
.mpc-follow-item.danger i{color:var(--mpc-danger)}
.mpc-follow-item.warning i{color:var(--mpc-warning)}
.mpc-follow-item.info i{color:var(--mpc-info)}
.mpc-follow-item.secondary i{color:#64748b}
.mpc-status-stack{display:grid;gap:10px}
.mpc-status-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px;
  border-radius:17px;
  border:1px solid #edf2f7;
  background:#f8fafc;
}
.mpc-status-row span{display:block;color:#1e293b;font-size:13px;font-weight:600}
.mpc-status-row small{display:block;margin-top:3px;color:#64748b;font-size:12px}
.mpc-status-row strong{font-size:24px;letter-spacing:-.04em;font-weight:650;color:#0f172a}
.mpc-status-row.active{background:#f0fdf4}
.mpc-status-row.inactive{background:#f8fafc}
.mpc-status-row.recent{background:#eff6ff}
.mpc-directory-card .card-header{padding:20px 24px}
.mpc-directory-table tbody td{padding-top:14px;padding-bottom:14px}
.mpc-client-cell{display:flex;align-items:center;gap:12px;min-width:250px}
.mpc-client-avatar{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:15px;
  display:grid;
  place-items:center;
  background:#eaf0ff;
  color:#2557d6;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
}
.mpc-client-cell strong{display:block;color:#0f172a;font-weight:600;line-height:1.25}
.mpc-client-cell small{display:block;color:#64748b;font-size:12px;margin-top:3px}
@media (max-width:1199.98px){
  .mpc-client-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mpc-workspace-grid{grid-template-columns:1fr}
}
@media (max-width:767.98px){
  .mpc-clients-hub{padding:24px;align-items:flex-start;flex-direction:column}
  .mpc-clients-hub h2{font-size:28px}
  .mpc-hub-visual{display:none}
  .mpc-client-overview{grid-template-columns:1fr}
  .mpc-follow-list{grid-template-columns:1fr}
  .mpc-overview-card{min-height:auto}
}

/* Individual Clients Directory - clean redesign */
.clients-directory-page{
  display:flex;
  flex-direction:column;
  gap:22px;
}

.clients-directory-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:30px 32px;
  border-radius:26px;
  background:
    radial-gradient(circle at 92% 20%, rgba(47,199,190,.42) 0, rgba(47,199,190,.14) 26%, transparent 44%),
    linear-gradient(135deg, #10214f 0%, #235ee8 58%, #44c7bf 100%);
  color:#fff;
  box-shadow:0 18px 40px rgba(17,39,92,.18);
}

.clients-directory-hero:after{
  content:"";
  position:absolute;
  right:-90px;
  top:-120px;
  width:310px;
  height:310px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
}

.clients-directory-hero > *{position:relative;z-index:1}
.page-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  color:#eff6ff;
  background:rgba(255,255,255,.12);
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
}
.clients-directory-hero h2{
  margin:14px 0 6px;
  font-size:32px;
  font-weight:650;
  letter-spacing:-.04em;
}
.clients-directory-hero p{
  max-width:680px;
  margin:0;
  color:rgba(255,255,255,.82);
  font-size:15px;
}
.hero-actions .btn{
  border:0;
  border-radius:14px;
  padding:12px 18px;
  background:#fff;
  color:#1956d8;
  font-weight:650;
}
.hero-actions .btn:hover{background:#f3f7ff;color:#0f43b5}
.soft-shadow{box-shadow:0 16px 32px rgba(10,29,76,.22)}

.directory-shell{
  overflow:hidden;
  border:1px solid #dfe7f3;
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 45px rgba(20,40,80,.08);
}
.directory-toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  padding:24px 26px;
  border-bottom:1px solid #e4ebf5;
  background:linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.directory-title{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:280px;
}
.directory-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:14px;
  color:#245be7;
  background:#edf4ff;
  font-size:20px;
}
.directory-title h3{
  margin:0;
  color:#10213f;
  font-size:20px;
  font-weight:650;
  letter-spacing:-.02em;
}
.directory-title span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:13px;
}
.directory-tools{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:14px;
  flex-wrap:wrap;
  flex:1;
}
.directory-search-wrap{
  position:relative;
  min-width:320px;
  max-width:520px;
  flex:1;
}
.directory-search-wrap i{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:#8ea0b8;
  font-size:15px;
}
.directory-search-wrap .form-control{
  height:46px;
  padding-left:42px;
  border-radius:14px;
  border-color:#d5dfec;
  background:#f8fbff;
  box-shadow:none;
  font-size:14px;
}
.directory-search-wrap .form-control:focus{
  background:#fff;
  border-color:#9db8ff;
  box-shadow:0 0 0 .2rem rgba(37,99,235,.11);
}
.directory-filter-group{
  display:flex;
  gap:8px;
  padding:5px;
  border:1px solid #dfe7f3;
  border-radius:14px;
  background:#f7faff;
}
.directory-filter{
  border:0;
  border-radius:10px;
  padding:9px 13px;
  background:transparent;
  color:#64748b;
  font-size:13px;
  font-weight:600;
}
.directory-filter.active{
  color:#fff;
  background:#245be7;
  box-shadow:0 8px 18px rgba(36,91,231,.20);
}
.directory-table-wrap{padding:0 26px 20px}
.directory-table{
  margin:0!important;
  border-collapse:separate!important;
  border-spacing:0 10px!important;
}
.directory-table thead th{
  padding:14px 16px!important;
  border:0!important;
  color:#71809a!important;
  background:transparent!important;
  font-size:11px!important;
  font-weight:700!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  white-space:nowrap;
}
.directory-table tbody tr{
  background:#fff;
  box-shadow:0 0 0 1px #e3eaf4;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.directory-table tbody tr:hover{
  transform:translateY(-1px);
  background:#fbfdff;
  box-shadow:0 10px 26px rgba(20,40,80,.08), 0 0 0 1px #cfe0ff;
}
.directory-table tbody td{
  padding:16px!important;
  border:0!important;
  color:#10213f;
  vertical-align:middle;
}
.directory-table tbody td:first-child{border-radius:16px 0 0 16px}
.directory-table tbody td:last-child{border-radius:0 16px 16px 0}
.client-identity-cell{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:280px;
}
.client-avatar{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:16px;
  color:#235ee8;
  background:linear-gradient(135deg,#edf4ff,#e7eeff);
  font-size:14px;
  font-weight:700;
}
.client-meta strong{
  display:block;
  color:#071936;
  font-size:14px;
  font-weight:700;
  letter-spacing:-.01em;
}
.client-meta span{
  display:block;
  margin-top:3px;
  color:#6b7c95;
  font-size:12.5px;
}
.client-code-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  min-width:96px;
  border:1px solid #cfddff;
  border-radius:999px;
  color:#164de2;
  background:#edf3ff;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
}
.client-date-stack strong{
  display:block;
  color:#1b2d49;
  font-size:13.5px;
  font-weight:650;
}
.client-date-stack span{
  display:block;
  margin-top:4px;
  color:#64748b;
  font-size:12.5px;
}
.client-status-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border-radius:999px;
  font-size:12.5px;
  font-weight:700;
}
.client-status-badge span{
  width:7px;
  height:7px;
  border-radius:999px;
  background:currentColor;
}
.client-status-badge.is-active{
  color:#0f9f5f;
  background:#eafaf1;
}
.client-status-badge.is-muted{
  color:#64748b;
  background:#f1f5f9;
}
.created-date{
  color:#43536c;
  font-size:13px;
  white-space:nowrap;
}
.directory-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:168px;
}
.action-btn{
  width:36px;
  height:36px;
  display:inline-grid;
  place-items:center;
  border:0;
  border-radius:12px;
  text-decoration:none;
  transition:transform .15s ease, filter .15s ease;
}
.action-btn:hover{transform:translateY(-1px);filter:brightness(.98)}
.action-btn.view{color:#235ee8;background:#edf4ff}
.action-btn.edit{color:#c76a00;background:#fff4e7}
.action-btn.pdf{color:#e02f3f;background:#fff0f1}
.action-btn.delete{color:#e02f3f;background:#fff0f1}
.directory-shell .dataTables_length,
.directory-shell .dataTables_filter{display:none!important}
.directory-shell .dataTables_info{
  color:#64748b!important;
  font-size:13px!important;
  padding-top:16px!important;
}
.directory-shell .dataTables_paginate{padding-top:14px!important}
.directory-shell .dataTables_paginate .paginate_button{
  border:0!important;
  border-radius:10px!important;
  margin:0 2px!important;
  padding:8px 12px!important;
  color:#4b5e78!important;
  background:#f1f5f9!important;
}
.directory-shell .dataTables_paginate .paginate_button.current,
.directory-shell .dataTables_paginate .paginate_button.current:hover{
  color:#fff!important;
  background:#245be7!important;
}
.directory-shell .dataTables_paginate .paginate_button:hover{
  color:#245be7!important;
  background:#eaf1ff!important;
}
.directory-shell table.dataTable>thead .sorting:before,
.directory-shell table.dataTable>thead .sorting:after,
.directory-shell table.dataTable>thead .sorting_asc:before,
.directory-shell table.dataTable>thead .sorting_asc:after,
.directory-shell table.dataTable>thead .sorting_desc:before,
.directory-shell table.dataTable>thead .sorting_desc:after{
  opacity:.25!important;
}

@media (max-width: 992px){
  .clients-directory-hero,
  .directory-toolbar{flex-direction:column;align-items:stretch}
  .directory-tools{justify-content:flex-start}
  .directory-search-wrap{min-width:100%;max-width:none}
  .directory-table-wrap{padding:0 14px 16px}
}

@media (max-width: 768px){
  .clients-directory-hero{padding:24px;border-radius:20px}
  .clients-directory-hero h2{font-size:26px}
  .directory-shell{border-radius:20px}
  .directory-toolbar{padding:20px}
  .directory-filter-group{width:100%;overflow:auto}
  .directory-filter{white-space:nowrap}
  .directory-table tbody td{padding:14px!important}
}

/* =========================================================
   Client Files Explorer - Azure Blob Storage
   ========================================================= */
.mpc-files-card {
  overflow: hidden;
}

.mpc-files-card-header {
  gap: 1rem;
}

.mpc-files-actions {
  gap: .65rem;
  flex-wrap: wrap;
}

.mpc-files-locked {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 150px;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 1.35rem;
  background: linear-gradient(135deg, #f8fafc, #eef4ff);
  color: #475569;
}

.mpc-files-locked-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #2563eb;
  background: #eaf1ff;
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.mpc-files-locked h5 {
  margin: 0 0 .2rem;
  font-size: 1rem;
  font-weight: 650;
  color: #172033;
}

.mpc-files-locked p {
  margin: 0;
  font-size: .88rem;
}

.mpc-files-card-disabled .mpc-files-actions {
  opacity: .45;
  pointer-events: none;
}

.mpc-files-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  margin-bottom: 1rem;
  padding: .85rem;
  border: 1px solid #dbeafe;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 54%, #ffffff 100%);
  box-shadow: 0 16px 36px rgba(37, 99, 235, .07);
}

.mpc-files-search-wrap {
  position: relative;
  flex: 1 1 420px;
  min-width: 260px;
  display: flex;
  align-items: center;
}

.mpc-files-search-wrap > i {
  position: absolute;
  left: 16px;
  color: #2563eb;
  font-size: 1rem;
  pointer-events: none;
}

.mpc-files-search-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c7d2fe;
  border-radius: 16px;
  padding: .72rem 3.1rem .72rem 2.75rem;
  background: rgba(255, 255, 255, .94);
  color: #0f172a;
  font-size: .94rem;
  font-weight: 650;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 10px 24px rgba(37,99,235,.07);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mpc-files-search-input::placeholder {
  color: #64748b;
  font-weight: 600;
}

.mpc-files-search-input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12), 0 14px 30px rgba(37, 99, 235, .10);
}

.mpc-files-search-clear {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  background: #eff6ff;
  color: #2563eb;
  transition: transform .16s ease, background .16s ease;
}

.mpc-files-search-clear:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.mpc-files-search-meta {
  flex: 0 1 auto;
  max-width: 360px;
  color: #475569;
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 700;
  text-align: right;
}

.mpc-files-search-meta strong {
  color: #1d4ed8;
  font-weight: 900;
}

.mpc-files-breadcrumb-shell {
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #f8fafc;
  padding: .65rem .75rem;
  margin-bottom: 1rem;
}

.mpc-files-breadcrumb {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.mpc-files-crumb {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #2563eb;
  border-radius: 999px;
  padding: .45rem .72rem;
  font-size: .84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  transition: all .15s ease;
}

.mpc-files-crumb:hover {
  border-color: #bcd0ff;
  background: #eff6ff;
}

.mpc-files-crumb.active {
  background: #667085;
  color: #fff;
  border-color: #667085;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
}

.mpc-files-crumb-separator {
  color: #94a3b8;
  font-size: .75rem;
}

.mpc-files-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.mpc-files-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: .72rem;
  letter-spacing: .055em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
  padding: .85rem 1rem;
}

.mpc-files-table tbody td {
  padding: .9rem 1rem;
  border-bottom: 1px solid #edf2f7;
  color: #172033;
  font-size: .9rem;
}

.mpc-files-table tbody tr:last-child td {
  border-bottom: 0;
}

.mpc-files-table tbody tr:hover {
  background: #fbfdff;
}

.mpc-files-name-button {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: #0f172a;
  font-weight: 600;
  text-align: left;
}

.mpc-files-name-button:hover span:last-child {
  color: #2563eb;
  text-decoration: underline;
}

.mpc-files-file-name {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  font-weight: 550;
}

.mpc-files-row-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.mpc-files-row-icon.is-folder {
  background: #fff7d6;
  color: #eab308;
}

.mpc-files-row-icon.is-file {
  background: #eef4ff;
  color: #2563eb;
}


.mpc-file-format-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  max-width: 118px;
  padding: .32rem .58rem;
  border-radius: 999px;
  border: 1px solid #dbe4f0;
  background: #f8fafc;
  color: #334155;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.mpc-file-format-badge.is-folder {
  border-color: #fde68a;
  background: #fffbeb;
  color: #b45309;
}

.mpc-file-format-badge.is-file {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.mpc-file-actions-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
}

.mpc-file-action {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  border: 0;
  padding: 0;
  text-decoration: none;
}

.mpc-file-action.is-preview {
  background: #eaf1ff;
  color: #2563eb;
}

.mpc-file-action.is-download {
  background: #ecfdf5;
  color: #059669;
}

.mpc-file-action.is-edit {
  background: #fff7ed;
  color: #f97316;
}

.mpc-file-action.is-delete {
  background: #fff1f2;
  color: #e11d48;
}

.mpc-file-action:hover {
  filter: brightness(.97);
  transform: translateY(-1px);
}

.mpc-files-empty {
  margin-top: 1rem;
  border: 1px dashed #dbe4f0;
  border-radius: 18px;
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
  background: #fbfdff;
}

.mpc-files-empty i {
  font-size: 2rem;
  color: #94a3b8;
}

.mpc-files-empty h5 {
  margin: .6rem 0 .15rem;
  color: #172033;
  font-size: 1rem;
  font-weight: 650;
}

.mpc-files-empty p {
  margin: 0;
  font-size: .88rem;
}

.mpc-files-loading {
  position: relative;
}

.mpc-files-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .52);
  pointer-events: none;
}

@media (max-width: 768px) {
  .mpc-files-card-header {
    align-items: flex-start;
  }

  .mpc-files-actions {
    width: 100%;
  }

  .mpc-files-actions .btn {
    flex: 1 1 auto;
  }

  .mpc-files-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .mpc-files-search-wrap {
    min-width: 100%;
  }

  .mpc-files-search-meta {
    max-width: none;
    text-align: left;
  }

  .mpc-files-table thead th:nth-child(3),
  .mpc-files-table tbody td:nth-child(3) {
    display: none;
  }
}

/* Client Files upload progress modal */
.swal2-popup.mpc-files-progress-popup {
  border-radius: 28px !important;
  overflow: hidden !important;
  border: 1px solid rgba(148, 163, 184, .22) !important;
  box-shadow: 0 30px 90px rgba(2, 6, 23, .48) !important;
}

.mpc-file-upload-modal {
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .22), transparent 34%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, .14), transparent 30%),
    #050816;
  text-align: left;
}

.mpc-file-upload-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(37, 99, 235, .18);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, .22);
  font-size: 1.65rem;
  margin-bottom: 1.15rem;
}

.mpc-file-upload-title {
  color: #f8fafc;
  font-size: 1.18rem;
  font-weight: 650;
  letter-spacing: -.015em;
  margin-bottom: .35rem;
}

.mpc-file-upload-subtitle {
  color: #aebdd1;
  font-size: .92rem;
  line-height: 1.5;
  max-width: 430px;
  margin-bottom: 1.35rem;
}

.mpc-file-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #dbeafe;
  font-size: .82rem;
  margin-bottom: .55rem;
}

.mpc-file-progress-info strong {
  color: #fff;
  font-weight: 700;
}

.mpc-file-progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .2);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
}

.mpc-file-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #34d399);
  width: 0%;
  transition: width .2s ease;
  box-shadow: 0 0 22px rgba(96, 165, 250, .35);
}

.mpc-file-upload-detail {
  margin-top: .85rem;
  color: #94a3b8;
  font-size: .78rem;
}

/* Client Files - skipped upload files modal */
.mpc-skipped-files-popup{
  border:1px solid rgba(248,250,252,.12)!important;
  border-radius:24px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.45)!important;
  overflow:hidden!important;
}

.mpc-skipped-files-modal{
  padding:28px;
  text-align:left;
  background:
    radial-gradient(circle at top left, rgba(244,63,94,.22), transparent 34%),
    linear-gradient(145deg, #050816, #0f172a 68%, #111827);
}

.mpc-skipped-files-icon{
  width:54px;
  height:54px;
  border-radius:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(248,113,113,.16);
  color:#fca5a5;
  font-size:1.55rem;
  margin-bottom:16px;
}

.mpc-skipped-files-modal h3{
  margin:0 0 6px;
  color:#f8fafc;
  font-size:1.25rem;
  font-weight:650;
  letter-spacing:-.02em;
}

.mpc-skipped-files-modal p{
  margin:0 0 18px;
  color:#aeb8c8;
  font-size:.92rem;
}

.mpc-skipped-files-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-height:280px;
  overflow:auto;
  padding-right:4px;
}

.mpc-skipped-file-row{
  border:1px solid rgba(248,250,252,.11);
  background:rgba(15,23,42,.72);
  border-radius:16px;
  padding:12px 14px;
}

.mpc-skipped-file-name{
  color:#f8fafc;
  font-weight:600;
  font-size:.9rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.mpc-skipped-file-reason{
  color:#fca5a5;
  font-size:.8rem;
  margin-top:3px;
}

/* My Account */
.mpc-account-page{display:grid;gap:20px}.mpc-account-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 28px;border-radius:24px;background:radial-gradient(circle at 92% 18%,rgba(255,255,255,.22) 0,rgba(255,255,255,0) 30%),linear-gradient(135deg,#0f1f46 0%,#2557d6 56%,#0ea5e9 100%);color:#fff;box-shadow:0 20px 60px rgba(15,23,42,.12)}.mpc-account-hero:after{content:"";position:absolute;right:-140px;bottom:-210px;width:440px;height:440px;border-radius:50%;background:rgba(255,255,255,.12)}.mpc-account-hero-copy,.mpc-account-status-card{position:relative;z-index:1}.mpc-account-hero h2{margin:0;font-size:30px;line-height:1.08;font-weight:600;letter-spacing:-.035em}.mpc-account-hero p{max-width:780px;margin:10px 0 0;color:#dbeafe;line-height:1.65}.mpc-account-status-card{min-width:260px;display:flex;align-items:center;gap:13px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(8px)}.mpc-account-status-card strong{display:block;color:#fff;font-weight:600}.mpc-account-status-card span{display:block;color:#dbeafe;font-size:12px}.mpc-account-avatar-lg,.mpc-profile-avatar{display:grid;place-items:center;border-radius:18px;background:#fff;color:var(--mpc-primary);font-weight:700}.mpc-account-avatar-lg{width:52px;height:52px;font-size:22px}.mpc-profile-avatar{width:58px;height:58px;font-size:24px;background:var(--mpc-primary-soft)}.mpc-account-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.78fr);gap:20px;align-items:stretch}.mpc-account-card{overflow:hidden}.mpc-profile-summary{display:flex;align-items:center;gap:14px;padding:16px;border-radius:18px;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);border:1px solid var(--mpc-border)}.mpc-profile-summary h4{margin:0;font-size:18px;font-weight:600;letter-spacing:-.02em}.mpc-profile-summary p{margin:3px 0 0;color:var(--mpc-muted)}.mpc-account-info-list{display:grid;gap:10px}.mpc-account-info-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 14px;border-radius:14px;background:#f8fafc;border:1px solid var(--mpc-border)}.mpc-account-info-item span{color:var(--mpc-muted);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.mpc-account-info-item strong{font-size:13px;color:var(--mpc-text);font-weight:600;text-align:right}.mpc-account-activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.mpc-account-activity-item{padding:16px;border-radius:17px;background:#f8fafc;border:1px solid var(--mpc-border)}.mpc-account-activity-item i{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;margin-bottom:12px;background:var(--mpc-primary-soft);color:var(--mpc-primary);font-size:17px}.mpc-account-activity-item span{display:block;color:var(--mpc-muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;font-weight:600}.mpc-account-activity-item strong{display:block;margin-top:4px;font-size:13px;color:var(--mpc-text);font-weight:600}.mpc-user-chip{color:var(--mpc-text)}.mpc-user-chip:hover{color:var(--mpc-text);border-color:#cbd5e1;background:#f8fafc}
@media (max-width:991.98px){.mpc-account-hero{align-items:flex-start;flex-direction:column}.mpc-account-status-card{min-width:0;width:100%}.mpc-account-grid{grid-template-columns:1fr}.mpc-account-activity-grid{grid-template-columns:1fr}}
@media (max-width:575.98px){.mpc-account-hero{padding:22px}.mpc-account-hero h2{font-size:24px}.mpc-account-info-item{align-items:flex-start;flex-direction:column}.mpc-account-info-item strong{text-align:left}}


/* My Account icon polish */
.mpc-account-page .mpc-section-title{
  align-items:center;
  gap:14px;
}

.mpc-account-title-icon{
  flex:0 0 48px;
  width:48px;
  height:48px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#eef4ff 0%,#e8f0ff 100%);
  border:1px solid #dbe7ff;
  color:var(--mpc-primary);
  box-shadow:0 10px 24px rgba(37,99,235,.08);
}

.mpc-account-title-icon i{
  display:block;
  font-size:22px;
  line-height:1;
}

.mpc-account-page .card-header.mpc-card-header-clean{
  min-height:78px;
}

.mpc-account-page .mpc-section-title h3{
  font-size:20px;
  font-weight:600;
  letter-spacing:-.02em;
}

.mpc-account-page .mpc-section-title span:not(.mpc-account-title-icon){
  font-size:13px;
  color:#64748b;
}

/* My Account final icon alignment + modern topbar access */
.mpc-account-card-head{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  min-width:0;
}
.mpc-account-svg-icon{
  width:52px;
  height:52px;
  min-width:52px;
  flex:0 0 52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:linear-gradient(180deg,#eef4ff 0%,#e8f0ff 100%);
  border:1px solid #dbe7ff;
  color:var(--mpc-primary);
  box-shadow:0 10px 24px rgba(37,99,235,.08);
}
.mpc-account-svg-icon svg{
  width:25px;
  height:25px;
  display:block;
  flex:0 0 auto;
}
.mpc-account-card-title{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.mpc-account-card-title h3{
  margin:0;
  font-size:20px;
  line-height:1.15;
  font-weight:600;
  letter-spacing:-.02em;
  color:var(--mpc-text);
}
.mpc-account-card-title span{
  display:block;
  margin-top:4px;
  font-size:13px;
  line-height:1.3;
  color:#64748b;
}
.mpc-account-page .card-header.mpc-card-header-clean{
  min-height:84px;
  display:flex;
  align-items:center;
}
.mpc-account-page .mpc-section-title,
.mpc-account-page .mpc-account-title-icon{
  display:none!important;
}
.mpc-account-topbar-link{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:5px 7px 5px 5px;
  border-radius:999px;
  border:1px solid #dbe3ef;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  color:var(--mpc-text);
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  transition:.18s ease;
}
.mpc-account-topbar-link:hover,
.mpc-account-topbar-link:focus{
  color:var(--mpc-text);
  border-color:#bfdbfe;
  background:#f8fbff;
  box-shadow:0 14px 34px rgba(37,99,235,.12);
  transform:translateY(-1px);
}
.mpc-topbar-avatar{
  width:36px;
  height:36px;
  min-width:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:linear-gradient(135deg,#2563eb 0%,#60a5fa 100%);
  color:#fff;
  font-size:14px;
  font-weight:700;
  box-shadow:0 8px 20px rgba(37,99,235,.22);
}
.mpc-topbar-user-copy{
  flex-direction:column;
  min-width:0;
  padding-right:2px;
  line-height:1.15;
}
.mpc-topbar-user-label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#64748b;
  font-weight:700;
}
.mpc-topbar-user-name{
  max-width:160px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin-top:2px;
  font-size:12px;
  color:#0f172a;
  font-weight:600;
}
.mpc-topbar-user-arrow{
  width:26px;
  height:26px;
  place-items:center;
  border-radius:50%;
  background:#eef4ff;
  color:var(--mpc-primary);
  font-size:12px;
}
@media (max-width:767.98px){
  .mpc-account-topbar-link{padding-right:5px;}
  .mpc-topbar-avatar{width:34px;height:34px;min-width:34px;}
}

/* Sidebar collapse + language switch + footer trademark */
.mpc-sidebar,
.mpc-shell,
.mpc-brand-copy,
.mpc-nav-label,
.mpc-nav-link span,
.mpc-nav-link small,
.mpc-session-box div,
.mpc-sidebar-collapse-btn i{
  transition:all .2s ease;
}

.mpc-sidebar-brand{
  justify-content:space-between;
  gap:12px;
}

.mpc-sidebar-collapse-btn{
  width:36px;
  height:36px;
  min-width:36px;
  border:1px solid rgba(148,163,184,.22);
  background:rgba(255,255,255,.07);
  color:#dbeafe;
  border-radius:12px;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:.18s ease;
}
.mpc-sidebar-collapse-btn:hover,
.mpc-sidebar-collapse-btn:focus{
  background:rgba(255,255,255,.14);
  color:#fff;
  border-color:rgba(191,219,254,.45);
  outline:none;
}

.mpc-sidebar-collapsed .mpc-sidebar{
  width:86px;
}
.mpc-sidebar-collapsed .mpc-shell{
  margin-left:86px;
}
.mpc-sidebar-collapsed .mpc-sidebar-brand{
  padding:0 14px;
  justify-content:center;
}
.mpc-sidebar-collapsed .mpc-brand{
  justify-content:center;
}
.mpc-sidebar-collapsed .mpc-brand-copy,
.mpc-sidebar-collapsed .mpc-nav-label,
.mpc-sidebar-collapsed .mpc-nav-link span,
.mpc-sidebar-collapsed .mpc-nav-link small,
.mpc-sidebar-collapsed .mpc-session-box div{
  opacity:0;
  visibility:hidden;
  width:0;
  max-width:0;
  overflow:hidden;
  white-space:nowrap;
}
.mpc-sidebar-collapsed .mpc-sidebar-collapse-btn{
  position:absolute;
  right:9px;
  top:58px;
  width:30px;
  height:30px;
  min-width:30px;
  border-radius:10px;
  background:#fff;
  color:var(--mpc-primary);
  box-shadow:0 10px 28px rgba(15,23,42,.22);
}
.mpc-sidebar-collapsed .mpc-sidebar-nav{
  padding:38px 12px 20px;
}
.mpc-sidebar-collapsed .mpc-nav-link{
  justify-content:center;
  padding:0;
  gap:0;
  width:52px;
  margin-left:auto;
  margin-right:auto;
}
.mpc-sidebar-collapsed .mpc-nav-link i{
  width:auto;
  font-size:18px;
}
.mpc-sidebar-collapsed .mpc-sidebar-footer{
  padding:14px 12px 18px;
}
.mpc-sidebar-collapsed .mpc-session-box{
  justify-content:center;
  padding:12px;
  border-radius:15px;
}
.mpc-sidebar-collapsed .mpc-session-box i{
  font-size:19px;
}

.mpc-language-btn{
  min-width:70px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:2px;
  border-color:#bfd0ff;
  color:var(--mpc-primary);
  background:#f8fbff;
}
.mpc-language-btn:hover,
.mpc-language-btn:focus{
  background:var(--mpc-primary);
  border-color:var(--mpc-primary);
  color:#fff;
}

.mpc-footer{
  font-weight:500;
}
.mpc-footer-legal{
  color:#94a3b8;
}

@media (max-width:991.98px){
  .mpc-sidebar-collapsed .mpc-sidebar{
    width:292px;
  }
  .mpc-sidebar-collapsed .mpc-shell{
    margin-left:0;
  }
  .mpc-sidebar-collapsed .mpc-brand-copy,
  .mpc-sidebar-collapsed .mpc-nav-label,
  .mpc-sidebar-collapsed .mpc-nav-link span,
  .mpc-sidebar-collapsed .mpc-nav-link small,
  .mpc-sidebar-collapsed .mpc-session-box div{
    opacity:1;
    visibility:visible;
    width:auto;
    max-width:none;
    overflow:visible;
  }
  .mpc-sidebar-collapsed .mpc-sidebar-brand{
    padding:0 24px;
    justify-content:space-between;
  }
  .mpc-sidebar-collapsed .mpc-sidebar-collapse-btn{
    position:static;
    width:36px;
    height:36px;
    min-width:36px;
    background:rgba(255,255,255,.07);
    color:#dbeafe;
    box-shadow:none;
  }
  .mpc-sidebar-collapsed .mpc-sidebar-nav{
    padding:20px 16px;
  }
  .mpc-sidebar-collapsed .mpc-nav-link{
    justify-content:flex-start;
    padding:0 12px;
    gap:11px;
    width:auto;
  }
  .mpc-sidebar-collapsed .mpc-nav-link i{
    width:22px;
  }
  .mpc-sidebar-collapsed .mpc-sidebar-footer{
    padding:18px 20px 24px;
  }
  .mpc-sidebar-collapsed .mpc-session-box{
    justify-content:flex-start;
    padding:14px;
  }
}

/* Language confirmation modal */
.mpc-language-modal {
  border-radius: 22px !important;
  box-shadow: 0 24px 80px rgba(15, 23, 42, .22) !important;
}

/* Modern Dashboard refresh */
.mpc-dashboard-hero{
  position:relative;
  overflow:hidden;
  margin-bottom:22px;
  border-radius:28px;
  background:linear-gradient(135deg,#0b1220 0%,#193d8f 48%,#0ea5e9 100%);
  box-shadow:0 24px 70px rgba(15,23,42,.16);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
}
.mpc-dashboard-hero-bg::before,
.mpc-dashboard-hero-bg::after{
  content:"";
  position:absolute;
  border-radius:999px;
  pointer-events:none;
}
.mpc-dashboard-hero-bg::before{
  width:520px;height:520px;
  right:-180px;bottom:-260px;
  background:rgba(255,255,255,.12);
}
.mpc-dashboard-hero-bg::after{
  width:280px;height:280px;
  left:48%;top:-150px;
  background:rgba(14,165,233,.28);
  filter:blur(4px);
}
.mpc-dashboard-hero-content{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  padding:32px;
}
.mpc-dashboard-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  margin-bottom:14px;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  border:1px solid rgba(255,255,255,.16);
  color:#eaf2ff;
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
}
.mpc-dashboard-hero h1{
  margin:0;
  font-size:34px;
  line-height:1.08;
  letter-spacing:-.045em;
  font-weight:650;
}
.mpc-dashboard-hero p{
  max-width:820px;
  margin:12px 0 0;
  color:#dbeafe;
  line-height:1.7;
  font-size:14px;
}
.mpc-dashboard-hero-panel{
  min-width:245px;
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
}
.mpc-dashboard-panel-label{
  display:block;
  color:#bfdbfe;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.mpc-dashboard-hero-panel strong{
  display:block;
  margin-top:6px;
  font-size:34px;
  line-height:1;
  color:#fff;
  letter-spacing:-.05em;
}
.mpc-dashboard-hero-panel small{
  display:block;
  margin-top:10px;
  color:#dbeafe;
  font-size:12px;
}
.mpc-dashboard-progress{
  height:9px;
  margin-top:14px;
  border-radius:999px;
  background:rgba(255,255,255,.22);
  overflow:hidden;
}
.mpc-dashboard-progress .progress-bar{
  border-radius:999px;
  background:linear-gradient(90deg,#60a5fa,#22c55e);
}
.mpc-dashboard-progress.slim{
  height:8px;
  margin-top:0;
  background:#edf2f7;
}
.mpc-dashboard-kpi-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}
.mpc-dashboard-kpi{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--mpc-border);
  box-shadow:var(--mpc-shadow-sm);
}
.mpc-dashboard-kpi-icon{
  width:54px;
  min-width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-size:23px;
  background:var(--mpc-primary-soft);
  color:var(--mpc-primary);
}
.mpc-dashboard-kpi.info .mpc-dashboard-kpi-icon{background:#ecfeff;color:#0891b2}
.mpc-dashboard-kpi.purple .mpc-dashboard-kpi-icon{background:#f3e8ff;color:#7c3aed}
.mpc-dashboard-kpi.warning .mpc-dashboard-kpi-icon{background:#fff7ed;color:#d97706}
.mpc-dashboard-kpi span{
  display:block;
  font-size:12px;
  color:var(--mpc-muted);
  text-transform:uppercase;
  letter-spacing:.055em;
  font-weight:650;
}
.mpc-dashboard-kpi strong{
  display:block;
  margin-top:4px;
  font-size:28px;
  line-height:1;
  letter-spacing:-.045em;
  color:var(--mpc-text);
}
.mpc-dashboard-kpi small{
  display:block;
  margin-top:7px;
  color:#64748b;
  font-size:12px;
}
.mpc-dashboard-card{
  border-radius:24px;
  overflow:hidden;
}
.mpc-dashboard-card .card-header{
  padding:20px 22px;
}
.mpc-dashboard-chart-wrap{
  position:relative;
  min-height:265px;
  border-radius:20px;
  background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);
  border:1px solid #eef2f7;
  padding:16px;
}
.mpc-dashboard-module-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.mpc-dashboard-module{
  min-height:112px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:15px;
  border-radius:18px;
  border:1px solid var(--mpc-border);
  background:#fff;
  color:var(--mpc-text);
  transition:.18s ease;
}
.mpc-dashboard-module.active:hover{
  transform:translateY(-2px);
  border-color:#bcd0ff;
  box-shadow:0 16px 34px rgba(37,87,214,.1);
}
.mpc-dashboard-module.locked{
  background:#f8fafc;
  color:#475569;
}
.mpc-dashboard-module-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:var(--mpc-primary-soft);
  color:var(--mpc-primary);
  font-size:20px;
}
.mpc-dashboard-module strong{
  display:block;
  font-size:13px;
  color:#172033;
}
.mpc-dashboard-module span:not(.badge){
  display:block;
  margin-top:4px;
  color:var(--mpc-muted);
  line-height:1.45;
  font-size:12px;
}
.mpc-dashboard-health-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.mpc-dashboard-health-row strong{
  display:block;
  font-size:14px;
}
.mpc-dashboard-health-row span{
  display:block;
  color:var(--mpc-muted);
  font-size:12px;
  margin-top:3px;
}
.mpc-dashboard-health-row b{
  font-size:22px;
  color:var(--mpc-primary);
  letter-spacing:-.04em;
}
.mpc-dashboard-priority-list{
  display:grid;
  gap:10px;
  margin-top:8px;
}
.mpc-dashboard-priority-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid var(--mpc-border);
  border-radius:16px;
  background:#fff;
}
.mpc-dashboard-priority-item>span{
  width:38px;
  height:38px;
  border-radius:13px;
  display:grid;
  place-items:center;
}
.mpc-dashboard-priority-item>span.danger{background:#fef2f2;color:var(--mpc-danger)}
.mpc-dashboard-priority-item>span.warning{background:#fff7ed;color:var(--mpc-warning)}
.mpc-dashboard-priority-item>span.info{background:#eff6ff;color:var(--mpc-info)}
.mpc-dashboard-priority-item strong{
  display:block;
  font-size:19px;
  line-height:1;
}
.mpc-dashboard-priority-item small{
  display:block;
  margin-top:4px;
  color:var(--mpc-muted);
}
.mpc-dashboard-pulse-card{
  position:relative;
  overflow:hidden;
  padding:20px;
  border-radius:20px;
  background:linear-gradient(135deg,#2557d6,#0ea5e9);
  color:#fff;
}
.mpc-dashboard-pulse-card::after{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-70px;
  bottom:-90px;
  border-radius:50%;
  background:rgba(255,255,255,.15);
}
.mpc-dashboard-pulse-card.light{
  background:linear-gradient(135deg,#0f172a,#334155);
}
.mpc-dashboard-pulse-card span{
  display:block;
  position:relative;
  z-index:1;
  color:#dbeafe;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:650;
}
.mpc-dashboard-pulse-card strong{
  display:block;
  position:relative;
  z-index:1;
  margin-top:8px;
  font-size:40px;
  line-height:1;
  color:#fff;
  letter-spacing:-.06em;
}
.mpc-dashboard-pulse-card small{
  display:block;
  position:relative;
  z-index:1;
  margin-top:8px;
  color:#e0f2fe;
}
.mpc-dashboard-activity-list{
  display:grid;
  gap:10px;
}
.mpc-dashboard-activity-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border:1px solid var(--mpc-border);
  border-radius:16px;
  background:#fff;
}
.mpc-dashboard-activity-icon{
  width:38px;
  height:38px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:var(--mpc-primary-soft);
  color:var(--mpc-primary);
}
.mpc-dashboard-activity-item strong{
  display:block;
  font-size:13px;
  color:#172033;
}
.mpc-dashboard-activity-item span{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--mpc-muted);
  font-size:12px;
  margin-top:2px;
}
.mpc-dashboard-activity-item small{
  white-space:nowrap;
  color:#94a3b8;
  font-size:11px;
}
.mpc-dashboard-empty{
  min-height:260px;
  display:grid;
  place-items:center;
  text-align:center;
  color:var(--mpc-muted);
}
.mpc-dashboard-empty i{
  font-size:40px;
  color:#cbd5e1;
}
.mpc-dashboard-empty strong{
  display:block;
  margin-top:10px;
  color:#334155;
}
.mpc-dashboard-empty span{
  max-width:330px;
  font-size:12px;
}
@media (max-width:1399.98px){
  .mpc-dashboard-module-grid{grid-template-columns:1fr;}
}
@media (max-width:1199.98px){
  .mpc-dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:991.98px){
  .mpc-dashboard-hero-content{align-items:flex-start;flex-direction:column;padding:26px;}
  .mpc-dashboard-hero-panel{width:100%;}
}
@media (max-width:767.98px){
  .mpc-dashboard-hero h1{font-size:26px;}
  .mpc-dashboard-kpi-grid{grid-template-columns:1fr;}
  .mpc-dashboard-activity-item{grid-template-columns:auto minmax(0,1fr);}
  .mpc-dashboard-activity-item small{grid-column:2;white-space:normal;}
}

/* Client header actions visual alignment patch
   Applies to Create / Edit / View Client main card action buttons only. */
.mpc-create-page .mpc-card-header-client .mpc-main-card-tools,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools{
  align-items:center;
  gap:12px;
}

.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .btn,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .btn{
  min-height:46px;
  padding:0 18px;
  border-radius:16px!important;
  font-size:14px;
  font-weight:650;
  letter-spacing:.01em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-width:1px!important;
  box-shadow:0 14px 34px rgba(15,23,42,.10)!important;
  transition:transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
}

.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .btn:hover,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .btn:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 40px rgba(15,23,42,.14)!important;
}

.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .btn i,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .btn i{
  font-size:1rem;
  line-height:1;
}


/* Edit Client - Save button must be green */
.mpc-save-client-highlight,
.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .mpc-save-client-highlight{
  color:#15803d!important;
  background:linear-gradient(135deg,#ecfdf3 0%,#dcfce7 58%,#f0fdf4 100%)!important;
  border-color:rgba(22,163,74,.24)!important;
  box-shadow:0 14px 34px rgba(22,163,74,.16)!important;
}
.mpc-save-client-highlight:hover,
.mpc-save-client-highlight:focus,
.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .mpc-save-client-highlight:hover,
.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .mpc-save-client-highlight:focus{
  color:#166534!important;
  background:linear-gradient(135deg,#dcfce7 0%,#bbf7d0 58%,#ecfdf3 100%)!important;
  border-color:rgba(22,163,74,.34)!important;
  box-shadow:0 18px 42px rgba(22,163,74,.22)!important;
}

/* Save / Create / Schedule - corporate blue */
.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .btn-primary,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-schedule-client-btn{
  color:#1d4ed8!important;
  background:linear-gradient(135deg,#eef4ff 0%,#dbeafe 58%,#eff6ff 100%)!important;
  border-color:rgba(37,87,214,.18)!important;
  box-shadow:0 14px 34px rgba(37,87,214,.16)!important;
}
.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .btn-primary:hover,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-schedule-client-btn:hover{
  color:#1e40af!important;
  background:linear-gradient(135deg,#dbeafe 0%,#bfdbfe 58%,#e0f2fe 100%)!important;
  border-color:rgba(37,87,214,.26)!important;
  box-shadow:0 18px 42px rgba(37,87,214,.22)!important;
}

/* Client Meetings - refined compact action */
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-client-meetings-btn{
  position:relative;
  isolation:isolate;
  min-width:168px;
  color:#0f3fb8!important;
  background:linear-gradient(135deg,#f7fbff 0%,#eaf2ff 54%,#f8fbff 100%)!important;
  border:1px solid rgba(37,99,235,.22)!important;
  box-shadow:0 12px 28px rgba(37,99,235,.12)!important;
  overflow:hidden;
}
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-client-meetings-btn::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(circle at 18% 20%,rgba(59,130,246,.16),transparent 34%);
  z-index:-1;
}
.mpc-client-meetings-icon{
  width:28px;
  height:28px;
  border-radius:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);
  box-shadow:0 8px 18px rgba(37,99,235,.26);
  flex:0 0 auto;
}
.mpc-client-meetings-icon i{
  font-size:.92rem!important;
}
.mpc-client-meetings-text{
  white-space:nowrap;
  font-weight:750;
  letter-spacing:.005em;
}
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-client-meetings-btn:hover,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-client-meetings-btn:focus{
  color:#123a9c!important;
  background:linear-gradient(135deg,#edf5ff 0%,#dbeafe 54%,#f8fbff 100%)!important;
  border-color:rgba(37,99,235,.36)!important;
  box-shadow:0 18px 40px rgba(37,99,235,.18)!important;
}
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-client-meetings-btn:hover .mpc-client-meetings-icon,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-client-meetings-btn:focus .mpc-client-meetings-icon{
  background:linear-gradient(135deg,#1d4ed8 0%,#1e40af 100%);
}



/* Shared Client Meetings modal - wide landscape card for Individual and Business clients */
.swal2-container.mpc-meetings-container{
  padding:clamp(18px,2vw,34px)!important;
}
.swal2-container.mpc-meetings-container .swal2-popup.mpc-meetings-swal,
.swal2-popup.mpc-meetings-swal{
  width:85vw!important;
  max-width:1440px!important;
  min-width:980px!important;
  padding:0!important;
  border-radius:26px!important;
  overflow:hidden!important;
  background:#ffffff!important;
  border:1px solid rgba(226,232,240,.96)!important;
  box-shadow:0 30px 90px rgba(15,23,42,.26)!important;
}
.swal2-popup.mpc-meetings-swal .swal2-html-container{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
  background:#ffffff!important;
}
.swal2-popup.mpc-meetings-swal .swal2-close{
  width:44px!important;
  height:44px!important;
  top:18px!important;
  right:20px!important;
  border-radius:16px!important;
  color:#64748b!important;
  background:#ffffff!important;
  border:1px solid rgba(226,232,240,.95)!important;
  box-shadow:0 12px 28px rgba(15,23,42,.10)!important;
  transition:.18s ease!important;
}
.swal2-popup.mpc-meetings-swal .swal2-close:hover{
  color:#0f172a!important;
  background:#f8fafc!important;
  transform:translateY(-1px)!important;
}
.swal2-popup.mpc-meetings-swal .swal2-actions{
  width:100%!important;
  justify-content:flex-end!important;
  margin:0!important;
  padding:1rem 1.55rem 1.25rem!important;
  background:#ffffff!important;
  border-top:1px solid rgba(226,232,240,.95)!important;
}
.swal2-popup.mpc-meetings-swal .mpc-meetings-close-btn{
  min-width:124px!important;
  height:46px!important;
  border-radius:14px!important;
  font-weight:850!important;
  color:#ffffff!important;
  background:linear-gradient(135deg,#2563eb 0%,#0ea5e9 100%)!important;
  border:1px solid rgba(37,99,235,.18)!important;
  box-shadow:0 14px 32px rgba(37,99,235,.20)!important;
}
.swal2-popup.mpc-meetings-swal .mpc-meetings-close-btn:hover{
  color:#ffffff!important;
  background:linear-gradient(135deg,#1d4ed8 0%,#0284c7 100%)!important;
  box-shadow:0 18px 38px rgba(37,99,235,.24)!important;
}
.mpc-client-meetings-modal{
  width:100%;
  text-align:left;
  background:#ffffff;
}
.mpc-client-meetings-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.25rem;
  padding:1.55rem 4.75rem 1.55rem 1.75rem;
  background:linear-gradient(135deg,#f8fbff 0%,#eef5ff 52%,#ffffff 100%);
  border-bottom:1px solid rgba(226,232,240,.95);
}
.mpc-client-meetings-title-row{
  display:flex;
  align-items:center;
  gap:1rem;
  min-width:0;
}
.mpc-client-meetings-title-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#1d4ed8;
  background:linear-gradient(135deg,#eaf2ff 0%,#dbeafe 100%);
  border:1px solid rgba(37,99,235,.16);
  box-shadow:0 14px 34px rgba(37,99,235,.12);
  flex:0 0 auto;
}
.mpc-client-meetings-title-icon i{
  font-size:1.25rem;
}
.mpc-client-meetings-kicker{
  display:block;
  color:#2563eb;
  font-size:.74rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:.18rem;
}
.mpc-client-meetings-head h3{
  margin:0;
  color:#071733;
  font-size:1.28rem;
  font-weight:850;
  letter-spacing:-.02em;
  line-height:1.2;
}
.mpc-client-meetings-head p{
  margin:.22rem 0 0;
  color:#64748b;
  font-size:.92rem;
  font-weight:650;
}
.mpc-client-meetings-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  border:1px solid rgba(37,99,235,.18);
  background:#ffffff;
  color:#1d4ed8;
  padding:.58rem .9rem;
  border-radius:999px;
  white-space:nowrap;
  font-size:.78rem;
  font-weight:850;
  box-shadow:0 10px 24px rgba(37,99,235,.08);
  flex:0 0 auto;
}
.mpc-client-meetings-body{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:1.2rem;
  padding:1.35rem 1.55rem 1.45rem;
  background:#ffffff;
  max-height:calc(100vh - 250px);
  overflow:auto;
}
.mpc-client-meetings-stats{
  display:grid;
  grid-template-columns:1fr;
  gap:.9rem;
  margin:0;
  align-self:start;
}
.mpc-client-meetings-stat{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border:1px solid rgba(226,232,240,.95);
  border-radius:18px;
  padding:1rem 1.05rem;
  box-shadow:0 12px 30px rgba(15,23,42,.05);
}
.mpc-client-meetings-stat small{
  display:block;
  color:#64748b;
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:850;
}
.mpc-client-meetings-stat strong{
  display:block;
  color:#0f172a;
  font-size:1.65rem;
  line-height:1.1;
  margin-top:.28rem;
  font-weight:900;
}
.mpc-client-meetings-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:1rem;
  align-items:start;
  min-width:0;
}
.mpc-client-meetings-panel{
  min-width:0;
  background:#ffffff;
  border:1px solid rgba(226,232,240,.95);
  border-radius:20px;
  padding:1rem;
  box-shadow:0 14px 34px rgba(15,23,42,.05);
}
.mpc-client-meetings-panel-wide{
  grid-column:1 / -1;
}
.mpc-client-meetings-section-title{
  display:flex;
  align-items:center;
  color:#0f172a;
  font-weight:850;
  font-size:.86rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin:0 0 .75rem;
}
.mpc-client-meetings-section-title i{
  color:#2563eb;
}
.mpc-client-meetings-list{
  display:grid;
  gap:.75rem;
}
.mpc-client-meeting-item{
  display:grid;
  grid-template-columns:84px minmax(0,1fr) auto;
  gap:.95rem;
  align-items:center;
  background:#ffffff;
  border:1px solid rgba(226,232,240,.95);
  border-radius:18px;
  padding:.92rem;
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.mpc-client-meeting-date{
  border-radius:15px;
  background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);
  border:1px solid rgba(37,99,235,.16);
  padding:.62rem .5rem;
  text-align:center;
  color:#1d4ed8;
  font-weight:900;
  font-size:1.1rem;
}
.mpc-client-meeting-date small{
  display:block;
  color:#2563eb;
  text-transform:uppercase;
  font-size:.68rem;
  letter-spacing:.08em;
  font-weight:900;
}
.mpc-client-meeting-copy strong{
  display:block;
  color:#0f172a;
  font-size:.96rem;
  margin-bottom:.28rem;
  font-weight:850;
}
.mpc-client-meeting-copy span{
  color:#64748b;
  font-size:.83rem;
  display:block;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.mpc-client-meeting-copy i{
  color:#2563eb;
}
.mpc-client-meeting-badges{
  display:flex;
  gap:.4rem;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.mpc-client-meeting-badge{
  border-radius:999px;
  padding:.32rem .58rem;
  font-size:.7rem;
  font-weight:850;
  color:#1d4ed8;
  background:#eff6ff;
  border:1px solid rgba(37,99,235,.16);
  text-transform:capitalize;
}
.mpc-client-meeting-badge.is-past{
  background:#f8fafc;
  border-color:#e2e8f0;
  color:#64748b;
}
.mpc-client-meetings-empty{
  min-height:170px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  border:1px dashed rgba(148,163,184,.5);
  border-radius:18px;
  padding:2.15rem 1.25rem;
  text-align:center;
  color:#64748b;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}
.mpc-client-meetings-empty i{
  display:block;
  font-size:1.85rem;
  color:#2563eb;
}
@media (max-width: 1199.98px){
  .swal2-container.mpc-meetings-container .swal2-popup.mpc-meetings-swal,
  .swal2-popup.mpc-meetings-swal{
    width:calc(100vw - 24px)!important;
    max-width:calc(100vw - 24px)!important;
    min-width:0!important;
  }
  .mpc-client-meetings-body{
    grid-template-columns:1fr;
  }
  .mpc-client-meetings-stats{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width: 767.98px){
  .mpc-client-meetings-head{
    align-items:flex-start;
    flex-direction:column;
    padding:1.2rem 4rem 1.2rem 1.2rem;
  }
  .mpc-client-meetings-title-row{
    align-items:flex-start;
  }
  .mpc-client-meetings-head h3{
    font-size:1.08rem;
  }
  .mpc-client-meetings-body{
    padding:1.05rem;
    max-height:70vh;
  }
  .mpc-client-meetings-stats,
  .mpc-client-meetings-grid{
    grid-template-columns:1fr;
  }
  .mpc-client-meetings-panel-wide{
    grid-column:auto;
  }
  .mpc-client-meeting-item{
    grid-template-columns:1fr;
  }
  .mpc-client-meeting-date{
    width:84px;
  }
  .mpc-client-meeting-badges{
    justify-content:flex-start;
  }
}

/* Individual Summary - soft red, harmonized with Client Code badge */
.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .mpc-pdf-preview-btn,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-pdf-preview-btn{
  color:#dc2626!important;
  background:linear-gradient(135deg,#fff1f2 0%,#ffe4e6 58%,#fff7f7 100%)!important;
  border-color:rgba(220,38,38,.18)!important;
  box-shadow:0 14px 34px rgba(220,38,38,.14)!important;
}
.mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .mpc-pdf-preview-btn:hover,
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .mpc-pdf-preview-btn:hover{
  color:#b91c1c!important;
  background:linear-gradient(135deg,#fee2e2 0%,#fecaca 58%,#fff1f2 100%)!important;
  border-color:rgba(220,38,38,.26)!important;
  box-shadow:0 18px 42px rgba(220,38,38,.18)!important;
}

/* Edit - soft amber/orange, harmonized with Client Code badge */
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .btn-light-warning{
  color:#d97706!important;
  background:linear-gradient(135deg,#fff7ed 0%,#ffedd5 58%,#fffaf3 100%)!important;
  border-color:rgba(217,119,6,.18)!important;
  box-shadow:0 14px 34px rgba(217,119,6,.14)!important;
}
.mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .btn-light-warning:hover{
  color:#b45309!important;
  background:linear-gradient(135deg,#ffedd5 0%,#fed7aa 58%,#fff7ed 100%)!important;
  border-color:rgba(217,119,6,.26)!important;
  box-shadow:0 18px 42px rgba(217,119,6,.18)!important;
}

/* Keep Client Code as the visual reference and align all items in one row */
.mpc-create-page .mpc-card-header-client .client-code-banner,
.mpc-view-page .mpc-card-header-client .client-code-banner{
  min-height:46px;
  padding:0 18px;
  border-radius:16px;
  box-shadow:0 14px 34px rgba(37,87,214,.16)!important;
}

@media (max-width:767.98px){
  .mpc-create-page .mpc-card-header-client .mpc-main-card-tools > .btn,
  .mpc-view-page .mpc-card-header-client .mpc-main-card-tools > .btn,
  .mpc-create-page .mpc-card-header-client .client-code-banner,
  .mpc-view-page .mpc-card-header-client .client-code-banner{
    width:100%;
  }
}

/* Advanced Address module */
.mpc-address-mode-toggle {
    display: inline-flex;
    gap: .75rem;
    padding: .35rem;
    border-radius: 18px;
    background: #f4f7fb;
    border: 1px solid #e4eaf3;
}

.mpc-address-mode {
    min-width: 150px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1.05rem;
    border-radius: 14px;
    cursor: pointer;
    color: #64748b;
    font-weight: 600;
    transition: all .18s ease;
}

.mpc-address-mode input {
    display: none;
}

.mpc-address-mode.active {
    color: #0f3ea8;
    background: linear-gradient(135deg, #ffffff 0%, #ecf4ff 100%);
    box-shadow: 0 10px 26px rgba(42, 87, 216, .15);
}

.mpc-zip-choice-wrap {
    display: grid;
    gap: .75rem;
    text-align: left;
}

.mpc-zip-choice {
    width: 100%;
    border: 1px solid #dbe6f5;
    background: #ffffff;
    border-radius: 16px;
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: all .16s ease;
}

.mpc-zip-choice:hover {
    border-color: #2457d6;
    box-shadow: 0 10px 24px rgba(36, 87, 214, .14);
    transform: translateY(-1px);
}

.mpc-zip-choice strong {
    color: #10204f;
    font-size: 1rem;
}

.mpc-zip-choice span {
    color: #64748b;
    font-size: .875rem;
}

/* Family member profile modal */
.mpc-family-profile-popup {
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55) !important;
}

.mpc-family-profile-html {
  margin: 0 !important;
  padding: 0 !important;
}

.mpc-family-profile-modal {
  text-align: left;
  color: #e5e7eb;
}

.mpc-family-profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.5rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .32), transparent 42%),
    linear-gradient(135deg, #0f172a 0%, #111827 54%, #1e1b4b 100%);
  border: 1px solid rgba(148, 163, 184, .18);
  margin-bottom: 1rem;
}

.mpc-family-profile-hero span {
  display: inline-flex;
  margin-bottom: .25rem;
  color: #93c5fd;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mpc-family-profile-hero h3 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.mpc-family-profile-hero p {
  margin: .25rem 0 0;
  color: #cbd5e1;
}

.mpc-family-profile-code {
  white-space: nowrap;
  border-radius: 999px;
  padding: .55rem .9rem;
  color: #bfdbfe;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(191, 219, 254, .18);
  font-weight: 800;
  font-size: .78rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.mpc-family-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 .1rem;
}

.mpc-family-profile-grid label {
  display: block;
  margin-bottom: .35rem;
  color: #cbd5e1;
  font-size: .82rem;
  font-weight: 700;
}

.mpc-family-profile-grid .form-control {
  color: #f8fafc;
  background: rgba(15, 23, 42, .78);
  border-color: rgba(148, 163, 184, .28);
  border-radius: 14px;
}

.mpc-family-profile-grid .form-control:focus {
  background: rgba(15, 23, 42, .92);
  border-color: #60a5fa;
  box-shadow: 0 0 0 .2rem rgba(96, 165, 250, .16);
  color: #fff;
}

.mpc-family-profile-grid .form-control:disabled {
  opacity: 1;
  color: #dbeafe;
  background: rgba(15, 23, 42, .52);
}

.mpc-family-profile-wide {
  grid-column: 1 / -1;
}

.mpc-family-check {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: .65rem;
  margin: .15rem 0 0;
  padding: .85rem 1rem;
  border-radius: 16px;
  background: rgba(30, 41, 59, .72);
  border: 1px solid rgba(148, 163, 184, .18);
}

.mpc-family-check input {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.mpc-family-check span {
  color: #f8fafc;
  font-weight: 800;
}

@media (max-width: 768px) {
  .mpc-family-profile-grid { grid-template-columns: 1fr; }
  .mpc-family-profile-hero { flex-direction: column; }
}

/* =========================================================
   MPC Connect - Professional light modal system
   Applies a consistent system style and removes legacy dark modals.
   ========================================================= */
.mpc-system-modal .modal-dialog {
  max-width: min(980px, 96vw);
}

.mpc-system-modal .modal-content {
  border: 1px solid #e4eaf3;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22);
  background: #ffffff;
}

.mpc-system-modal-header {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid #edf2f7;
  background:
    radial-gradient(circle at top left, rgba(37, 87, 214, .12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.mpc-system-modal-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #2457d6;
  background: #eef4ff;
  border: 1px solid #dbe8ff;
  box-shadow: 0 12px 28px rgba(36, 87, 214, .12);
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.mpc-system-modal-eyebrow {
  display: block;
  margin-bottom: .15rem;
  color: #2457d6;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mpc-system-modal .modal-title {
  color: #10204f;
  font-weight: 700;
  letter-spacing: -.025em;
}

.mpc-system-modal-subtitle {
  margin: .15rem 0 0;
  color: #64748b;
  font-size: .9rem;
}

.mpc-system-modal .modal-body {
  padding: 1.5rem;
  background: #ffffff;
}

.mpc-system-modal-footer {
  border-top: 1px solid #edf2f7;
  background: #f8fafc;
  padding: 1rem 1.5rem;
}

.mpc-family-profile-person-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border: 1px solid #dce8fb;
}

.mpc-family-profile-person-card div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.mpc-family-profile-person-card span,
.mpc-readonly-line span,
.mpc-readonly-note span {
  color: #64748b;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mpc-family-profile-person-card strong,
.mpc-readonly-line strong {
  color: #10204f;
  font-size: .96rem;
  font-weight: 700;
}

.mpc-family-profile-section {
  padding: 1.15rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #e6edf7;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .05);
}

.mpc-family-profile-section-title {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1rem;
}

.mpc-family-profile-section-title i {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #2457d6;
  background: #eef4ff;
  border: 1px solid #dbe8ff;
  flex: 0 0 auto;
}

.mpc-family-profile-section-title h6 {
  margin: 0;
  color: #10204f;
  font-size: 1rem;
  font-weight: 700;
}

.mpc-family-profile-section-title p {
  margin: .2rem 0 0;
  color: #64748b;
  font-size: .86rem;
}

.mpc-family-profile-form .form-label {
  color: #334155;
  font-size: .84rem;
  font-weight: 650;
}

.mpc-family-profile-form .form-control,
.mpc-family-profile-form .form-control-solid {
  min-height: 44px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #dde7f3;
  border-radius: 14px;
  box-shadow: none;
}

.mpc-family-profile-form textarea.form-control {
  min-height: auto;
  resize: vertical;
}

.mpc-family-profile-form .form-control:focus {
  background: #ffffff;
  border-color: #2457d6;
  box-shadow: 0 0 0 .22rem rgba(36, 87, 214, .11);
}

.mpc-switch-line {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid #e4eaf3;
  border-radius: 18px;
  background: #f8fafc;
  cursor: pointer;
  margin: 0;
}

.mpc-switch-line input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mpc-switch-ui {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  flex: 0 0 auto;
  transition: .18s ease;
}

.mpc-switch-ui::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  position: absolute;
  left: 3px;
  top: 3px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .16);
  transition: .18s ease;
}

.mpc-switch-line input:checked + .mpc-switch-ui {
  background: #2457d6;
}

.mpc-switch-line-danger input:checked + .mpc-switch-ui {
  background: #dc2626;
}

.mpc-switch-line input:checked + .mpc-switch-ui::after {
  transform: translateX(20px);
}

.mpc-switch-line strong {
  display: block;
  color: #10204f;
  font-weight: 700;
}

.mpc-switch-line small {
  display: block;
  color: #64748b;
  line-height: 1.35;
}

.mpc-readonly-line,
.mpc-readonly-note {
  height: 100%;
  padding: 1rem;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e4eaf3;
}

.mpc-readonly-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mpc-readonly-note p {
  margin: .45rem 0 0;
  color: #10204f;
  white-space: pre-wrap;
  line-height: 1.55;
}

/* Legacy SweetAlert modals: force light, system-consistent styling */
.swal2-popup.mpc-dark-comment-modal,
.swal2-popup.mpc-dark-pdf-modal,
.swal2-popup.mpc-dark-pdf-viewer-popup,
.swal2-popup.mpc-family-profile-popup,
.swal2-popup.mpc-skipped-files-popup,
.swal2-popup.mpc-files-progress-popup,
.swal2-popup.mpc-comment-modal-popup {
  background: #ffffff !important;
  color: #10204f !important;
  border: 1px solid #e4eaf3 !important;
  border-radius: 26px !important;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22) !important;
}

.mpc-dark-comment-modal-title,
.mpc-dark-comment-modal-html,
.mpc-dark-pdf-html,
.mpc-comment-modal-html {
  color: #10204f !important;
}

.mpc-comment-modal-meta span {
  color: #334155 !important;
  background: #f8fafc !important;
  border-color: #e4eaf3 !important;
}

.mpc-comment-modal-body {
  color: #10204f !important;
  background: #f8fafc !important;
  border-color: #e4eaf3 !important;
}

.mpc-pdf-viewer-modal {
  color: #10204f !important;
  background: #ffffff !important;
}

.mpc-pdf-viewer-header {
  background:
    radial-gradient(circle at right top, rgba(248,113,113,.12), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #fff7f7 100%) !important;
  border-color: #fee2e2 !important;
}

.mpc-pdf-viewer-header h3 { color: #10204f !important; }
.mpc-pdf-viewer-header p { color: #64748b !important; }
.mpc-pdf-viewer-header span { color: #b42318 !important; }
.mpc-pdf-viewer-badge {
  color: #b42318 !important;
  background: #fff1f0 !important;
  border-color: #fecaca !important;
}
.mpc-pdf-frame-wrap {
  background: #f8fafc !important;
  border-color: #e4eaf3 !important;
  box-shadow: 0 20px 60px rgba(15,23,42,.12) !important;
}

.mpc-file-upload-modal,
.mpc-skipped-files-modal {
  background: #ffffff !important;
  color: #10204f !important;
}
.mpc-file-upload-title,
.mpc-skipped-files-modal h3 { color: #10204f !important; }
.mpc-file-upload-subtitle,
.mpc-skipped-files-modal p,
.mpc-file-upload-detail { color: #64748b !important; }

@media (max-width: 768px) {
  .mpc-system-modal-header { align-items: flex-start; }
  .mpc-family-profile-person-card { grid-template-columns: 1fr; }
  .mpc-readonly-line { align-items: flex-start; flex-direction: column; }
}

/* Family Member Profile modal redesign - light CRM card style */
.mpc-family-member-profile-bs .modal-dialog {
  max-width: 1120px;
}

.mpc-family-member-profile-bs .modal-content {
  border: 1px solid #dfe7f2;
  border-radius: 28px;
  background: #f6f8fc;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .20);
  overflow: hidden;
}

.mpc-family-member-profile-bs .mpc-system-modal-header {
  padding: 1.25rem 1.45rem;
  background: #ffffff;
  border-bottom: 1px solid #e3eaf4;
}

.mpc-family-member-profile-bs .mpc-system-modal-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #2457d6;
  background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
  border: 1px solid #dbe8ff;
  box-shadow: 0 12px 28px rgba(36, 87, 214, .10);
  flex: 0 0 auto;
}

.mpc-family-member-profile-bs .mpc-system-modal-icon i {
  font-size: 1.35rem;
  line-height: 1;
}

.mpc-family-member-profile-bs .mpc-system-modal-eyebrow {
  display: block;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .18rem;
}

.mpc-family-member-profile-bs .modal-title {
  color: #0f172a;
  font-size: 1.22rem;
  font-weight: 800;
  margin: 0;
}

.mpc-family-member-profile-bs .mpc-system-modal-subtitle {
  color: #53657d;
  font-size: .9rem;
  margin: .18rem 0 0;
}

.mpc-family-member-profile-bs .modal-body {
  background: #f6f8fc;
  padding: 1.4rem;
}

.mpc-family-member-profile-bs .modal-footer {
  background: #ffffff;
  border-top: 1px solid #e3eaf4;
  padding: 1rem 1.45rem;
}

.mpc-family-member-profile-bs .btn-close {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background-color: #f8fafc;
  border: 1px solid #e3eaf4;
  opacity: .8;
}

.mpc-family-member-profile-bs .btn-close:hover {
  opacity: 1;
  background-color: #eef4ff;
}

.mpc-family-member-profile-bs .mpc-family-profile-person-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.mpc-family-member-profile-bs .mpc-family-profile-person-card > div {
  min-height: 76px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #dfe7f2;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .28rem;
}

.mpc-family-member-profile-bs .mpc-family-profile-person-card span,
.mpc-family-member-profile-bs .mpc-readonly-line span,
.mpc-family-member-profile-bs .mpc-readonly-note span {
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.mpc-family-member-profile-bs .mpc-family-profile-person-card strong,
.mpc-family-member-profile-bs .mpc-readonly-line strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
}

.mpc-family-member-profile-bs .mpc-family-profile-section {
  padding: 1.2rem;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #dfe7f2;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .055);
}

.mpc-family-member-profile-bs .mpc-family-profile-section-title {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid #eef2f7;
}

.mpc-family-member-profile-bs .mpc-family-profile-section-title i {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #2457d6;
  background: #eef4ff;
  border: 1px solid #dbe8ff;
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.mpc-family-member-profile-bs .mpc-family-profile-section-title h6 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.mpc-family-member-profile-bs .mpc-family-profile-section-title p {
  margin: .2rem 0 0;
  color: #53657d;
  font-size: .86rem;
}

.mpc-family-member-profile-bs .mpc-family-profile-form .form-label {
  color: #0f2544;
  font-size: .82rem;
  font-weight: 750;
  margin-bottom: .45rem;
}

.mpc-family-member-profile-bs .mpc-family-profile-form .form-control,
.mpc-family-member-profile-bs .mpc-family-profile-form .form-control-solid {
  min-height: 46px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cfdbea;
  border-radius: 15px;
  box-shadow: none;
  font-size: .95rem;
}

.mpc-family-member-profile-bs .mpc-family-profile-form textarea.form-control {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}

.mpc-family-member-profile-bs .mpc-family-profile-form .form-control:focus {
  background: #ffffff;
  border-color: #2457d6;
  box-shadow: 0 0 0 .22rem rgba(36, 87, 214, .11);
}

.mpc-family-member-profile-bs .mpc-family-profile-form .form-control:disabled,
.mpc-family-member-profile-bs .mpc-family-profile-form textarea:disabled {
  color: #475569;
  background: #f1f5f9;
  opacity: 1;
}

.mpc-family-member-profile-bs .mpc-switch-line {
  min-height: 78px;
  padding: 1rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #dfe7f2;
  display: flex;
  align-items: center;
  gap: .95rem;
}

.mpc-family-member-profile-bs .mpc-switch-line:hover {
  background: #f5f8ff;
  border-color: #cfe0ff;
}

.mpc-family-member-profile-bs .mpc-switch-line strong {
  display: block;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 750;
}

.mpc-family-member-profile-bs .mpc-switch-line small {
  display: block;
  color: #64748b;
  font-size: .82rem;
  margin-top: .18rem;
}

.mpc-family-member-profile-bs .mpc-readonly-line,
.mpc-family-member-profile-bs .mpc-readonly-note {
  height: 100%;
  padding: 1rem;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #dfe7f2;
}

.mpc-family-member-profile-bs .mpc-readonly-note p {
  margin: .45rem 0 0;
  color: #0f172a;
  white-space: pre-wrap;
  line-height: 1.45;
}

.mpc-family-member-profile-bs .modal-footer .btn {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 750;
  padding-inline: 1.05rem;
}

.mpc-family-member-profile-bs #familyProfileSaveButton {
  background: linear-gradient(135deg, #2f62df 0%, #2457d6 100%);
  border-color: #2457d6;
  box-shadow: 0 14px 30px rgba(36, 87, 214, .22);
}

/* Fallback: if an old SweetAlert family profile modal is still cached, force it to match the light CRM design */
.swal2-popup.mpc-family-profile-popup {
  background: #f6f8fc !important;
  color: #0f172a !important;
  border-radius: 26px !important;
  border: 1px solid #dfe7f2 !important;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .20) !important;
}

.swal2-popup.mpc-family-profile-popup .swal2-html-container,
.swal2-popup.mpc-family-profile-popup .mpc-family-profile-html {
  color: #0f172a !important;
}

.swal2-popup.mpc-family-profile-popup .form-control,
.swal2-popup.mpc-family-profile-popup textarea,
.swal2-popup.mpc-family-profile-popup input {
  pointer-events: auto !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  border-color: #cfdbea !important;
}

@media (max-width: 768px) {
  .mpc-family-member-profile-bs .modal-body {
    padding: 1rem;
  }
  .mpc-family-member-profile-bs .mpc-family-profile-person-card {
    grid-template-columns: 1fr;
  }
  .mpc-family-member-profile-bs .mpc-system-modal-header .d-flex {
    align-items: flex-start !important;
  }
}


/* MPC Connect global busy overlay */
.mpc-global-loader{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(15,23,42,.42);
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .18s ease, visibility .18s ease;
}

.mpc-global-loader.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.mpc-global-loader-panel{
    min-width:min(420px, calc(100vw - 48px));
    max-width:460px;
    display:flex;
    align-items:center;
    gap:18px;
    padding:20px 22px;
    border-radius:24px;
    color:#f8fafc;
    background:linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.94));
    border:1px solid rgba(255,255,255,.14);
    box-shadow:0 24px 70px rgba(2,6,23,.42), inset 0 1px 0 rgba(255,255,255,.08);
}

.mpc-global-loader-orbit{
    width:54px;
    height:54px;
    flex:0 0 54px;
    position:relative;
    border-radius:50%;
    background:radial-gradient(circle at center, rgba(59,130,246,.24), rgba(59,130,246,.05) 58%, transparent 60%);
}

.mpc-global-loader-orbit::before{
    content:'';
    position:absolute;
    inset:7px;
    border-radius:50%;
    border:3px solid rgba(255,255,255,.16);
    border-top-color:#60a5fa;
    border-right-color:#93c5fd;
    animation:mpcGlobalSpin .85s linear infinite;
}

.mpc-global-loader-orbit span:first-child{
    position:absolute;
    inset:20px;
    border-radius:50%;
    background:#60a5fa;
    box-shadow:0 0 22px rgba(96,165,250,.82);
}

.mpc-global-loader-orbit span:last-child{
    position:absolute;
    inset:0;
    border-radius:50%;
    border:1px solid rgba(147,197,253,.28);
    animation:mpcGlobalPulse 1.4s ease-in-out infinite;
}

.mpc-global-loader-copy strong{
    display:block;
    font-size:1rem;
    font-weight:700;
    letter-spacing:.01em;
    margin-bottom:3px;
}

.mpc-global-loader-copy small{
    display:block;
    color:#cbd5e1;
    line-height:1.35;
    font-size:.86rem;
}

body.mpc-is-busy{
    cursor:progress;
}

body.mpc-is-busy .btn:not([data-global-loading="false"]){
    cursor:progress;
}

@keyframes mpcGlobalSpin{
    to{transform:rotate(360deg)}
}

@keyframes mpcGlobalPulse{
    0%,100%{transform:scale(.88);opacity:.45}
    50%{transform:scale(1.08);opacity:.9}
}

@media (max-width: 576px){
    .mpc-global-loader-panel{
        align-items:flex-start;
        border-radius:20px;
        padding:18px;
    }
    .mpc-global-loader-orbit{
        width:46px;
        height:46px;
        flex-basis:46px;
    }
    .mpc-global-loader-orbit span:first-child{
        inset:17px;
    }
}

/* MPC Connect unified SweetAlert / Toast experience */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.swal2-popup.mpc-system-alert-popup {
    width: min(620px, calc(100vw - 36px)) !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    min-height: 300px !important;
    color: #f8fafc !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(30, 41, 59, .96)) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: 0 28px 90px rgba(2, 6, 23, .44), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.swal2-popup.mpc-system-alert-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 5%, rgba(59, 130, 246, .32), transparent 34%),
        radial-gradient(circle at 90% 8%, rgba(20, 184, 166, .20), transparent 32%);
}

.swal2-popup.mpc-system-alert-popup .swal2-icon {
    margin: 34px auto 14px !important;
    width: 82px !important;
    height: 82px !important;
    border-width: 3px !important;
    position: relative;
    z-index: 1;
    box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

.swal2-popup.mpc-system-alert-popup .swal2-icon.swal2-success {
    border-color: rgba(34, 197, 94, .55) !important;
    background: rgba(34, 197, 94, .12) !important;
}

.swal2-popup.mpc-system-alert-popup .swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #86efac !important;
}

.swal2-popup.mpc-system-alert-popup .swal2-icon.swal2-warning {
    border-color: rgba(245, 158, 11, .62) !important;
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, .13) !important;
}

.swal2-popup.mpc-system-alert-popup .swal2-icon.swal2-error {
    border-color: rgba(248, 113, 113, .58) !important;
    color: #fca5a5 !important;
    background: rgba(248, 113, 113, .12) !important;
}

.swal2-popup.mpc-system-alert-popup .swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #fca5a5 !important;
}

.swal2-popup.mpc-system-alert-popup .swal2-icon.swal2-info,
.swal2-popup.mpc-system-alert-popup .swal2-icon.swal2-question {
    border-color: rgba(96, 165, 250, .62) !important;
    color: #93c5fd !important;
    background: rgba(59, 130, 246, .13) !important;
}

.swal2-popup.mpc-system-alert-popup .mpc-system-alert-title,
.swal2-popup.mpc-system-alert-popup .swal2-title {
    position: relative;
    z-index: 1;
    padding: 12px 42px 0 !important;
    color: #f8fafc !important;
    font-size: 1.42rem !important;
    font-weight: 750 !important;
    letter-spacing: -.015em !important;
}

.swal2-popup.mpc-system-alert-popup .mpc-system-alert-html,
.swal2-popup.mpc-system-alert-popup .swal2-html-container {
    position: relative;
    z-index: 1;
    margin: 14px 0 0 !important;
    padding: 0 48px 8px !important;
    color: #cbd5e1 !important;
    font-size: 1.04rem !important;
    line-height: 1.58 !important;
}

.swal2-popup.mpc-system-alert-popup .swal2-timer-progress-bar {
    height: 3px !important;
    background: linear-gradient(90deg, #60a5fa, #22c55e) !important;
}

.swal2-popup.mpc-system-alert-popup .mpc-system-alert-actions,
.swal2-popup.mpc-system-alert-popup .swal2-actions {
    position: relative;
    z-index: 1;
    gap: 10px !important;
    padding: 28px 32px 34px !important;
    margin: 0 !important;
}

.swal2-popup.mpc-system-alert-popup .mpc-system-alert-confirm,
.swal2-popup.mpc-system-alert-popup .swal2-confirm {
    min-width: 148px;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 13px 24px !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
    box-shadow: 0 14px 32px rgba(37, 99, 235, .32) !important;
    font-weight: 700 !important;
}

.swal2-popup.mpc-system-alert-popup .mpc-system-alert-cancel,
.swal2-popup.mpc-system-alert-popup .swal2-cancel {
    min-width: 138px;
    border: 1px solid rgba(203, 213, 225, .20) !important;
    border-radius: 14px !important;
    padding: 13px 24px !important;
    color: #e2e8f0 !important;
    background: rgba(255,255,255,.08) !important;
    font-weight: 700 !important;
}

.swal2-popup.mpc-system-alert-popup .mpc-system-alert-deny,
.swal2-popup.mpc-system-alert-popup .swal2-deny {
    min-width: 138px;
    border: 0 !important;
    border-radius: 14px !important;
    padding: 13px 24px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ef4444, #fb7185) !important;
    font-weight: 700 !important;
}

.swal2-popup.mpc-system-alert-popup .swal2-input,
.swal2-popup.mpc-system-alert-popup .swal2-textarea,
.swal2-popup.mpc-system-alert-popup .swal2-select {
    color: #0f172a !important;
    border-radius: 14px !important;
    border: 1px solid rgba(203, 213, 225, .70) !important;
    box-shadow: none !important;
}

.swal2-popup.mpc-toast-popup {
    border-radius: 22px !important;
    min-width: min(420px, calc(100vw - 36px)) !important;
    color: #f8fafc !important;
    background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(30,41,59,.96)) !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    box-shadow: 0 20px 58px rgba(2,6,23,.32) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.swal2-popup.mpc-toast-popup .swal2-title,
.swal2-popup.mpc-toast-popup .mpc-toast-title {
    color: #f8fafc !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
}

.swal2-popup.mpc-toast-popup .swal2-html-container,
.swal2-popup.mpc-toast-popup .mpc-toast-html {
    color: #cbd5e1 !important;
}

.swal2-popup.mpc-toast-popup .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #60a5fa, #22c55e) !important;
}

@media (max-width: 576px) {
    .swal2-popup.mpc-system-alert-popup {
        border-radius: 20px !important;
    }
    .swal2-popup.mpc-system-alert-popup .swal2-icon {
        width: 68px !important;
        height: 68px !important;
    }
    .swal2-popup.mpc-system-alert-popup .swal2-title {
        font-size: 1.22rem !important;
    }
}


/* MPC Connect SweetAlert large overlay sizing */
.swal2-popup.mpc-system-alert-popup .swal2-html-container ul,
.swal2-popup.mpc-system-alert-popup .mpc-system-alert-html ul {
    text-align: left !important;
    margin: 10px auto 0 !important;
    max-width: 480px !important;
}

.swal2-popup.mpc-system-alert-popup .swal2-html-container strong,
.swal2-popup.mpc-system-alert-popup .mpc-system-alert-html strong {
    color: #f8fafc !important;
    font-weight: 750 !important;
}

.swal2-popup.mpc-system-alert-popup .swal2-actions button {
    min-height: 46px !important;
}

@media (max-width: 576px) {
    .swal2-popup.mpc-system-alert-popup {
        width: calc(100vw - 24px) !important;
        min-height: 260px !important;
    }

    .swal2-popup.mpc-system-alert-popup .swal2-html-container,
    .swal2-popup.mpc-system-alert-popup .mpc-system-alert-html {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .swal2-popup.mpc-system-alert-popup .swal2-actions {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}


.custom-intro .introjs-tooltiptext {
  line-height: 1.55;
  font-size: .92rem;
}

/* SweetAlert2 professional tutorial modal */
.swal2-popup.mpc-tutorial-swal-popup {
  border-radius: 24px !important;
  padding: 28px !important;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .22) !important;
}
.mpc-tutorial-swal-html {
  margin: 0 !important;
}
.mpc-tutorial-swal {
  text-align: left;
}
.mpc-tutorial-swal-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: .86rem;
  font-weight: 700;
}
.mpc-tutorial-swal-progress {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
  margin-bottom: 18px;
}
.mpc-tutorial-swal-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}
.mpc-tutorial-swal-body {
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.65;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 20px;
}
.mpc-tutorial-swal-note {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 12px 14px;
  font-size: .92rem;
  line-height: 1.45;
}
.mpc-tutorial-swal-note i {
  color: #2563eb;
  font-size: 1.1rem;
  margin-top: 1px;
}


/* Topbar notifications button */
.mpc-notifications-topbar-btn{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:5px 12px 5px 5px;
  border-radius:999px;
  border:1px solid #facc15;
  background:linear-gradient(180deg,#fff7d6 0%,#fef3c7 100%);
  color:#78350f;
  box-shadow:0 10px 26px rgba(245,158,11,.14);
  transition:.18s ease;
  font-weight:700;
}
.mpc-notifications-topbar-btn:hover,
.mpc-notifications-topbar-btn:focus-visible{
  color:#78350f;
  border-color:#f59e0b;
  background:#fff7ed;
  box-shadow:0 14px 34px rgba(245,158,11,.22);
  transform:translateY(-1px);
  outline:none;
}
.mpc-notifications-icon{
  width:36px;
  height:36px;
  min-width:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:linear-gradient(135deg,#f59e0b 0%,#fbbf24 100%);
  color:#fff;
  box-shadow:0 8px 20px rgba(245,158,11,.25);
}
.mpc-notifications-copy{flex-direction:column;line-height:1.15;text-align:left;}
.mpc-notifications-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#92400e;font-weight:800;}
.mpc-notifications-text{font-size:12px;color:#78350f;font-weight:700;margin-top:2px;}
.swal2-popup.mpc-notifications-modal-popup{border-radius:24px;padding:1.4rem;}
.mpc-notifications-modal{text-align:left;}
.mpc-notifications-modal-hero{
  display:flex;gap:14px;align-items:center;padding:16px;border-radius:20px;
  background:linear-gradient(135deg,#fff7ed 0%,#fef3c7 100%);
  border:1px solid #fde68a;margin-bottom:14px;
}
.mpc-notifications-modal-hero span{
  width:48px;height:48px;border-radius:16px;display:grid;place-items:center;
  background:#f59e0b;color:#fff;font-size:1.25rem;box-shadow:0 12px 28px rgba(245,158,11,.25);
}
.mpc-notifications-modal-hero strong,.mpc-notifications-modal-hero small{display:block;}
.mpc-notifications-modal-hero strong{color:#78350f;font-size:1rem;}
.mpc-notifications-modal-hero small{color:#92400e;line-height:1.35;margin-top:3px;}
.mpc-notifications-modal-card{
  display:flex;gap:12px;align-items:flex-start;padding:14px;border-radius:18px;
  background:#ffffff;border:1px solid #e2e8f0;box-shadow:0 12px 28px rgba(15,23,42,.06);
}
.mpc-notifications-modal-card i{color:#16a34a;font-size:1.25rem;}
.mpc-notifications-modal-card strong,.mpc-notifications-modal-card small{display:block;}
.mpc-notifications-modal-card strong{color:#0f172a;}
.mpc-notifications-modal-card small{color:#64748b;margin-top:2px;}

.mpc-notifications-topbar-btn{position:relative;}
.mpc-notifications-topbar-btn.has-meeting-notification{
  border-color:#2563eb;
  background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);
  color:#1e3a8a;
  box-shadow:0 14px 34px rgba(37,99,235,.18);
}
.mpc-notifications-topbar-btn.has-meeting-notification .mpc-notifications-icon{
  background:linear-gradient(135deg,#2563eb 0%,#38bdf8 100%);
  box-shadow:0 8px 20px rgba(37,99,235,.28);
}
.mpc-notifications-topbar-btn.has-meeting-notification .mpc-notifications-label{color:#1d4ed8;}
.mpc-notifications-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ef4444;
  color:#fff;
  border:2px solid #fff;
  font-size:11px;
  line-height:1;
  font-weight:900;
  box-shadow:0 10px 18px rgba(239,68,68,.25);
}
.mpc-notifications-badge[hidden]{display:none!important;}
.mpc-notifications-modal-card-warning i{color:#f59e0b!important;}
.mpc-notification-meeting-card{
  gap:16px;
  align-items:stretch;
  border-color:rgba(37,99,235,.16);
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 18px 42px rgba(37,99,235,.10);
}
.mpc-notification-meeting-date{
  width:70px;
  min-width:70px;
  border-radius:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#2563eb 0%,#38bdf8 100%);
  color:#fff;
  box-shadow:0 14px 28px rgba(37,99,235,.22);
}
.mpc-notification-meeting-date small{
  color:rgba(255,255,255,.88)!important;
  font-size:10px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
  margin:0;
}
.mpc-notification-meeting-date strong{
  color:#fff!important;
  font-size:1.65rem;
  line-height:1;
  margin-top:3px;
}
.mpc-notification-meeting-copy{min-width:0;flex:1;}
.mpc-notification-meeting-copy strong{
  font-size:1rem;
  color:#0f172a;
  margin-top:6px;
}
.mpc-notification-required{
  display:inline-flex!important;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:100%;
  padding:5px 10px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8!important;
  border:1px solid rgba(37,99,235,.16);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.mpc-notification-required i{color:#2563eb!important;font-size:.78rem!important;}
.mpc-notification-meeting-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.mpc-notification-meeting-meta span{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
  padding:9px 10px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  color:#334155;
  font-size:.82rem;
  font-weight:700;
  overflow-wrap:anywhere;
}
.mpc-notification-meeting-meta i{color:#2563eb!important;font-size:.92rem!important;}
.mpc-notification-countdown{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:12px;
  padding:8px 12px;
  border-radius:999px;
  background:#fef3c7;
  color:#92400e;
  font-size:.82rem;
  font-weight:900;
}
.mpc-notification-countdown i{color:#f59e0b!important;font-size:.9rem!important;}
.mpc-notification-system-note{
  margin:12px 0 0;
  padding:10px 12px;
  border-radius:14px;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  color:#64748b;
  font-size:.82rem;
  line-height:1.42;
}
@media (max-width:575.98px){
  .mpc-notification-meeting-card{flex-direction:column;}
  .mpc-notification-meeting-date{width:100%;min-width:0;min-height:76px;}
  .mpc-notification-meeting-meta{grid-template-columns:1fr;}
}

/* Clickable client initials */
.client-avatar-link{
  text-decoration:none;
  cursor:pointer;
  transition:.18s ease;
}
.client-avatar-link:hover,
.client-avatar-link:focus-visible{
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#60a5fa);
  box-shadow:0 12px 26px rgba(37,99,235,.22);
  transform:translateY(-1px);
  outline:none;
}

/* Administration redesign: keep the main sidebar clean even when more modules are added. */
.mpc-sidebar-nav{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.mpc-sidebar-nav::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}
@media (min-height:760px){
  .mpc-nav-link{height:42px;margin-bottom:5px;}
  .mpc-sidebar-nav{padding-top:18px;padding-bottom:14px;}
}

/* Topbar action restore: Tutorial / Logout must match Notifications and My Account */
.mpc-topbar-actions{
  flex-wrap:wrap;
  justify-content:flex-end;
}
.mpc-topbar-pill{
  min-height:46px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:5px 12px 5px 5px;
  border-radius:999px;
  border:1px solid #dbe3ef;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  color:#0f172a;
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  transition:.18s ease;
  font-weight:700;
}
.mpc-topbar-pill:hover,
.mpc-topbar-pill:focus-visible{
  color:#0f172a;
  border-color:#bfdbfe;
  background:#f8fbff;
  box-shadow:0 14px 34px rgba(37,99,235,.12);
  transform:translateY(-1px);
  outline:none;
}
.mpc-topbar-pill-icon{
  width:36px;
  height:36px;
  min-width:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.14);
}
.mpc-topbar-pill-copy{
  flex-direction:column;
  line-height:1.15;
  text-align:left;
}
.mpc-topbar-pill-label{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
}
.mpc-topbar-pill-tutorial .mpc-topbar-pill-icon{
  background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);
}
.mpc-topbar-pill-tutorial .mpc-topbar-pill-label{
  color:#4338ca;
}
.mpc-topbar-pill-logout{
  border-color:#fecaca;
  background:linear-gradient(180deg,#fffafa 0%,#fff1f2 100%);
  color:#991b1b;
}
.mpc-topbar-pill-logout:hover,
.mpc-topbar-pill-logout:focus-visible{
  border-color:#fca5a5;
  background:#fff1f2;
  color:#991b1b;
  box-shadow:0 14px 34px rgba(220,38,38,.13);
}
.mpc-topbar-pill-logout .mpc-topbar-pill-icon{
  background:linear-gradient(135deg,#ef4444 0%,#fb7185 100%);
  box-shadow:0 8px 20px rgba(239,68,68,.22);
}
.mpc-topbar-pill-logout .mpc-topbar-pill-label{
  color:#991b1b;
}
.mpc-notifications-topbar-btn{
  padding-right:12px;
}
.mpc-notifications-copy{
  justify-content:center;
}
.mpc-notifications-text{
  display:none!important;
}

/* Edit Individual Client - View Client button in hero */
.mpc-edit-hero-actions .mpc-view-client-soft-btn,
.mpc-create-hero-actions .mpc-view-client-soft-btn{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:39px;
  padding:.62rem 1.05rem!important;
  border-radius:12px!important;
  color:#0f766e!important;
  background:linear-gradient(135deg,#ecfeff 0%,#ccfbf1 58%,#f0fdfa 100%)!important;
  border:1px solid rgba(20,184,166,.28)!important;
  font-weight:700!important;
  box-shadow:0 14px 34px rgba(20,184,166,.16)!important;
  text-decoration:none!important;
  line-height:1!important;
  transition:transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
}

.mpc-edit-hero-actions .mpc-view-client-soft-btn:hover,
.mpc-edit-hero-actions .mpc-view-client-soft-btn:focus,
.mpc-create-hero-actions .mpc-view-client-soft-btn:hover,
.mpc-create-hero-actions .mpc-view-client-soft-btn:focus{
  color:#0f766e!important;
  background:linear-gradient(135deg,#ccfbf1 0%,#99f6e4 58%,#ecfeff 100%)!important;
  border-color:rgba(20,184,166,.40)!important;
  box-shadow:0 18px 42px rgba(20,184,166,.22)!important;
  transform:translateY(-1px);
}

.mpc-edit-hero-actions .mpc-view-client-soft-btn i,
.mpc-create-hero-actions .mpc-view-client-soft-btn i{
  font-size:1rem;
  line-height:1;
}

/* Client Files - professional preview modal aligned with Individual Summary */
.swal2-popup.mpc-file-preview-popup {
  width: min(96vw, 1280px) !important;
  max-width: 1280px !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  color: #10204f !important;
  border: 1px solid #e4eaf3 !important;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .24) !important;
}

.swal2-popup.mpc-file-preview-popup .swal2-close {
  top: 18px !important;
  right: 18px !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  color: #64748b !important;
  background: #f8fafc !important;
  border: 1px solid #dbe4f0 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .10) !important;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.swal2-popup.mpc-file-preview-popup .swal2-close:hover {
  color: #10204f !important;
  background: #eef4ff !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .14) !important;
}

.mpc-file-preview-html {
  padding: 0 !important;
  margin: 0 !important;
}

.mpc-file-preview-modal {
  padding: 20px 20px 0;
  text-align: left;
  background: #ffffff;
}

.mpc-file-preview-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 118px;
  padding: 22px 78px 22px 24px;
  margin-bottom: 18px;
  border-radius: 24px;
  border: 1px solid #dbe4f0;
  background:
    radial-gradient(circle at right top, rgba(59, 130, 246, .14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.mpc-file-preview-title {
  min-width: 0;
}

.mpc-file-preview-title span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: 6px;
  color: #1d4ed8;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mpc-file-preview-title h3 {
  margin: 0;
  color: #10204f;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.mpc-file-preview-title p {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  margin: 8px 0 0;
  color: #64748b;
  font-weight: 650;
}

.mpc-file-preview-title p strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: .38rem .66rem;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
}

.mpc-file-preview-title p small {
  color: #64748b;
  font-size: .9rem;
  font-weight: 650;
}

.mpc-file-preview-toolbar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.mpc-file-preview-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 40px;
  padding: .68rem .95rem;
  border-radius: 14px;
  border: 1px solid #dbe4f0;
  background: #ffffff;
  color: #10204f;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, border-color .14s ease;
}

.mpc-file-preview-btn:hover,
.mpc-file-preview-btn:focus {
  color: #10204f;
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
}

.mpc-file-preview-btn.is-open {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.mpc-file-preview-btn.is-download {
  color: #047857;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.mpc-file-preview-canvas {
  min-height: 420px;
  max-height: min(72vh, 760px);
  border-radius: 24px;
  border: 1px solid #e4eaf3;
  background:
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: 0 20px 60px rgba(15, 23, 42, .12);
  overflow: hidden;
}

.mpc-file-preview-canvas.is-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
}

.mpc-file-preview-image {
  display: block;
  max-width: 100%;
  max-height: calc(min(72vh, 760px) - 32px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.mpc-file-preview-frame {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  min-height: 420px;
  border: 0;
  background: #ffffff;
}

.mpc-file-preview-actions {
  display: flex !important;
  justify-content: flex-end !important;
  padding: 16px 20px 20px !important;
  margin: 0 !important;
  border-top: 1px solid #e4eaf3;
  background: #ffffff;
}

.mpc-file-preview-close-btn {
  min-width: 120px;
  min-height: 42px;
  border-radius: 14px !important;
  color: #10204f !important;
  background: #ffffff !important;
  border: 1px solid #dbe4f0 !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08) !important;
}

.mpc-file-preview-close-btn:hover,
.mpc-file-preview-close-btn:focus {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

@media (max-width: 767.98px) {
  .mpc-file-preview-modal { padding: 14px 14px 0; }
  .mpc-file-preview-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 64px 18px 18px;
  }
  .mpc-file-preview-toolbar { justify-content: stretch; }
  .mpc-file-preview-btn { flex: 1 1 auto; }
  .mpc-file-preview-canvas,
  .mpc-file-preview-frame { min-height: 58vh; }
  .mpc-file-preview-actions { justify-content: stretch !important; }
  .mpc-file-preview-close-btn { width: 100%; }
}

/* US date/time picker standardization */
.mpc-us-date-input,
.mpc-us-date-only-input,
.mpc-us-datetime-input {
  background-color: #f8fafc !important;
  border-color: rgba(148, 163, 184, .35) !important;
  color: #0f172a !important;
  font-weight: 600;
}

.mpc-us-date-input::placeholder,
.mpc-us-date-only-input::placeholder,
.mpc-us-datetime-input::placeholder {
  color: #64748b !important;
}

.flatpickr-calendar {
  border: 1px solid rgba(15, 23, 42, .12) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  overflow: hidden;
}

.flatpickr-months,
.flatpickr-weekdays {
  background: #f8fafc;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  font-weight: 700 !important;
  color: #0f172a !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.flatpickr-day.today {
  border-color: #2563eb !important;
}

.flatpickr-time {
  border-top-color: rgba(148, 163, 184, .35) !important;
}

/* System Audit - Individual Client */
.mpc-system-audit-intro {
  display: flex;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, .12);
  background: linear-gradient(180deg, rgba(248, 250, 252, .92), rgba(255, 255, 255, .98));
  border-radius: 18px;
  padding: 1.15rem;
}
.mpc-system-audit-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, .1);
  color: #1d4ed8;
  font-size: 1.35rem;
  flex: 0 0 auto;
}
.mpc-system-audit-intro h4 {
  margin: 0 0 .25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}
.mpc-system-audit-intro p {
  margin: 0;
  color: #64748b;
  font-size: .9rem;
}
.mpc-system-audit-swal {
  border-radius: 24px !important;
}
.mpc-system-audit-modal {
  text-align: left;
}
.mpc-system-audit-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.mpc-system-audit-summary > div {
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  padding: .8rem 1rem;
  background: #f8fafc;
}
.mpc-system-audit-summary span {
  display: block;
  color: #64748b;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}
.mpc-system-audit-summary strong {
  display: block;
  color: #0f172a;
  font-size: 1.05rem;
  margin-top: .15rem;
}
.mpc-system-audit-table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
}
.mpc-system-audit-table {
  margin-bottom: 0;
}
.mpc-system-audit-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 2;
}
@media (max-width: 767.98px) {
  .mpc-system-audit-summary { grid-template-columns: 1fr; }
  .mpc-system-audit-intro { align-items: flex-start; }
}

/* Directory advanced filters - creation date range and status */
.directory-advanced-filters{
  display:grid;
  grid-template-columns:repeat(3,minmax(180px,1fr)) auto;
  gap:14px;
  align-items:end;
  padding:16px;
  margin:0 0 16px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 14px 34px rgba(15,23,42,.05);
}
.directory-filter-field label{
  display:flex;
  align-items:center;
  gap:4px;
  margin-bottom:7px;
  color:#64748b;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.directory-filter-field label i{color:#2563eb;}
.directory-filter-field .form-control,
.directory-filter-field .form-select{
  min-height:42px;
  border-radius:14px;
  border-color:#dbe6f5;
  background:#fff;
  color:#0f172a;
  font-weight:700;
  box-shadow:none;
}
.directory-filter-field .form-control:focus,
.directory-filter-field .form-select:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 .2rem rgba(37,99,235,.12);
}
.directory-filter-actions{display:flex;justify-content:flex-end;}
.directory-clear-filters{
  min-height:42px;
  border-radius:14px;
  border:1px solid #e2e8f0;
  font-weight:800;
  color:#334155;
  background:#fff;
}
.directory-clear-filters:hover{
  color:#1d4ed8;
  border-color:rgba(37,99,235,.24);
  background:#eff6ff;
}
@media (max-width:991.98px){
  .directory-advanced-filters{grid-template-columns:1fr 1fr;}
  .directory-filter-actions{justify-content:stretch;}
  .directory-clear-filters{width:100%;}
}
@media (max-width:575.98px){
  .directory-advanced-filters{grid-template-columns:1fr;}
}

/* Next Appointment modal - commercial wide layout */
.swal2-popup.mpc-next-appointment-popup{
  padding:0!important;
  border-radius:30px!important;
  overflow:hidden!important;
  background:#ffffff!important;
  box-shadow:0 34px 110px rgba(15,23,42,.36)!important;
}
.mpc-next-appointment-html{
  padding:0!important;
  margin:0!important;
  overflow:visible!important;
}
.mpc-next-appointment-x{
  width:46px!important;
  height:46px!important;
  border-radius:999px!important;
  top:18px!important;
  right:18px!important;
  background:#ffffff!important;
  color:#334155!important;
  border:1px solid rgba(148,163,184,.28)!important;
  box-shadow:0 14px 34px rgba(15,23,42,.16)!important;
}
.mpc-next-appointment-modal{
  text-align:left;
  color:#0f172a;
  background:#fff;
}
.mpc-next-appointment-hero{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:26px;
  align-items:stretch;
  padding:34px 40px 30px;
  background:
    radial-gradient(circle at 96% 10%,rgba(45,212,191,.26),transparent 30%),
    radial-gradient(circle at 10% 0%,rgba(37,99,235,.24),transparent 34%),
    linear-gradient(135deg,#eff6ff 0%,#ffffff 64%,#f0fdfa 100%);
  border-bottom:1px solid rgba(148,163,184,.22);
}
.mpc-next-appointment-date-card{
  min-height:170px;
  border-radius:28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:linear-gradient(135deg,#1d4ed8 0%,#2563eb 54%,#06b6d4 100%);
  box-shadow:0 24px 52px rgba(37,99,235,.24);
}
.mpc-next-appointment-date-card small,
.mpc-next-appointment-date-card span,
.mpc-next-appointment-date-card strong{display:block;color:#fff!important;}
.mpc-next-appointment-date-card small{
  font-size:.78rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-weight:900;
  opacity:.88;
}
.mpc-next-appointment-date-card strong{
  margin-top:6px;
  font-size:4.2rem;
  line-height:.9;
  font-weight:900;
}
.mpc-next-appointment-date-card span{
  margin-top:10px;
  font-size:.84rem;
  font-weight:800;
  letter-spacing:.04em;
  opacity:.9;
}
.mpc-next-appointment-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-right:44px;
}
.mpc-next-appointment-kicker{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:#dbeafe;
  color:#1d4ed8;
  border:1px solid rgba(37,99,235,.14);
  font-size:.74rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.mpc-next-appointment-main h2{
  margin:14px 0 8px;
  color:#0f172a;
  font-size:clamp(1.6rem,3vw,2.65rem);
  font-weight:900;
  line-height:1.05;
}
.mpc-next-appointment-main p{
  margin:0;
  color:#475569;
  font-size:1.05rem;
  font-weight:800;
}
.mpc-next-appointment-code-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:18px;
}
.mpc-next-appointment-code-row span,
.mpc-next-appointment-code-row strong,
.mpc-next-appointment-code-row em{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:7px 12px;
  border-radius:999px;
  font-size:.8rem;
  font-style:normal;
  font-weight:900;
}
.mpc-next-appointment-code-row span{background:#f1f5f9;color:#475569;}
.mpc-next-appointment-code-row strong{background:#eff6ff;color:#1d4ed8;border:1px solid rgba(37,99,235,.14);}
.mpc-next-appointment-code-row em{gap:7px;background:#fef3c7;color:#92400e;}
.mpc-next-appointment-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  padding:24px 40px 18px;
}
.mpc-next-appointment-info-card{
  min-height:132px;
  padding:18px;
  border-radius:22px;
  background:#ffffff;
  border:1px solid rgba(226,232,240,.95);
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.mpc-next-appointment-info-card i{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:14px;
  color:#2563eb;
  background:#eff6ff;
  margin-bottom:14px;
}
.mpc-next-appointment-info-card span{
  display:block;
  color:#64748b;
  font-size:.72rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.mpc-next-appointment-info-card strong{
  display:block;
  margin-top:6px;
  color:#0f172a;
  font-size:.98rem;
  line-height:1.35;
  font-weight:900;
  overflow-wrap:anywhere;
}
.mpc-next-appointment-info-card.is-primary{
  border-color:rgba(37,99,235,.20);
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
}
.mpc-next-appointment-secondary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  padding:0 40px 18px;
}
.mpc-next-appointment-secondary span{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:12px 14px;
  border-radius:16px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:#64748b;
  font-size:.86rem;
  font-weight:700;
}
.mpc-next-appointment-secondary i{color:#2563eb;}
.mpc-next-appointment-secondary strong{color:#0f172a;text-transform:capitalize;}
.mpc-next-appointment-notes{
  margin:0 40px 18px;
  padding:16px 18px;
  border-radius:20px;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
}
.mpc-next-appointment-notes span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#1d4ed8;
  font-size:.78rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.mpc-next-appointment-notes p{
  margin:8px 0 0;
  color:#334155;
  line-height:1.55;
}
.mpc-next-appointment-lock-note{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 40px 28px;
  padding:12px 14px;
  border-radius:18px;
  background:#f8fafc;
  color:#64748b;
  border:1px solid #e2e8f0;
  font-size:.86rem;
  font-weight:700;
}
.mpc-next-appointment-lock-note i{color:#2563eb;}
.mpc-next-appointment-close-btn{
  min-width:150px;
  min-height:48px;
  border-radius:16px!important;
  margin:0 40px 30px auto!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  font-weight:900!important;
  box-shadow:0 16px 34px rgba(37,99,235,.22)!important;
}
@media (max-width:991.98px){
  .mpc-next-appointment-hero{grid-template-columns:1fr;padding:28px;}
  .mpc-next-appointment-main{padding-right:0;}
  .mpc-next-appointment-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:22px 28px 16px;}
  .mpc-next-appointment-secondary{grid-template-columns:1fr;padding:0 28px 16px;}
  .mpc-next-appointment-notes,.mpc-next-appointment-lock-note{margin-left:28px;margin-right:28px;}
  .mpc-next-appointment-close-btn{margin-right:28px!important;}
}
@media (max-width:575.98px){
  .mpc-next-appointment-grid{grid-template-columns:1fr;}
  .mpc-next-appointment-date-card strong{font-size:3.2rem;}
}

/* Email verification public result page */
.mpc-email-verification-page{
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:#0f172a;
  overflow-x:hidden;
}
.mpc-email-verification-bg{
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 12% 18%,rgba(37,99,235,.38),transparent 34%),
    radial-gradient(circle at 86% 12%,rgba(45,212,191,.25),transparent 32%),
    linear-gradient(135deg,#0f172a 0%,#1e293b 45%,#f8fafc 45%,#eef4ff 100%);
}
.mpc-email-verification-wrap{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px;
}
.mpc-email-verification-card{
  width:min(720px,100%);
  padding:34px;
  border-radius:30px;
  background:#fff;
  border:1px solid rgba(226,232,240,.9);
  box-shadow:0 32px 100px rgba(15,23,42,.34);
  text-align:center;
}
.mpc-email-verification-hero{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-bottom:24px;
}
.mpc-email-verification-logo{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg,#1d4ed8,#06b6d4);
  font-size:1.25rem;
  font-weight:900;
}
.mpc-email-verification-hero span,
.mpc-email-verification-hero strong{display:block;text-align:left;}
.mpc-email-verification-hero span{color:#64748b;font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.1em;}
.mpc-email-verification-hero strong{color:#0f172a;font-size:1rem;font-weight:900;}
.mpc-email-verification-icon{
  width:92px;
  height:92px;
  margin:0 auto 22px;
  display:grid;
  place-items:center;
  border-radius:28px;
  font-size:2.65rem;
}
.mpc-email-verification-card.is-success .mpc-email-verification-icon{color:#16a34a;background:#dcfce7;}
.mpc-email-verification-card.is-warning .mpc-email-verification-icon{color:#d97706;background:#fef3c7;}
.mpc-email-verification-card h1{
  margin:0;
  color:#0f172a;
  font-size:clamp(1.6rem,4vw,2.35rem);
  font-weight:900;
}
.mpc-email-verification-card p{
  max-width:560px;
  margin:12px auto 0;
  color:#64748b;
  font-size:1rem;
  line-height:1.55;
}
.mpc-email-verification-detail{
  margin:24px auto 0;
  padding:16px 18px;
  max-width:520px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  text-align:left;
}
.mpc-email-verification-detail span{display:block;color:#64748b;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;}
.mpc-email-verification-detail strong{display:block;margin-top:5px;color:#0f172a;font-weight:900;word-break:break-all;}
.mpc-email-verification-footer{
  margin-top:24px;
  padding-top:18px;
  border-top:1px solid #e2e8f0;
  color:#64748b;
}

/* =========================================================
   Client Meetings Modal - horizontal stacked layout
   Applies to Individual Client and Business Client.
   Keeps Past Meetings below Upcoming Meetings in a full-width row.
   ========================================================= */
.swal2-popup.mpc-meetings-swal .mpc-client-meetings-body,
.mpc-client-meetings-body{
  grid-template-columns:1fr!important;
  gap:1rem!important;
}
.swal2-popup.mpc-meetings-swal .mpc-client-meetings-stats,
.mpc-client-meetings-stats{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:.9rem!important;
  margin:0!important;
}
.swal2-popup.mpc-meetings-swal .mpc-client-meetings-grid,
.mpc-client-meetings-grid{
  grid-template-columns:1fr!important;
  gap:1rem!important;
}
.swal2-popup.mpc-meetings-swal .mpc-client-meetings-panel,
.mpc-client-meetings-panel{
  width:100%!important;
}
.swal2-popup.mpc-meetings-swal .mpc-client-meetings-list,
.mpc-client-meetings-list{
  grid-template-columns:1fr!important;
  gap:.75rem!important;
}
.swal2-popup.mpc-meetings-swal .mpc-client-meeting-item,
.mpc-client-meeting-item{
  grid-template-columns:88px minmax(0,1fr) auto!important;
  align-items:center!important;
}
@media (max-width: 767.98px){
  .swal2-popup.mpc-meetings-swal .mpc-client-meetings-stats,
  .mpc-client-meetings-stats{
    grid-template-columns:1fr!important;
  }
  .swal2-popup.mpc-meetings-swal .mpc-client-meeting-item,
  .mpc-client-meeting-item{
    grid-template-columns:1fr!important;
  }
}

/* Dashboard directory filters - default today to today */
.directory-advanced-filters{
  display:grid;
  grid-template-columns:repeat(3,minmax(180px,1fr)) auto;
  gap:14px;
  align-items:end;
  padding:16px;
  margin:0 0 16px;
  border:1px solid rgba(148,163,184,.24);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 14px 34px rgba(15,23,42,.05);
}
.directory-filter-field label{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:7px;
  color:#64748b;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.directory-filter-field label i{color:#2563eb;}
.directory-filter-field .form-control,
.directory-filter-field .form-select{
  min-height:42px;
  border-radius:14px;
  border-color:#dbe6f5;
  background:#fff;
  color:#0f172a;
  font-weight:700;
  box-shadow:none;
}
.directory-filter-field .form-control:focus,
.directory-filter-field .form-select:focus{
  border-color:#2563eb;
  box-shadow:0 0 0 .2rem rgba(37,99,235,.12);
}
.directory-filter-actions{display:flex;justify-content:flex-end;}
.directory-clear-filters{
  min-height:42px;
  border-radius:14px;
  border:1px solid #dbe6f5;
  padding:0 16px;
  font-weight:850;
  color:#1d4ed8;
  background:#eff6ff;
}
.directory-clear-filters:hover{
  color:#fff;
  border-color:#2563eb;
  background:#2563eb;
}
@media (max-width:991.98px){
  .directory-advanced-filters{grid-template-columns:1fr 1fr;}
  .directory-filter-actions{justify-content:stretch;}
  .directory-clear-filters{width:100%;}
}
@media (max-width:575.98px){.directory-advanced-filters{grid-template-columns:1fr;}}

/* Files SweetAlert inputs - readable white text */
.swal2-popup.mpc-files-swal-popup .swal2-title,
.swal2-popup.mpc-files-swal-popup .swal2-input-label,
.swal2-popup.mpc-files-swal-popup .swal2-html-container{
  color:#ffffff!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-input.mpc-files-swal-input,
.swal2-popup.mpc-files-swal-popup input.swal2-input{
  color:#ffffff!important;
  background:rgba(15,23,42,.72)!important;
  border:1px solid rgba(255,255,255,.22)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)!important;
  caret-color:#ffffff!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-input.mpc-files-swal-input::placeholder,
.swal2-popup.mpc-files-swal-popup input.swal2-input::placeholder{
  color:rgba(255,255,255,.66)!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-input.mpc-files-swal-input:focus,
.swal2-popup.mpc-files-swal-popup input.swal2-input:focus{
  border-color:rgba(59,130,246,.85)!important;
  box-shadow:0 0 0 .2rem rgba(59,130,246,.18)!important;
}
.swal2-popup.mpc-files-swal-popup .text-muted{color:rgba(255,255,255,.72)!important;}



/* MPC Connect SweetAlert final visual standard */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation{
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}

.swal2-popup.mpc-files-swal-popup,
.swal2-popup.mpc-system-alert-popup,
.swal2-popup:not(.swal2-toast):not(.mpc-dark-pdf):not(.mpc-dark-comment):not(.mpc-files-progress):not(.mpc-skipped-files):not(.mpc-family-profile):not(.mpc-comment-modal):not(.mpc-next-appointment-popup):not(.mpc-meetings-swal){
  color-scheme:light!important;
}

.swal2-popup.mpc-files-swal-popup{
  width:min(620px,calc(100vw - 36px))!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:28px!important;
  color:#f8fafc!important;
  background:linear-gradient(135deg,rgba(15,23,42,.98),rgba(30,41,59,.96))!important;
  border:1px solid rgba(255,255,255,.14)!important;
  box-shadow:0 28px 90px rgba(2,6,23,.44),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
.swal2-popup.mpc-files-swal-popup::before{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  background:radial-gradient(circle at 12% 5%,rgba(59,130,246,.32),transparent 34%),radial-gradient(circle at 90% 8%,rgba(20,184,166,.20),transparent 32%);
}
.swal2-popup.mpc-files-swal-popup .swal2-title,
.swal2-popup.mpc-files-swal-popup .swal2-input-label,
.swal2-popup.mpc-files-swal-popup .swal2-html-container{
  position:relative;
  z-index:1;
  color:#f8fafc!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-title{
  padding:32px 42px 0!important;
  font-size:1.42rem!important;
  font-weight:800!important;
  letter-spacing:-.015em!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-input-label{
  margin:16px auto 8px!important;
  font-weight:700!important;
  color:#dbeafe!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-input.mpc-files-swal-input,
.swal2-popup.mpc-files-swal-popup input.swal2-input,
.swal2-popup.mpc-system-alert-popup .swal2-input,
.swal2-popup.mpc-system-alert-popup .swal2-textarea,
.swal2-popup.mpc-system-alert-popup .swal2-select{
  position:relative!important;
  z-index:1!important;
  width:min(440px,calc(100% - 56px))!important;
  height:50px!important;
  margin:10px auto 0!important;
  border-radius:16px!important;
  border:1px solid rgba(203,213,225,.90)!important;
  color:#0f172a!important;
  background:#ffffff!important;
  box-shadow:0 14px 34px rgba(2,6,23,.20)!important;
  caret-color:#2563eb!important;
  font-weight:650!important;
}
.swal2-popup.mpc-files-swal-popup textarea.swal2-textarea,
.swal2-popup.mpc-system-alert-popup textarea.swal2-textarea{
  min-height:120px!important;
  height:auto!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-input.mpc-files-swal-input::placeholder,
.swal2-popup.mpc-files-swal-popup input.swal2-input::placeholder,
.swal2-popup.mpc-system-alert-popup .swal2-input::placeholder,
.swal2-popup.mpc-system-alert-popup .swal2-textarea::placeholder{
  color:#64748b!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-input.mpc-files-swal-input:focus,
.swal2-popup.mpc-files-swal-popup input.swal2-input:focus,
.swal2-popup.mpc-system-alert-popup .swal2-input:focus,
.swal2-popup.mpc-system-alert-popup .swal2-textarea:focus,
.swal2-popup.mpc-system-alert-popup .swal2-select:focus{
  border-color:#2563eb!important;
  box-shadow:0 0 0 .24rem rgba(37,99,235,.20),0 14px 34px rgba(2,6,23,.20)!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-validation-message,
.swal2-popup.mpc-system-alert-popup .swal2-validation-message{
  position:relative!important;
  z-index:1!important;
  width:min(440px,calc(100% - 56px))!important;
  margin:14px auto 0!important;
  border-radius:14px!important;
  color:#7f1d1d!important;
  background:#fee2e2!important;
  font-weight:700!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-actions{
  position:relative;
  z-index:1;
  gap:10px!important;
  padding:28px 32px 34px!important;
  margin:0!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-confirm,
.swal2-popup.mpc-files-swal-popup .btn-primary{
  min-width:148px!important;
  border:0!important;
  border-radius:14px!important;
  padding:13px 24px!important;
  color:#ffffff!important;
  background:linear-gradient(135deg,#2563eb,#38bdf8)!important;
  box-shadow:0 14px 32px rgba(37,99,235,.32)!important;
  font-weight:800!important;
}
.swal2-popup.mpc-files-swal-popup .swal2-cancel,
.swal2-popup.mpc-files-swal-popup .btn-light{
  min-width:138px!important;
  border:1px solid rgba(203,213,225,.20)!important;
  border-radius:14px!important;
  padding:13px 24px!important;
  color:#e2e8f0!important;
  background:rgba(255,255,255,.08)!important;
  font-weight:800!important;
}
.swal2-popup.mpc-files-swal-popup .text-muted{color:rgba(255,255,255,.72)!important;}

.swal2-popup.mpc-toast-popup,
.swal2-popup.swal2-toast{
  color-scheme:light!important;
  border-radius:22px!important;
}

@media (max-width:576px){
  .swal2-popup.mpc-files-swal-popup{
    width:calc(100vw - 24px)!important;
    border-radius:20px!important;
  }
  .swal2-popup.mpc-files-swal-popup .swal2-title{
    padding-left:24px!important;
    padding-right:24px!important;
    font-size:1.22rem!important;
  }
  .swal2-popup.mpc-files-swal-popup .swal2-actions{
    padding-left:20px!important;
    padding-right:20px!important;
  }
}

/* System Audit module redesign */
.mpc-system-audit-card{
  overflow:hidden;
  border:1px solid rgba(37,99,235,.16)!important;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%)!important;
}
.mpc-system-audit-panel{padding:0;}
.mpc-system-audit-hero{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:18px;
  padding:28px;
  background:
    radial-gradient(circle at 96% 12%,rgba(45,212,191,.18),transparent 32%),
    linear-gradient(135deg,#eff6ff 0%,#ffffff 70%);
  border-bottom:1px solid rgba(148,163,184,.18);
}
.mpc-system-audit-hero-icon{
  width:64px;
  height:64px;
  border-radius:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#ffffff;
  background:linear-gradient(135deg,#2563eb,#14b8a6);
  box-shadow:0 18px 42px rgba(37,99,235,.24);
  font-size:1.65rem;
}
.mpc-system-audit-hero-copy span,
.mpc-system-audit-modal-head span{
  display:block;
  color:#2563eb;
  font-size:.74rem;
  font-weight:950;
  letter-spacing:.095em;
  text-transform:uppercase;
}
.mpc-system-audit-hero-copy h3,
.mpc-system-audit-modal-head h3{
  margin:.15rem 0 .25rem;
  color:#0f172a;
  font-weight:900;
  letter-spacing:-.03em;
}
.mpc-system-audit-hero-copy p,
.mpc-system-audit-modal-head p{
  margin:0;
  color:#64748b;
  font-weight:650;
}
.mpc-system-audit-primary-btn{
  border-radius:16px!important;
  min-height:44px;
  padding:0 20px!important;
  font-weight:850!important;
  box-shadow:0 16px 34px rgba(37,99,235,.22)!important;
}
.mpc-system-audit-feature-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:20px 28px 28px;
}
.mpc-system-audit-feature{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 14px 34px rgba(15,23,42,.045);
}
.mpc-system-audit-feature i{
  width:40px;
  height:40px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#1d4ed8;
  background:#eff6ff;
  flex:0 0 auto;
}
.mpc-system-audit-feature strong{display:block;color:#0f172a;font-weight:900;}
.mpc-system-audit-feature span{display:block;color:#64748b;font-size:.84rem;font-weight:650;}
.swal2-popup.mpc-system-audit-swal{
  padding:0!important;
  border-radius:26px!important;
  overflow:hidden!important;
  background:#ffffff!important;
  box-shadow:0 32px 90px rgba(15,23,42,.34)!important;
}
.mpc-system-audit-html{padding:0!important;margin:0!important;}
.mpc-system-audit-modal{padding:0;text-align:left;}
.mpc-system-audit-modal-head{
  display:flex;
  align-items:center;
  gap:16px;
  padding:26px 30px;
  background:linear-gradient(135deg,#eff6ff,#ffffff 70%);
  border-bottom:1px solid rgba(148,163,184,.18);
}
.mpc-system-audit-modal-icon{
  width:56px;
  height:56px;
  border-radius:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#14b8a6);
  box-shadow:0 16px 36px rgba(37,99,235,.22);
  flex:0 0 auto;
}
.mpc-system-audit-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  padding:20px 30px;
  margin:0;
}
.mpc-system-audit-summary > div{
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  padding:14px 16px;
  background:#f8fafc;
}
.mpc-system-audit-table-wrap{
  margin:0 30px 28px;
  max-height:520px;
  overflow:auto;
  border:1px solid rgba(148,163,184,.2);
  border-radius:20px;
  background:#fff;
}
.mpc-system-audit-table{margin-bottom:0!important;}
.mpc-system-audit-table thead th{
  position:sticky;
  top:0;
  z-index:2;
  background:#f8fafc!important;
  color:#475569!important;
  font-size:.74rem;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.mpc-system-audit-action-badge{
  display:inline-flex;
  align-items:center;
  padding:.36rem .62rem;
  border-radius:999px;
  color:#1d4ed8;
  background:#eff6ff;
  border:1px solid rgba(37,99,235,.18);
  font-size:.74rem;
  font-weight:850;
}
@media (max-width:991.98px){
  .mpc-system-audit-hero{grid-template-columns:auto 1fr;}
  .mpc-system-audit-primary-btn{grid-column:1/-1;width:100%;}
  .mpc-system-audit-feature-grid{grid-template-columns:1fr;}
  .mpc-system-audit-summary{grid-template-columns:1fr;}
}

/* Files module - real upload progress overlay */
.mpc-file-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: all;
  transition: opacity .18s ease;
}

.mpc-file-upload-overlay.is-visible {
  opacity: 1;
}

.mpc-file-upload-overlay.is-closing {
  opacity: 0;
}

.mpc-file-upload-overlay .mpc-file-upload-panel {
  width: min(94vw, 560px);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .09), transparent 34%),
    radial-gradient(circle at bottom right, rgba(16, 185, 129, .08), transparent 32%),
    #ffffff;
  border: 1px solid #e4eaf3;
  box-shadow: 0 32px 90px rgba(15, 23, 42, .24);
  padding: 28px;
  color: #10204f;
}

.mpc-file-upload-overlay .mpc-file-upload-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.mpc-file-upload-overlay .mpc-file-upload-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .34);
  box-shadow: 0 14px 34px rgba(37, 99, 235, .28);
  font-size: 1.65rem;
  margin: 0;
}

.mpc-file-upload-overlay .mpc-file-upload-eyebrow {
  color: #2563eb;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.mpc-file-upload-overlay .mpc-file-upload-title {
  color: #10204f !important;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}

.mpc-file-upload-overlay .mpc-file-upload-subtitle {
  color: #64748b !important;
  font-size: .94rem;
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: none;
}

.mpc-file-upload-overlay .mpc-file-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #334155;
  font-size: .88rem;
  font-weight: 700;
  margin-bottom: 9px;
}

.mpc-file-upload-overlay .mpc-file-progress-info strong {
  min-width: 52px;
  text-align: right;
  color: #10204f;
  font-size: .98rem;
  font-weight: 900;
}

.mpc-file-upload-overlay .mpc-file-progress-track {
  height: 13px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
  border: 1px solid #dbe4f0;
}

.mpc-file-upload-overlay .mpc-file-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #10b981);
  transition: width .18s ease;
  box-shadow: 0 0 20px rgba(37, 99, 235, .26);
}

.mpc-file-upload-overlay.is-complete .mpc-file-progress-bar {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.mpc-file-upload-overlay .mpc-file-upload-detail {
  margin-top: 12px;
  color: #64748b !important;
  font-size: .82rem;
  line-height: 1.45;
}

@media (max-width: 576px) {
  .mpc-file-upload-overlay {
    padding: 14px;
  }

  .mpc-file-upload-overlay .mpc-file-upload-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .mpc-file-upload-overlay .mpc-file-upload-panel-header {
    align-items: flex-start;
  }
}


/* System Audit modal - final wide landscape layout */
.swal2-container .swal2-popup.mpc-system-audit-swal{
  width:min(94vw,1480px)!important;
  max-width:calc(100vw - 64px)!important;
  max-height:calc(100vh - 56px)!important;
  padding:0!important;
  border-radius:28px!important;
  overflow:hidden!important;
  background:#ffffff!important;
  box-shadow:0 34px 95px rgba(15,23,42,.34)!important;
}
.swal2-popup.mpc-system-audit-swal .swal2-title{display:none!important;}
.swal2-popup.mpc-system-audit-swal .swal2-html-container,
.swal2-popup.mpc-system-audit-swal .mpc-system-audit-html{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
.swal2-popup.mpc-system-audit-swal .swal2-actions{
  width:100%!important;
  margin:0!important;
  padding:18px 28px!important;
  justify-content:flex-end!important;
  background:#ffffff!important;
  border-top:1px solid rgba(148,163,184,.22)!important;
}
.swal2-popup.mpc-system-audit-swal .swal2-confirm{
  min-width:144px!important;
  border-radius:14px!important;
  font-weight:850!important;
  box-shadow:0 12px 26px rgba(37,99,235,.22)!important;
}
.mpc-system-audit-modal{
  width:100%!important;
  max-width:none!important;
  padding:0!important;
  text-align:left!important;
  background:#ffffff!important;
}
.mpc-system-audit-modal-head{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  padding:26px 32px!important;
  background:linear-gradient(135deg,#eff6ff 0%,#ffffff 58%,#ecfeff 100%)!important;
  border-bottom:1px solid rgba(148,163,184,.2)!important;
}
.mpc-system-audit-modal-head > div:last-child{
  min-width:0!important;
}
.mpc-system-audit-modal-head h3{
  margin:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.mpc-system-audit-summary{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  padding:20px 32px!important;
  margin:0!important;
}
.mpc-system-audit-summary > div{
  min-height:78px!important;
  border:1px solid rgba(148,163,184,.24)!important;
  border-radius:18px!important;
  padding:16px 18px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  box-shadow:0 12px 24px rgba(15,23,42,.04)!important;
}
.mpc-system-audit-summary strong{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
.mpc-system-audit-table-wrap{
  margin:0 32px 28px!important;
  max-height:54vh!important;
  overflow:auto!important;
  border:1px solid rgba(148,163,184,.24)!important;
  border-radius:20px!important;
  background:#ffffff!important;
  box-shadow:0 18px 40px rgba(15,23,42,.06)!important;
}
.mpc-system-audit-table{
  width:100%!important;
  min-width:1120px!important;
  margin-bottom:0!important;
  table-layout:auto!important;
}
.mpc-system-audit-table thead th{
  position:sticky!important;
  top:0!important;
  z-index:3!important;
  padding:14px 16px!important;
  background:#f8fafc!important;
  color:#475569!important;
  border-bottom:1px solid rgba(148,163,184,.24)!important;
  font-size:.72rem!important;
  text-transform:uppercase!important;
  letter-spacing:.07em!important;
  white-space:nowrap!important;
}
.mpc-system-audit-table tbody td{
  padding:14px 16px!important;
  color:#0f172a!important;
  font-size:.92rem!important;
  vertical-align:top!important;
  line-height:1.4!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
.mpc-system-audit-table th:nth-child(1),
.mpc-system-audit-table td:nth-child(1){
  width:190px!important;
  min-width:190px!important;
  white-space:nowrap!important;
}
.mpc-system-audit-table th:nth-child(2),
.mpc-system-audit-table td:nth-child(2){
  width:150px!important;
  min-width:150px!important;
}
.mpc-system-audit-table th:nth-child(3),
.mpc-system-audit-table td:nth-child(3){
  width:170px!important;
  min-width:170px!important;
}
.mpc-system-audit-table th:nth-child(4),
.mpc-system-audit-table td:nth-child(4){
  width:180px!important;
  min-width:180px!important;
}
.mpc-system-audit-table th:nth-child(5),
.mpc-system-audit-table td:nth-child(5){
  min-width:220px!important;
}
.mpc-system-audit-table th:nth-child(6),
.mpc-system-audit-table td:nth-child(6){
  min-width:360px!important;
}
.mpc-system-audit-action-badge{
  white-space:nowrap!important;
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  max-width:100%!important;
}
@media (max-width:991.98px){
  .swal2-container .swal2-popup.mpc-system-audit-swal{
    width:96vw!important;
    max-width:96vw!important;
  }
  .mpc-system-audit-modal-head{padding:22px 22px!important;}
  .mpc-system-audit-summary{grid-template-columns:1fr!important;padding:18px 22px!important;}
  .mpc-system-audit-table-wrap{margin:0 22px 22px!important;max-height:56vh!important;}
  .swal2-popup.mpc-system-audit-swal .swal2-actions{padding:16px 22px!important;}
}

/* ==========================================================
   Client module hero headers
   Replicates the premium System Audit header style across all
   Individual and Business profile modules without changing logic.
   ========================================================== */
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:18px!important;
  min-height:118px!important;
  padding:26px 28px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 96% 10%,rgba(45,212,191,.22),transparent 34%),
    radial-gradient(circle at 2% 0%,rgba(37,99,235,.13),transparent 34%),
    linear-gradient(135deg,#eff6ff 0%,#ffffff 58%,#ecfeff 100%)!important;
  border-bottom:1px solid rgba(148,163,184,.22)!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean::after,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(37,99,235,.32),rgba(20,184,166,.26),transparent);
  pointer-events:none;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:18px!important;
  min-width:0!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-title-icon,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-title-icon{
  width:64px!important;
  height:64px!important;
  border-radius:22px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#ffffff!important;
  background:linear-gradient(135deg,#2563eb 0%,#14b8a6 100%)!important;
  box-shadow:0 18px 42px rgba(37,99,235,.22)!important;
  font-size:1.58rem!important;
  flex:0 0 auto!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title > div,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title > div{
  min-width:0!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title > div:not(.mpc-title-icon)::before,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title > div:not(.mpc-title-icon)::before{
  content:"CLIENT MODULE";
  display:block;
  margin:0 0 .18rem!important;
  color:#2563eb!important;
  font-size:.72rem!important;
  line-height:1.1!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title > div:not(.mpc-title-icon)::before{
  content:"BUSINESS MODULE";
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title h3,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title h3{
  margin:0!important;
  color:#0f172a!important;
  font-size:1.55rem!important;
  font-weight:950!important;
  letter-spacing:-.035em!important;
  line-height:1.08!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title span,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title span{
  display:block!important;
  margin:.36rem 0 0!important;
  color:#64748b!important;
  font-size:.88rem!important;
  line-height:1.35!important;
  font-weight:650!important;
  letter-spacing:0!important;
  text-transform:none!important;
  max-width:760px!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions,
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-contact-action-badge,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-contact-action-badge{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-left:auto!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions .btn,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions .btn{
  min-height:44px!important;
  border-radius:16px!important;
  padding:.7rem 1.05rem!important;
  font-weight:850!important;
  box-shadow:0 16px 34px rgba(37,99,235,.16)!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions .btn-outline-primary,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions .btn-outline-primary{
  color:#1d4ed8!important;
  background:rgba(255,255,255,.82)!important;
  border-color:rgba(37,99,235,.24)!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-contact-action-badge,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-contact-action-badge{
  min-height:44px!important;
  border-radius:999px!important;
  padding:.65rem 1rem!important;
  color:#0f766e!important;
  background:rgba(255,255,255,.86)!important;
  border:1px solid rgba(20,184,166,.2)!important;
  box-shadow:0 14px 30px rgba(15,118,110,.1)!important;
}
.mpc-view-page .mpc-tab-content .mpc-module-card,
.business-client-view-page .mpc-tab-content .mpc-module-card{
  border-radius:22px!important;
  border:1px solid rgba(148,163,184,.24)!important;
  overflow:hidden!important;
  background:#ffffff!important;
  box-shadow:0 20px 46px rgba(15,23,42,.065)!important;
}
@media (max-width:991.98px){
  .mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean,
  .business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    padding:22px!important;
  }
  .mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions,
  .business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions,
  .mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-contact-action-badge,
  .business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-contact-action-badge{
    justify-content:flex-start!important;
    width:100%!important;
    margin-left:0!important;
  }
}
@media (max-width:575.98px){
  .mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title,
  .business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title{
    grid-template-columns:1fr!important;
  }
  .mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-title-icon,
  .business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-title-icon{
    width:56px!important;
    height:56px!important;
    border-radius:18px!important;
  }
  .mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title h3,
  .business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title h3{
    font-size:1.32rem!important;
  }
  .mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions .btn,
  .business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions .btn{
    width:100%!important;
  }
}


/* Hero header icon text safety override */
.mpc-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-title-icon::before,
.business-client-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-title-icon::before{
  content:none!important;
  display:none!important;
}

/* ==========================================================
   Premium Create / Edit / View hero headers
   Keeps the same premium visual language used by client modules.
   Icon area must contain only the icon, never duplicated text.
   ========================================================== */
.mpc-create-page > .mpc-create-hero.mpc-profile-page-hero{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:22px!important;
  min-height:138px!important;
  padding:30px 34px!important;
  border:1px solid rgba(37,99,235,.16)!important;
  border-radius:26px!important;
  color:#0f172a!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 96% 8%,rgba(45,212,191,.24),transparent 34%),
    radial-gradient(circle at 0% 0%,rgba(37,99,235,.15),transparent 36%),
    linear-gradient(135deg,#eff6ff 0%,#ffffff 58%,#ecfeff 100%)!important;
  box-shadow:0 22px 56px rgba(15,23,42,.08)!important;
}
.mpc-create-page > .mpc-create-hero.mpc-profile-page-hero::after{
  content:""!important;
  position:absolute!important;
  inset:auto 0 0 0!important;
  width:auto!important;
  height:1px!important;
  border-radius:0!important;
  background:linear-gradient(90deg,transparent,rgba(37,99,235,.34),rgba(20,184,166,.28),transparent)!important;
  pointer-events:none!important;
}
.mpc-profile-page-hero-main{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:20px!important;
  min-width:0!important;
}
.mpc-profile-page-hero-icon{
  width:68px!important;
  height:68px!important;
  border-radius:24px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#ffffff!important;
  background:linear-gradient(135deg,#2563eb 0%,#14b8a6 100%)!important;
  box-shadow:0 20px 44px rgba(37,99,235,.24)!important;
  font-size:1.72rem!important;
  line-height:1!important;
  flex:0 0 auto!important;
  overflow:hidden!important;
  text-indent:0!important;
  white-space:nowrap!important;
}
.mpc-profile-page-hero-icon::before,
.mpc-profile-page-hero-icon::after{
  content:none!important;
  display:none!important;
}
.mpc-profile-page-hero-icon i{
  position:relative!important;
  z-index:2!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  color:#ffffff!important;
  font-size:1.65rem!important;
  line-height:1!important;
}
.mpc-profile-page-hero-copy{
  position:relative!important;
  z-index:2!important;
  min-width:0!important;
}
.mpc-profile-page-hero .mpc-create-kicker{
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0 0 .28rem!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#2563eb!important;
  font-size:.74rem!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
  line-height:1.12!important;
  text-transform:uppercase!important;
}
.mpc-profile-page-hero .mpc-create-kicker i{
  display:none!important;
}
.mpc-profile-page-hero h2{
  margin:0!important;
  color:#0f172a!important;
  font-size:2rem!important;
  line-height:1.05!important;
  font-weight:950!important;
  letter-spacing:-.045em!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.mpc-profile-page-hero p,
.mpc-profile-page-hero .business-hero-subtitle{
  display:block!important;
  max-width:860px!important;
  margin:.45rem 0 0!important;
  color:#64748b!important;
  font-size:.95rem!important;
  line-height:1.45!important;
  font-weight:650!important;
}
.mpc-profile-page-hero-actions{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
.mpc-profile-page-hero-actions .btn{
  min-height:44px!important;
  border-radius:16px!important;
  padding:.7rem 1.05rem!important;
  font-weight:850!important;
}
.mpc-profile-page-hero-actions .btn-light{
  color:#0f172a!important;
  background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(148,163,184,.24)!important;
  box-shadow:0 14px 30px rgba(15,23,42,.08)!important;
}
.mpc-profile-page-hero-actions .mpc-view-client-soft-btn{
  color:#1d4ed8!important;
  background:rgba(239,246,255,.9)!important;
  border:1px solid rgba(37,99,235,.22)!important;
  box-shadow:0 14px 30px rgba(37,99,235,.12)!important;
}
.mpc-profile-page-hero-actions .btn:hover,
.mpc-profile-page-hero-actions .btn:focus{
  transform:translateY(-1px);
}
@media (max-width:991.98px){
  .mpc-create-page > .mpc-create-hero.mpc-profile-page-hero{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    padding:24px!important;
  }
  .mpc-profile-page-hero-actions{
    justify-content:flex-start!important;
  }
}
@media (max-width:575.98px){
  .mpc-profile-page-hero-main{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  .mpc-profile-page-hero-icon{
    width:58px!important;
    height:58px!important;
    border-radius:20px!important;
    font-size:1.42rem!important;
  }
  .mpc-profile-page-hero-icon i{font-size:1.42rem!important;}
  .mpc-profile-page-hero h2{font-size:1.52rem!important;}
  .mpc-profile-page-hero-actions .btn{width:100%!important;}
}

/* ==========================================================
   FORCE Create/Edit/View premium page hero parity
   Applied after prior styles so Create and Edit look exactly
   like the View header. Icon box must contain only the icon.
   ========================================================== */
body .mpc-create-page > .mpc-create-hero.mpc-profile-page-hero,
body .mpc-create-page > .mpc-create-hero.mpc-page-mode-hero,
body .mpc-view-page > .mpc-create-hero.mpc-profile-page-hero{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:22px!important;
  min-height:138px!important;
  padding:30px 34px!important;
  border:1px solid rgba(37,99,235,.16)!important;
  border-radius:26px!important;
  color:#0f172a!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 96% 8%,rgba(45,212,191,.24),transparent 34%),
    radial-gradient(circle at 0% 0%,rgba(37,99,235,.15),transparent 36%),
    linear-gradient(135deg,#eff6ff 0%,#ffffff 58%,#ecfeff 100%)!important;
  box-shadow:0 22px 56px rgba(15,23,42,.08)!important;
}
body .mpc-create-page > .mpc-create-hero.mpc-profile-page-hero::after,
body .mpc-create-page > .mpc-create-hero.mpc-page-mode-hero::after,
body .mpc-view-page > .mpc-create-hero.mpc-profile-page-hero::after{
  content:""!important;
  position:absolute!important;
  inset:auto 0 0 0!important;
  width:auto!important;
  height:1px!important;
  border-radius:0!important;
  background:linear-gradient(90deg,transparent,rgba(37,99,235,.34),rgba(20,184,166,.28),transparent)!important;
  pointer-events:none!important;
}
body .mpc-create-page .mpc-profile-page-hero-main,
body .mpc-view-page .mpc-profile-page-hero-main{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:20px!important;
  min-width:0!important;
}
body .mpc-create-page .mpc-profile-page-hero-icon,
body .mpc-view-page .mpc-profile-page-hero-icon{
  width:68px!important;
  height:68px!important;
  min-width:68px!important;
  border-radius:24px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:#ffffff!important;
  background:linear-gradient(135deg,#2563eb 0%,#14b8a6 100%)!important;
  box-shadow:0 20px 44px rgba(37,99,235,.24)!important;
  font-size:1.72rem!important;
  line-height:1!important;
  flex:0 0 auto!important;
  overflow:hidden!important;
  text-indent:0!important;
  white-space:nowrap!important;
}
body .mpc-create-page .mpc-profile-page-hero-icon::before,
body .mpc-create-page .mpc-profile-page-hero-icon::after,
body .mpc-view-page .mpc-profile-page-hero-icon::before,
body .mpc-view-page .mpc-profile-page-hero-icon::after{
  content:none!important;
  display:none!important;
}
body .mpc-create-page .mpc-profile-page-hero-icon i,
body .mpc-view-page .mpc-profile-page-hero-icon i{
  position:relative!important;
  z-index:2!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  color:#ffffff!important;
  font-size:1.65rem!important;
  line-height:1!important;
}
body .mpc-create-page .mpc-profile-page-hero-copy,
body .mpc-view-page .mpc-profile-page-hero-copy{
  position:relative!important;
  z-index:2!important;
  min-width:0!important;
}
body .mpc-create-page .mpc-profile-page-hero .mpc-create-kicker,
body .mpc-view-page .mpc-profile-page-hero .mpc-create-kicker{
  display:block!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0 0 .28rem!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:#2563eb!important;
  font-size:.74rem!important;
  font-weight:950!important;
  letter-spacing:.12em!important;
  line-height:1.12!important;
  text-transform:uppercase!important;
}
body .mpc-create-page .mpc-profile-page-hero .mpc-create-kicker i,
body .mpc-view-page .mpc-profile-page-hero .mpc-create-kicker i{
  display:none!important;
}
body .mpc-create-page .mpc-profile-page-hero h2,
body .mpc-view-page .mpc-profile-page-hero h2{
  margin:0!important;
  color:#0f172a!important;
  font-size:2rem!important;
  line-height:1.05!important;
  font-weight:950!important;
  letter-spacing:-.045em!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body .mpc-create-page .mpc-profile-page-hero p,
body .mpc-create-page .mpc-profile-page-hero .business-hero-subtitle,
body .mpc-view-page .mpc-profile-page-hero p,
body .mpc-view-page .mpc-profile-page-hero .business-hero-subtitle{
  display:block!important;
  max-width:860px!important;
  margin:.45rem 0 0!important;
  color:#64748b!important;
  font-size:.95rem!important;
  line-height:1.45!important;
  font-weight:650!important;
}
body .mpc-create-page .mpc-profile-page-hero-actions,
body .mpc-view-page .mpc-profile-page-hero-actions{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
}
body .mpc-create-page .mpc-profile-page-hero-actions .btn,
body .mpc-view-page .mpc-profile-page-hero-actions .btn{
  min-height:44px!important;
  border-radius:16px!important;
  padding:.7rem 1.05rem!important;
  font-weight:850!important;
}
body .mpc-create-page .mpc-profile-page-hero-actions .btn-light,
body .mpc-view-page .mpc-profile-page-hero-actions .btn-light{
  color:#0f172a!important;
  background:rgba(255,255,255,.88)!important;
  border:1px solid rgba(148,163,184,.24)!important;
  box-shadow:0 14px 30px rgba(15,23,42,.08)!important;
}
body .mpc-create-page .mpc-profile-page-hero-actions .mpc-view-client-soft-btn,
body .mpc-view-page .mpc-profile-page-hero-actions .mpc-view-client-soft-btn{
  color:#1d4ed8!important;
  background:rgba(239,246,255,.9)!important;
  border:1px solid rgba(37,99,235,.22)!important;
  box-shadow:0 14px 30px rgba(37,99,235,.12)!important;
}
@media (max-width:991.98px){
  body .mpc-create-page > .mpc-create-hero.mpc-profile-page-hero,
  body .mpc-create-page > .mpc-create-hero.mpc-page-mode-hero,
  body .mpc-view-page > .mpc-create-hero.mpc-profile-page-hero{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    padding:24px!important;
  }
  body .mpc-create-page .mpc-profile-page-hero-actions,
  body .mpc-view-page .mpc-profile-page-hero-actions{
    justify-content:flex-start!important;
  }
}
@media (max-width:575.98px){
  body .mpc-create-page .mpc-profile-page-hero-main,
  body .mpc-view-page .mpc-profile-page-hero-main{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  body .mpc-create-page .mpc-profile-page-hero-icon,
  body .mpc-view-page .mpc-profile-page-hero-icon{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    border-radius:20px!important;
  }
  body .mpc-create-page .mpc-profile-page-hero-icon i,
  body .mpc-view-page .mpc-profile-page-hero-icon i{font-size:1.42rem!important;}
  body .mpc-create-page .mpc-profile-page-hero h2,
  body .mpc-view-page .mpc-profile-page-hero h2{font-size:1.52rem!important;}
  body .mpc-create-page .mpc-profile-page-hero-actions .btn,
  body .mpc-view-page .mpc-profile-page-hero-actions .btn{width:100%!important;}
}


/* =========================================================
   Full-screen Client/Business Files Workspace
   ========================================================= */
.action-btn.files{
  color:#0f766e;
  background:#e8fbf7;
}
.action-btn.files:hover,
.action-btn.files:focus{
  color:#0d5f59;
  background:#d7f7f0;
}
.directory-actions{
  min-width:212px;
}
.mpc-files-workspace-page{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.mpc-files-workspace-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:28px;
  border:1px solid rgba(37,99,235,.14);
  border-radius:30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(59,130,246,.18), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(20,184,166,.18), transparent 32%),
    linear-gradient(135deg,#ffffff 0%,#f8fbff 58%,#eef7ff 100%);
  box-shadow:0 24px 70px rgba(15,23,42,.08);
}
.mpc-files-workspace-hero::after{
  content:"";
  position:absolute;
  inset:auto -60px -110px auto;
  width:300px;
  height:300px;
  border-radius:999px;
  background:rgba(37,99,235,.08);
  pointer-events:none;
}
.mpc-files-workspace-hero-main{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:20px;
  min-width:0;
}
.mpc-files-workspace-icon{
  width:78px;
  height:78px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:26px;
  color:#fff;
  font-size:2rem;
  background:linear-gradient(135deg,#2563eb 0%,#14b8a6 100%);
  box-shadow:0 18px 36px rgba(37,99,235,.25);
}
.mpc-files-workspace-copy{
  min-width:0;
}
.mpc-files-workspace-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:7px;
  color:#2563eb;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.mpc-files-workspace-copy h1{
  margin:0;
  color:#0f172a;
  font-size:clamp(1.75rem,2.8vw,2.65rem);
  line-height:1.05;
  letter-spacing:-.045em;
  font-weight:850;
}
.mpc-files-workspace-copy p{
  max-width:790px;
  margin:10px 0 0;
  color:#64748b;
  font-size:.98rem;
  line-height:1.65;
}
.mpc-files-workspace-meta{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:16px;
}
.mpc-files-workspace-meta span{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 11px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:999px;
  color:#334155;
  background:rgba(255,255,255,.72);
  font-size:.8rem;
  font-weight:750;
  box-shadow:0 10px 22px rgba(15,23,42,.04);
}
.mpc-files-workspace-actions{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
  flex:0 0 auto;
}
.mpc-files-workspace-link{
  border-radius:14px!important;
  font-weight:750!important;
  box-shadow:0 12px 26px rgba(15,23,42,.08);
}
.mpc-files-workspace-shell{
  display:block;
}
.mpc-files-workspace-side{
  display:grid;
  gap:16px;
  position:sticky;
  top:108px;
}
.mpc-files-context-card{
  overflow:hidden;
  border:1px solid rgba(226,232,240,.92);
  border-radius:24px;
  padding:20px;
  background:linear-gradient(180deg,#fff,#f8fafc);
  box-shadow:0 18px 46px rgba(15,23,42,.06);
}
.mpc-files-context-card.is-soft{
  background:linear-gradient(135deg,#eff6ff,#f0fdfa);
  border-color:rgba(37,99,235,.14);
}
.mpc-files-context-label{
  display:block;
  color:#2563eb;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.mpc-files-context-card h2,
.mpc-files-context-card h3{
  margin:0;
  color:#0f172a;
  font-weight:850;
  letter-spacing:-.03em;
}
.mpc-files-context-card h2{
  font-size:1.15rem;
  line-height:1.22;
}
.mpc-files-context-card h3{
  font-size:1rem;
}
.mpc-files-context-card p{
  margin:8px 0 0;
  color:#64748b;
  font-size:.86rem;
  line-height:1.55;
}
.mpc-files-workspace-main{
  min-width:0;
}
.mpc-files-workspace-main .mpc-files-card{
  border:1px solid rgba(226,232,240,.9);
  border-radius:28px;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
}
.mpc-files-workspace-main .mpc-files-card-header{
  padding:20px 22px;
  background:linear-gradient(135deg,#ffffff,#f8fafc);
}
.mpc-files-workspace-main .mpc-files-card .card-body{
  padding:22px;
}
.mpc-files-workspace-main .mpc-files-table-wrap{
  min-height:calc(100vh - 360px);
}
.mpc-files-workspace-main .mpc-files-table thead th{
  white-space:nowrap;
}
.mpc-files-workspace-main .mpc-files-name-button,
.mpc-files-workspace-main .mpc-files-file-name{
  max-width:100%;
}
@media (max-width:1199.98px){
  .mpc-files-workspace-hero{
    align-items:flex-start;
    flex-direction:column;
  }
  .mpc-files-workspace-actions{
    justify-content:flex-start;
  }
  .mpc-files-workspace-shell{
    grid-template-columns:1fr;
  }
  .mpc-files-workspace-side{
    position:static;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:767.98px){
  .mpc-files-workspace-hero{
    padding:22px;
    border-radius:24px;
  }
  .mpc-files-workspace-hero-main{
    align-items:flex-start;
    flex-direction:column;
  }
  .mpc-files-workspace-icon{
    width:66px;
    height:66px;
    border-radius:22px;
    font-size:1.65rem;
  }
  .mpc-files-workspace-actions,
  .mpc-files-workspace-link{
    width:100%;
  }
  .mpc-files-workspace-side{
    grid-template-columns:1fr;
  }
  .directory-actions{
    min-width:190px;
  }
}

/* Files full-screen workspace - no side context cards */
.mpc-files-workspace-shell{
  display:block!important;
}
.mpc-files-workspace-side,
.mpc-files-context-card{
  display:none!important;
}
.mpc-files-workspace-main{
  width:100%;
  max-width:100%;
}

/* Files global search + clean header */
.mpc-files-card-header .mpc-files-title-icon-only{
  min-width: auto;
  flex: 0 0 auto;
}

.mpc-files-card-header .mpc-files-title-icon-only .mpc-title-icon{
  margin: 0;
}

.mpc-files-searching .mpc-files-search-input{
  background-image: linear-gradient(90deg, rgba(37,99,235,.08), rgba(20,184,166,.10), rgba(37,99,235,.08));
  background-size: 220% 100%;
  animation: mpcFilesSearchPulse 1.3s linear infinite;
}

@keyframes mpcFilesSearchPulse{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 220% 50%; }
}

.mpc-files-name-stack{
  display: inline-flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 0;
}

.mpc-files-result-path{
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  color: #64748b!important;
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none!important;
  max-width: min(560px, 62vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mpc-files-result-path i{
  color: #2563eb;
  font-size: .78rem;
}

.mpc-files-name-button:hover .mpc-files-name-stack > span:first-child{
  color: #2563eb;
  text-decoration: underline;
}

.mpc-files-name-button:hover .mpc-files-result-path{
  color: #475569!important;
  text-decoration: none!important;
}

/* Files embedded header titles - show title in profile pages, keep full-screen workspace icon-only */
.mpc-files-card-header .mpc-files-title{
  min-width:0;
  flex:1 1 auto;
}
.mpc-files-card-header .mpc-files-title .mpc-title-icon{
  flex:0 0 auto;
}
.mpc-files-title-copy{
  min-width:0;
}
.mpc-files-title-copy h3{
  margin:0;
  color:#0f172a;
  font-weight:850;
  letter-spacing:-.02em;
  line-height:1.15;
}
.mpc-files-title-copy span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.78rem;
  font-weight:700;
}
.mpc-files-workspace-main .mpc-files-card-header .mpc-files-title-icon-only{
  flex:0 0 auto;
}

/* =========================================================
   Document Workspace - main menu Files access
   ========================================================= */
.mpc-document-workspace-page{
  display:flex;
  flex-direction:column;
  gap:22px;
}
.mpc-document-workspace-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:30px;
  border:1px solid rgba(37,99,235,.14);
  border-radius:30px;
  background:
    radial-gradient(circle at 10% 20%,rgba(37,99,235,.18),transparent 30%),
    radial-gradient(circle at 92% 8%,rgba(20,184,166,.18),transparent 34%),
    linear-gradient(135deg,#ffffff 0%,#f8fbff 56%,#eff6ff 100%);
  box-shadow:0 24px 70px rgba(15,23,42,.08);
}
.mpc-document-workspace-hero::after{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-130px;
  width:330px;
  height:330px;
  border-radius:999px;
  background:rgba(37,99,235,.075);
  pointer-events:none;
}
.mpc-document-workspace-hero-main{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  gap:20px;
  min-width:0;
}
.mpc-document-workspace-icon{
  width:82px;
  height:82px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:28px;
  color:#fff;
  font-size:2.05rem;
  background:linear-gradient(135deg,#2563eb 0%,#14b8a6 100%);
  box-shadow:0 20px 40px rgba(37,99,235,.25);
}
.mpc-document-workspace-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  color:#2563eb;
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.mpc-document-workspace-hero h2{
  margin:0;
  color:#0f172a;
  font-size:clamp(1.9rem,3vw,2.8rem);
  line-height:1.04;
  letter-spacing:-.05em;
  font-weight:900;
}
.mpc-document-workspace-hero p{
  max-width:710px;
  margin:10px 0 0;
  color:#64748b;
  font-size:1rem;
  line-height:1.62;
}
.mpc-document-workspace-stats{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(3,minmax(110px,1fr));
  gap:10px;
  flex:0 0 auto;
}
.mpc-document-workspace-stats div{
  min-width:110px;
  padding:14px 16px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:20px;
  background:rgba(255,255,255,.74);
  box-shadow:0 14px 30px rgba(15,23,42,.06);
  backdrop-filter:blur(10px);
}
.mpc-document-workspace-stats strong{
  display:block;
  color:#0f172a;
  font-size:1.45rem;
  line-height:1;
  font-weight:900;
}
.mpc-document-workspace-stats span{
  display:block;
  margin-top:6px;
  color:#64748b;
  font-size:.76rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.mpc-document-workspace-shell{
  overflow:hidden;
  border:1px solid rgba(226,232,240,.92);
  border-radius:28px;
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.08);
}
.mpc-document-workspace-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px;
  border-bottom:1px solid rgba(226,232,240,.92);
  background:linear-gradient(135deg,#ffffff,#f8fafc);
}
.mpc-document-workspace-title{
  display:flex;
  align-items:center;
  gap:13px;
  min-width:0;
}
.mpc-document-workspace-title-icon{
  width:42px;
  height:42px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#2563eb;
  background:#eff6ff;
  box-shadow:0 10px 22px rgba(37,99,235,.10);
}
.mpc-document-workspace-title h3{
  margin:0;
  color:#0f172a;
  font-size:1.05rem;
  font-weight:850;
  letter-spacing:-.02em;
}
.mpc-document-workspace-title span{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:.84rem;
  font-weight:650;
}
.mpc-document-workspace-tools{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}
.mpc-document-workspace-search{
  position:relative;
  min-width:min(420px,48vw);
}
.mpc-document-workspace-search > i{
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  color:#94a3b8;
  z-index:2;
}
.mpc-document-workspace-search .form-control{
  min-height:46px;
  padding-left:40px;
  padding-right:42px;
  border-radius:16px;
  border-color:rgba(148,163,184,.32);
  background:#f8fafc;
  font-weight:700;
}
.mpc-document-workspace-search .form-control:focus{
  border-color:rgba(37,99,235,.38);
  box-shadow:0 0 0 .2rem rgba(37,99,235,.09);
  background:#fff;
}
.mpc-document-workspace-clear{
  position:absolute;
  right:9px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border:0;
  border-radius:10px;
  color:#64748b;
  background:#e2e8f0;
}
.mpc-document-workspace-filters{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px;
  border:1px solid rgba(226,232,240,.9);
  border-radius:16px;
  background:#f8fafc;
}
.mpc-document-workspace-filter{
  border:0;
  border-radius:12px;
  padding:9px 12px;
  color:#64748b;
  background:transparent;
  font-size:.83rem;
  font-weight:850;
}
.mpc-document-workspace-filter.active{
  color:#fff;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  box-shadow:0 10px 22px rgba(37,99,235,.20);
}
.mpc-document-workspace-results-meta{
  display:flex;
  align-items:center;
  gap:6px;
  padding:14px 22px;
  color:#64748b;
  font-size:.84rem;
  font-weight:750;
  border-bottom:1px solid rgba(226,232,240,.75);
  background:#fff;
}
.mpc-document-workspace-results-meta span{
  color:#2563eb;
  font-weight:900;
}
.mpc-document-workspace-table-wrap{
  min-height:420px;
}
.mpc-document-workspace-table{
  margin:0;
}
.mpc-document-workspace-table thead th{
  padding:15px 18px;
  color:#64748b;
  background:#f8fafc;
  border-bottom:1px solid rgba(226,232,240,.92);
  font-size:.75rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  white-space:nowrap;
}
.mpc-document-workspace-table tbody td{
  padding:17px 18px;
  border-bottom:1px solid rgba(226,232,240,.72);
  vertical-align:middle;
}
.mpc-document-workspace-table tbody tr:hover{
  background:#f8fbff;
}
.mpc-document-workspace-record{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.mpc-document-workspace-avatar{
  width:42px;
  height:42px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#2563eb;
  background:#eff6ff;
}
.mpc-document-workspace-avatar.is-business{
  color:#0f766e;
  background:#e8fbf7;
}
.mpc-document-workspace-name{
  display:block;
  color:#0f172a;
  font-weight:850;
  line-height:1.2;
}
.mpc-document-workspace-name:hover{
  color:#2563eb;
}
.mpc-document-workspace-record span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.8rem;
  font-weight:700;
}
.mpc-document-workspace-code{
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  color:#1d4ed8;
  background:#eff6ff;
  font-size:.82rem;
  font-weight:900;
  white-space:nowrap;
}
.mpc-document-workspace-type{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;
  color:#2563eb;
  background:#eff6ff;
  font-size:.78rem;
  font-weight:900;
  white-space:nowrap;
}
.mpc-document-workspace-type.is-business{
  color:#0f766e;
  background:#e8fbf7;
}
.mpc-document-workspace-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  border-radius:999px;
  color:#64748b;
  background:#f1f5f9;
  font-size:.78rem;
  font-weight:900;
  white-space:nowrap;
}
.mpc-document-workspace-status > span{
  width:7px;
  height:7px;
  border-radius:999px;
  background:#94a3b8;
}
.mpc-document-workspace-status.is-active{
  color:#047857;
  background:#ecfdf5;
}
.mpc-document-workspace-status.is-active > span{
  background:#10b981;
}
.mpc-document-workspace-date{
  color:#475569;
  font-size:.82rem;
  font-weight:750;
  white-space:nowrap;
}
.mpc-document-workspace-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.mpc-document-workspace-action{
  width:38px;
  height:38px;
  display:inline-grid;
  place-items:center;
  border-radius:13px;
  text-decoration:none;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.mpc-document-workspace-action:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(15,23,42,.10);
}
.mpc-document-workspace-action.is-files{
  color:#0f766e;
  background:#e8fbf7;
}
.mpc-document-workspace-action.is-view{
  color:#2563eb;
  background:#eff6ff;
}
.mpc-document-workspace-action.is-edit{
  color:#7c3aed;
  background:#f5f3ff;
}
.mpc-document-workspace-empty{
  margin:26px;
  padding:38px 22px;
  text-align:center;
  border:1px dashed rgba(148,163,184,.45);
  border-radius:24px;
  background:#f8fafc;
}
.mpc-document-workspace-empty i{
  display:block;
  color:#94a3b8;
  font-size:2.4rem;
  margin-bottom:10px;
}
.mpc-document-workspace-empty h5{
  margin:0;
  color:#0f172a;
  font-weight:850;
}
.mpc-document-workspace-empty p{
  margin:7px 0 0;
  color:#64748b;
  font-weight:650;
}
@media (max-width:1199.98px){
  .mpc-document-workspace-hero,
  .mpc-document-workspace-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .mpc-document-workspace-stats{
    width:100%;
  }
  .mpc-document-workspace-tools,
  .mpc-document-workspace-search{
    width:100%;
  }
  .mpc-document-workspace-search{
    min-width:0;
  }
}
@media (max-width:767.98px){
  .mpc-document-workspace-hero{
    padding:22px;
    border-radius:24px;
  }
  .mpc-document-workspace-hero-main{
    align-items:flex-start;
    flex-direction:column;
  }
  .mpc-document-workspace-icon{
    width:66px;
    height:66px;
    border-radius:22px;
    font-size:1.65rem;
  }
  .mpc-document-workspace-stats{
    grid-template-columns:1fr;
  }
  .mpc-document-workspace-toolbar{
    padding:18px;
  }
  .mpc-document-workspace-filters{
    width:100%;
  }
  .mpc-document-workspace-filter{
    flex:1 1 0;
  }
}

/* My Files - internal user workspace */
.mpc-user-files-profile-banner{
  margin-bottom:1.25rem;
}
.mpc-user-files-profile-banner .mpc-user-files-hero{
  margin-bottom:0;
}
.mpc-user-files-hero{
  margin-bottom:1.25rem;
}
.mpc-user-files-owner{
  display:flex;
  flex-wrap:wrap;
  gap:.65rem;
  margin-top:.85rem;
}
.mpc-user-files-owner span{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  padding:.42rem .72rem;
  border:1px solid rgba(37,99,235,.16);
  border-radius:999px;
  background:rgba(255,255,255,.78);
  color:#334155;
  font-size:.82rem;
  font-weight:700;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.mpc-user-files-owner i{
  color:#2563eb;
}
.mpc-user-files-card .mpc-files-title-copy h3{
  margin:0;
}

/* Dashboard V2 - Executive Control Center */
.mpc-dashboard-v2{
  display:grid;
  gap:24px;
}
.mpc-dashboard-v2-hero{
  position:relative;
  overflow:hidden;
  border-radius:32px;
  background:linear-gradient(135deg,#06142f 0%,#0d2f68 48%,#0f172a 100%);
  color:#fff;
  box-shadow:0 28px 70px rgba(15,23,42,.28);
  isolation:isolate;
}
.mpc-dashboard-v2-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 14% 18%,rgba(56,189,248,.28),transparent 28%),
    radial-gradient(circle at 82% 24%,rgba(59,130,246,.34),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.06),transparent 42%);
  z-index:-1;
}
.mpc-dashboard-v2-hero-glow{
  position:absolute;
  width:340px;
  height:340px;
  right:-110px;
  bottom:-160px;
  border-radius:50%;
  background:rgba(96,165,250,.24);
  filter:blur(8px);
  z-index:-1;
}
.mpc-dashboard-v2-hero-content{
  position:relative;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  padding:34px;
}
.mpc-dashboard-v2-hero-left{
  max-width:760px;
}
.mpc-dashboard-v2-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  color:#bfdbfe;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.16);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:800;
}
.mpc-dashboard-v2-hero h1{
  margin:16px 0 10px;
  font-size:clamp(30px,3.4vw,48px);
  line-height:1.05;
  font-weight:850;
  letter-spacing:-.045em;
}
.mpc-dashboard-v2-hero p{
  margin:0;
  max-width:650px;
  color:#dbeafe;
  font-size:1.02rem;
  line-height:1.7;
}
.mpc-dashboard-v2-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}
.mpc-dashboard-v2-hero-meta span{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:14px;
  color:#eff6ff;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.13);
  font-weight:700;
  font-size:.87rem;
}
.mpc-dashboard-v2-hero-right{
  min-width:315px;
}
.mpc-dashboard-v2-health-card{
  padding:24px;
  border-radius:26px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 18px 42px rgba(2,6,23,.18);
  backdrop-filter:blur(12px);
}
.mpc-dashboard-v2-health-card span{
  display:block;
  color:#bfdbfe;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:850;
}
.mpc-dashboard-v2-health-card strong{
  display:block;
  margin-top:8px;
  font-size:48px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.06em;
}
.mpc-dashboard-v2-health-card small{
  display:block;
  margin-top:11px;
  color:#dbeafe;
  line-height:1.45;
}
.mpc-dashboard-v2-progress{
  height:11px;
  background:rgba(255,255,255,.14);
  border-radius:999px;
  overflow:hidden;
  margin-top:14px;
}
.mpc-dashboard-v2-progress .progress-bar{
  border-radius:999px;
  background:linear-gradient(90deg,#60a5fa,#22d3ee);
}
.mpc-dashboard-v2-progress.slim{
  height:8px;
  margin-top:10px;
  background:#e5eefb;
}
.mpc-dashboard-v2-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}
.mpc-dashboard-v2-kpi{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px;
  min-height:126px;
  border-radius:26px;
  background:#fff;
  border:1px solid rgba(226,232,240,.92);
  box-shadow:0 16px 42px rgba(15,23,42,.08);
}
.mpc-dashboard-v2-kpi-icon{
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:19px;
  font-size:1.55rem;
  background:#eff6ff;
  color:#2563eb;
}
.mpc-dashboard-v2-kpi.is-info .mpc-dashboard-v2-kpi-icon{background:#ecfeff;color:#0891b2;}
.mpc-dashboard-v2-kpi.is-warning .mpc-dashboard-v2-kpi-icon{background:#fff7ed;color:#d97706;}
.mpc-dashboard-v2-kpi.is-danger .mpc-dashboard-v2-kpi-icon{background:#fef2f2;color:#dc2626;}
.mpc-dashboard-v2-kpi span{
  display:block;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#64748b;
  font-weight:850;
}
.mpc-dashboard-v2-kpi strong{
  display:block;
  margin-top:4px;
  font-size:34px;
  line-height:1;
  font-weight:900;
  letter-spacing:-.045em;
  color:#0f172a;
}
.mpc-dashboard-v2-kpi small{
  display:block;
  margin-top:7px;
  color:#64748b;
  font-weight:650;
}
.mpc-dashboard-v2-quick-actions{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}
.mpc-dashboard-v2-action{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:82px;
  padding:16px;
  border-radius:22px;
  background:linear-gradient(135deg,#fff 0%,#f8fbff 100%);
  border:1px solid rgba(226,232,240,.95);
  color:#0f172a;
  box-shadow:0 12px 28px rgba(15,23,42,.065);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.mpc-dashboard-v2-action:hover{
  transform:translateY(-2px);
  border-color:rgba(37,99,235,.24);
  box-shadow:0 18px 42px rgba(37,99,235,.12);
  color:#0f172a;
}
.mpc-dashboard-v2-action>span{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
  color:#fff;
  font-size:1.18rem;
  box-shadow:0 12px 24px rgba(37,99,235,.24);
  flex:0 0 auto;
}
.mpc-dashboard-v2-action strong{
  display:block;
  font-size:.94rem;
  font-weight:850;
  color:#0f172a;
}
.mpc-dashboard-v2-action small{
  display:block;
  margin-top:2px;
  font-size:.78rem;
  color:#64748b;
  font-weight:650;
  line-height:1.35;
}
.mpc-dashboard-v2-card{
  border-radius:28px!important;
  overflow:hidden;
  box-shadow:0 18px 48px rgba(15,23,42,.07)!important;
}
.mpc-dashboard-v2-card .card-header{
  padding:22px 24px;
  background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);
  border-bottom:1px solid rgba(226,232,240,.88);
}
.mpc-dashboard-v2-card .card-body{
  padding:24px;
}
.mpc-dashboard-v2-chart-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);
  gap:24px;
  align-items:stretch;
}
.mpc-dashboard-v2-chart-box{
  min-height:260px;
  padding:16px;
  border-radius:24px;
  background:linear-gradient(180deg,#f8fafc 0%,#fff 100%);
  border:1px solid rgba(226,232,240,.9);
}
.mpc-dashboard-v2-health-stack{
  display:grid;
  align-content:center;
  gap:18px;
}
.mpc-dashboard-v2-metric-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
}
.mpc-dashboard-v2-metric-row strong{
  display:block;
  color:#0f172a;
  font-weight:850;
}
.mpc-dashboard-v2-metric-row span{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-weight:650;
}
.mpc-dashboard-v2-metric-row b{
  color:#2563eb;
  font-size:28px;
  font-weight:900;
}
.mpc-dashboard-v2-mini-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.mpc-dashboard-v2-mini-grid>div{
  padding:16px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
.mpc-dashboard-v2-mini-grid strong{
  display:block;
  color:#0f172a;
  font-size:25px;
  line-height:1;
  font-weight:900;
}
.mpc-dashboard-v2-mini-grid span{
  display:block;
  margin-top:8px;
  color:#64748b;
  font-weight:700;
  font-size:.82rem;
}
.mpc-dashboard-v2-meeting-list,
.mpc-dashboard-v2-upcoming-list,
.mpc-dashboard-v2-client-list,
.mpc-dashboard-v2-activity-list,
.mpc-dashboard-v2-file-list{
  display:grid;
  gap:12px;
}
.mpc-dashboard-v2-meeting-item{
  display:grid;
  grid-template-columns:74px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  padding:14px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
.mpc-dashboard-v2-meeting-time{
  display:grid;
  place-items:center;
  min-height:48px;
  border-radius:16px;
  background:#eff6ff;
  color:#1d4ed8;
  font-weight:900;
  font-size:.86rem;
}
.mpc-dashboard-v2-meeting-item strong,
.mpc-dashboard-v2-upcoming-item strong,
.mpc-dashboard-v2-client-item strong,
.mpc-dashboard-v2-file-item strong,
.mpc-dashboard-v2-activity-item strong{
  display:block;
  color:#0f172a;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mpc-dashboard-v2-meeting-item span,
.mpc-dashboard-v2-activity-item span{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-weight:650;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mpc-dashboard-v2-meeting-item small{
  padding:6px 10px;
  border-radius:999px;
  background:#ecfdf5;
  color:#047857;
  font-weight:800;
}
.mpc-dashboard-v2-upcoming-item,
.mpc-dashboard-v2-client-item,
.mpc-dashboard-v2-file-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  padding:13px;
  border-radius:19px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
  color:inherit;
}
.mpc-dashboard-v2-upcoming-item>span,
.mpc-dashboard-v2-client-item>span,
.mpc-dashboard-v2-file-item>span{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:#eff6ff;
  color:#2563eb;
  flex:0 0 auto;
}
.mpc-dashboard-v2-client-item>span.business{
  background:#ecfeff;
  color:#0891b2;
}
.mpc-dashboard-v2-upcoming-item small,
.mpc-dashboard-v2-client-item small,
.mpc-dashboard-v2-file-item small{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-weight:650;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mpc-dashboard-v2-client-item em,
.mpc-dashboard-v2-file-item em{
  color:#94a3b8;
  font-style:normal;
  font-size:.78rem;
  font-weight:800;
  white-space:nowrap;
}
.mpc-dashboard-v2-alert-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:15px;
  border-radius:20px;
  background:#f8fafc;
  border:1px solid #e2e8f0;
}
.mpc-dashboard-v2-alert-row>span{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#eff6ff;
  color:#2563eb;
  font-size:1.15rem;
}
.mpc-dashboard-v2-alert-row.danger>span{background:#fef2f2;color:#dc2626;}
.mpc-dashboard-v2-alert-row.warning>span{background:#fff7ed;color:#d97706;}
.mpc-dashboard-v2-alert-row.info>span{background:#ecfeff;color:#0891b2;}
.mpc-dashboard-v2-alert-row.neutral>span{background:#f1f5f9;color:#475569;}
.mpc-dashboard-v2-alert-row strong{
  display:block;
  font-size:25px;
  line-height:1;
  color:#0f172a;
  font-weight:900;
}
.mpc-dashboard-v2-alert-row small{
  display:block;
  margin-top:5px;
  color:#64748b;
  font-weight:700;
}
.mpc-dashboard-v2-activity-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  padding:13px;
  border-radius:18px;
  border:1px solid #e2e8f0;
  background:#f8fafc;
}
.mpc-dashboard-v2-activity-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:#eff6ff;
  color:#2563eb;
}
.mpc-dashboard-v2-activity-item small{
  color:#64748b;
  font-size:.78rem;
  font-weight:750;
  white-space:nowrap;
}
.mpc-dashboard-v2-empty{
  display:flex;
  min-height:210px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  padding:28px;
  border-radius:24px;
  background:#f8fafc;
  border:1px dashed #cbd5e1;
  color:#64748b;
}
.mpc-dashboard-v2-empty.compact{
  min-height:170px;
}
.mpc-dashboard-v2-empty i{
  font-size:2.25rem;
  color:#2563eb;
}
.mpc-dashboard-v2-empty strong{
  color:#0f172a;
  font-weight:850;
}
.mpc-dashboard-v2-empty span{
  max-width:320px;
  line-height:1.5;
  font-weight:650;
}
@media (max-width:1399.98px){
  .mpc-dashboard-v2-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr));}
  .mpc-dashboard-v2-kpis{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:991.98px){
  .mpc-dashboard-v2-hero-content{flex-direction:column;align-items:flex-start;padding:28px;}
  .mpc-dashboard-v2-hero-right{width:100%;min-width:0;}
  .mpc-dashboard-v2-chart-grid{grid-template-columns:1fr;}
}
@media (max-width:767.98px){
  .mpc-dashboard-v2-kpis,
  .mpc-dashboard-v2-quick-actions{grid-template-columns:1fr;}
  .mpc-dashboard-v2-meeting-item,
  .mpc-dashboard-v2-activity-item{
    grid-template-columns:auto minmax(0,1fr);
  }
  .mpc-dashboard-v2-meeting-item small,
  .mpc-dashboard-v2-activity-item small{
    grid-column:2;
    justify-self:start;
  }
  .mpc-dashboard-v2-hero h1{font-size:28px;}
}


/* Global Select2 dropdown layer fix */
body > .select2-container--open,
body > .select2-container--open .select2-dropdown {
  z-index: 99999 !important;
}
.mpc-create-page .mpc-card,
.mpc-create-page .card,
.mpc-create-page .card-body,
.business-client-page .mpc-card,
.business-client-page .card,
.business-client-page .card-body {
  overflow: visible !important;
}
.select2-container--open .select2-dropdown {
  z-index: 99999 !important;
}

/* Files upload limits */
.mpc-files-actions .mpc-files-upload-limit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .28);
  color: #334155;
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
}
.mpc-files-actions .mpc-files-upload-limit i {
  color: #2563eb;
}

/* System Audit summary visibility */
.mpc-system-audit-summary span,
.swal2-popup.mpc-system-audit-swal .mpc-system-audit-summary span {
  color: #334155 !important;
}
.mpc-system-audit-summary strong,
.swal2-popup.mpc-system-audit-swal .mpc-system-audit-summary strong {
  color: #0f172a !important;
}

/* Files upload validation modal - clean light layout */
.swal2-popup.mpc-skipped-files-popup {
  border: 1px solid #dfe7f3 !important;
  border-radius: 28px !important;
  background: #ffffff !important;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .22) !important;
  overflow: hidden !important;
}

.swal2-popup.mpc-skipped-files-popup .swal2-html-container {
  padding: 0 !important;
  margin: 0 !important;
}

.swal2-popup.mpc-skipped-files-popup .swal2-actions {
  margin: 0 !important;
  padding: 0 28px 28px !important;
}

.mpc-skipped-files-modal {
  padding: 28px !important;
  background: #ffffff !important;
  color: #10204f !important;
  text-align: left !important;
}

.mpc-skipped-files-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.mpc-skipped-files-icon {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  border-radius: 16px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  font-size: 1.35rem !important;
}

.mpc-skipped-files-modal h3 {
  margin: 0 0 5px !important;
  color: #10204f !important;
  font-size: 1.28rem !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}

.mpc-skipped-files-modal p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: .94rem !important;
  line-height: 1.45 !important;
}

.mpc-skipped-files-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mpc-skipped-rule {
  padding: 12px 14px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #f8fbff;
}

.mpc-skipped-rule-wide {
  grid-column: 1 / -1;
}

.mpc-skipped-rule span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mpc-skipped-rule strong {
  display: block;
  color: #0f172a;
  font-size: .87rem;
  font-weight: 750;
  line-height: 1.35;
}

.mpc-skipped-files-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-height: 300px !important;
  overflow: auto !important;
  padding-right: 4px !important;
}

.mpc-skipped-file-row {
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  border-radius: 18px !important;
  padding: 13px 14px !important;
}

.mpc-skipped-file-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mpc-skipped-file-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #64748b;
}

.mpc-skipped-file-copy {
  min-width: 0;
  flex: 1;
}

.mpc-skipped-file-name {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: .94rem !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.mpc-skipped-file-reason {
  color: #b42318 !important;
  font-size: .82rem !important;
  font-weight: 650 !important;
  margin-top: 3px !important;
  line-height: 1.35 !important;
}

@media (max-width: 640px) {
  .mpc-skipped-files-modal { padding: 22px !important; }
  .mpc-skipped-files-header { flex-direction: column; }
  .mpc-skipped-files-rules { grid-template-columns: 1fr; }
}

/* Leads module */
.leads-directory-page .clients-directory-hero,
.lead-form-page .client-form-hero,
.lead-profile-hero {
  position: relative;
}
.leads-hero,
.lead-form-hero {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, .20), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 52%, #38bdf8 100%);
  color: #fff;
}
.leads-hero .page-kicker,
.lead-form-hero .page-kicker {
  background: rgba(255,255,255,.16);
  color: #e0f2fe;
  border-color: rgba(255,255,255,.22);
}
.leads-hero p,
.lead-form-hero p { color: rgba(255,255,255,.86); }
.leads-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.lead-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
.lead-kpi-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #2563eb;
  background: #eff6ff;
  font-size: 1.2rem;
}
.lead-kpi-card small {
  display: block;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .05em;
}
.lead-kpi-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.1;
}
.leads-filters {
  grid-template-columns: 190px 190px minmax(220px, 1fr) auto;
  align-items: end;
}
.lead-avatar-link {
  background: linear-gradient(135deg, #1d4ed8, #38bdf8) !important;
  color: #ffffff !important;
}
.leads-directory-page .client-code-badge {
  white-space: nowrap;
  min-width: max-content;
}
.client-status-badge.is-review span { background: #f59e0b; }
.client-status-badge.is-converted span { background: #10b981; }
.client-status-badge.is-converted {
  color: #065f46;
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, .25);
}
.lead-priority-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .28);
  color: #334155;
  font-weight: 800;
  font-size: .76rem;
}
.directory-actions .action-btn.convert,
.directory-actions .action-btn.convert-business {
  border-color: rgba(37, 99, 235, .18);
  background: #eff6ff;
  color: #1d4ed8;
}
.directory-actions .action-btn.convert-business {
  background: #ecfeff;
  color: #0891b2;
}
.lead-code-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.lead-code-strip > div {
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}
.lead-code-strip span,
.lead-detail-list span,
.lead-notes-box span {
  display: block;
  color: #64748b;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.lead-code-strip strong,
.lead-detail-list strong {
  display: block;
  color: #0f172a;
  font-weight: 900;
  word-break: break-word;
}
.lead-form-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 850;
  border: 1px solid rgba(37, 99, 235, .16);
}
.lead-sticky-actions {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  margin-top: 22px;
  padding: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-radius: 20px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(148, 163, 184, .26);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .16);
  backdrop-filter: blur(14px);
}
.lead-profile-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(56,189,248,.26), transparent 28%),
    linear-gradient(135deg, #0f172a 0%, #1d4ed8 46%, #0369a1 100%);
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 18px;
}
.lead-profile-avatar {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
}
.lead-converted-badge {
  background: rgba(16, 185, 129, .18) !important;
  color: #d1fae5 !important;
  border-color: rgba(167, 243, 208, .24) !important;
}
.lead-detail-list {
  display: grid;
  gap: 14px;
}
.lead-detail-list > div {
  padding: 13px 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .18);
}
.lead-notes-box {
  display: grid;
  gap: 14px;
}
.lead-notes-box > div {
  padding: 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .18);
}
.lead-notes-box p {
  margin: 0;
  color: #0f172a;
  font-weight: 650;
  line-height: 1.55;
  white-space: pre-wrap;
}
.lead-convert-modal .modal-content {
  border: 0;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .24);
}
.lead-convert-modal-header {
  align-items: flex-start;
  padding: 24px 26px;
  background: linear-gradient(135deg, #eff6ff, #fff);
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}
.lead-convert-modal-header h5 {
  color: #0f172a;
  font-weight: 900;
  margin: 4px 0;
}
.lead-convert-modal-header p {
  margin: 0;
  color: #64748b;
  font-weight: 650;
}
.lead-modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1d4ed8;
  background: #dbeafe;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lead-conversion-rules {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .22);
  margin-bottom: 18px;
}
.lead-conversion-rules > div:first-child {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
}
.lead-conversion-rules strong {
  display: block;
  color: #0f172a;
  font-weight: 900;
}
.lead-conversion-rules span {
  display: block;
  color: #64748b;
  font-weight: 650;
}
.lead-duplicate-box {
  margin-top: 18px;
}
.lead-duplicate-alert {
  padding: 16px;
  border-radius: 18px;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, .26);
  color: #9a3412;
}
.lead-duplicate-alert strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7c2d12;
  font-weight: 900;
}
.lead-duplicate-alert p {
  margin: 6px 0 10px;
  color: #9a3412;
  font-weight: 650;
}
.lead-duplicate-alert ul {
  margin: 0;
  padding-left: 18px;
}
.lead-duplicate-alert li {
  margin-bottom: 8px;
}
.lead-duplicate-alert li span {
  display: block;
  color: #7c2d12;
  font-weight: 650;
}
.lead-audit-summary div,
.system-audit-summary.lead-audit-summary div {
  color: #0f172a !important;
}
.lead-audit-summary span,
.system-audit-summary.lead-audit-summary span,
.lead-audit-summary strong,
.system-audit-summary.lead-audit-summary strong {
  color: #0f172a !important;
}
.lead-audit-action {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 850;
  font-size: .72rem;
}
.lead-form-page .mpc-card,
.lead-form-page .card,
.lead-form-page .card-body,
.lead-view-page .mpc-card,
.lead-view-page .card,
.lead-view-page .card-body,
.lead-convert-modal .modal-content,
.lead-convert-modal .modal-body {
  overflow: visible !important;
}

@media (max-width: 1399.98px) {
  .leads-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
  .leads-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leads-filters .directory-filter-actions { justify-content: flex-start; }
}
@media (max-width: 991.98px) {
  .leads-kpi-grid,
  .lead-code-strip,
  .business-profile-metrics.lead-profile-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-sticky-actions { justify-content: stretch; }
  .lead-sticky-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 767.98px) {
  .leads-kpi-grid,
  .lead-code-strip,
  .leads-filters,
  .business-profile-metrics.lead-profile-metrics { grid-template-columns: 1fr; }
}

/* Leads module tabs aligned with Individual Client modules */
.lead-form-page .mpc-lead-module-shell,
.lead-view-page .mpc-lead-module-shell {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.lead-form-page .mpc-lead-module-shell .mpc-intake-tabs,
.lead-view-page .mpc-lead-module-shell .mpc-intake-tabs {
  padding-top: 22px;
}

.lead-form-page .mpc-lead-module-shell .mpc-tab-content,
.lead-view-page .mpc-lead-module-shell .mpc-tab-content {
  border-top: 1px solid var(--mpc-border);
}

.lead-form-page .mpc-lead-module-shell .mpc-module-card,
.lead-view-page .mpc-lead-module-shell .mpc-module-card {
  overflow: visible;
}

/* Leads form aligned with Individual Client module workspace */
.mpc-client-modules-lock-note {
  margin: 18px 0 12px;
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(37, 99, 235, .25);
  background: rgba(239, 246, 255, .72);
  color: #4f46e5;
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
}

.lead-form-page .mpc-secondary-workspace,
.lead-view-page .mpc-secondary-workspace {
  margin-top: 18px;
}

.lead-create-workspace .mpc-tab-header h3::after {
  content: "";
}

.lead-form-page .mpc-tab-shell,
.lead-view-page .mpc-tab-shell {
  overflow: visible !important;
}

/* Leads minimal create flow and locked module workspace */
.lead-type-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-type-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .38);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.lead-type-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-type-choice:hover,
.lead-type-choice.is-selected {
  border-color: rgba(37, 99, 235, .65);
  background: linear-gradient(135deg, rgba(239, 246, 255, .96), #fff);
  box-shadow: 0 18px 38px rgba(37, 99, 235, .14);
  transform: translateY(-1px);
}

.lead-type-choice-invalid {
  border-color: rgba(220, 38, 38, .75) !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .10), 0 14px 30px rgba(15, 23, 42, .06) !important;
}

.lead-type-choice-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(37, 99, 235, .10);
  color: #2563eb;
  font-size: 1.35rem;
  flex: 0 0 auto;
}

.lead-type-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lead-type-choice-copy strong {
  color: #0f172a;
  font-size: .98rem;
  font-weight: 900;
}

.lead-type-choice-copy small {
  color: #64748b;
  font-size: .82rem;
  font-weight: 700;
}

.lead-module-lock-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .78rem;
  font-weight: 850;
  border: 1px solid rgba(148, 163, 184, .28);
}

.lead-modules-locked .mpc-tab-shell {
  opacity: .62;
  filter: grayscale(.08);
}

.lead-modules-locked .mpc-intake-tabs,
.lead-modules-locked .mpc-tab-content {
  pointer-events: none;
}

.lead-modules-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .lead-type-choice-grid {
    grid-template-columns: 1fr;
  }
}

.lead-module-locked-placeholder {
  border: 1px dashed rgba(148, 163, 184, .45) !important;
  background: linear-gradient(135deg, rgba(248, 250, 252, .96), rgba(241, 245, 249, .82)) !important;
}

.lead-module-locked-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(100, 116, 139, .12);
  color: #475569;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.lead-module-locked-placeholder h4 {
  color: #0f172a;
  font-weight: 900;
  margin-bottom: 6px;
}

.lead-module-locked-placeholder p {
  color: #64748b;
  font-weight: 700;
}


/* ==========================================================
   Lead module hero headers
   Keep Lead modules visually aligned with Individual/Business,
   but with the correct Lead module label and editable Files actions.
   ========================================================== */
.lead-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title > div:not(.mpc-title-icon)::before,
.lead-form-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-section-title > div:not(.mpc-title-icon)::before{
  content:"LEAD MODULE"!important;
}
.lead-view-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions,
.lead-form-page .mpc-tab-content .mpc-module-card > .card-header.mpc-card-header-clean .mpc-card-header-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  margin-left:auto!important;
  position:relative!important;
  z-index:2!important;
}

/* Professional Lead conversion modal layout */
.lead-convert-modal .modal-dialog {
  max-width: 1180px;
}

.lead-convert-content {
  border: 0 !important;
  border-radius: 28px !important;
  overflow: hidden !important;
  background: #f8fbff;
  box-shadow: 0 34px 95px rgba(15, 23, 42, .28) !important;
}

.lead-convert-modal-header {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center !important;
  padding: 28px 30px !important;
  background:
    radial-gradient(circle at 92% 18%, rgba(45, 212, 191, .34), transparent 34%),
    linear-gradient(135deg, #eaf2ff 0%, #ffffff 52%, #dffdf8 100%) !important;
  border-bottom: 1px solid rgba(148, 163, 184, .22) !important;
}

.lead-convert-header-icon {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .24);
}

.lead-convert-header-copy h5 {
  color: #0f172a;
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: -.035em;
  margin: 5px 0 4px;
}

.lead-convert-header-copy p {
  color: #64748b;
  font-weight: 650;
  margin: 0;
}

.lead-convert-close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background-color: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.lead-convert-body {
  padding: 26px 30px 30px !important;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, .92), #fff 46%),
    #fff;
}

.lead-convert-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.lead-convert-summary-card {
  min-height: 102px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(191, 219, 254, .95);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .06);
}

.lead-convert-summary-card-soft {
  border-color: rgba(45, 212, 191, .42);
  background: linear-gradient(135deg, #ffffff, #ecfeff);
}

.lead-convert-summary-label {
  display: block;
  color: #2563eb;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lead-convert-summary-card strong {
  display: block;
  color: #0f172a;
  font-size: 1.02rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.lead-convert-summary-card small {
  display: block;
  color: #64748b;
  font-weight: 650;
  line-height: 1.4;
}

.lead-convert-alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, .72);
  background: linear-gradient(135deg, #eff6ff, #fff);
  color: #334155;
}

.lead-convert-alert i {
  color: #2563eb;
  font-size: 1.05rem;
  margin-top: 2px;
}

.lead-convert-alert strong,
.lead-convert-alert span {
  display: block;
}

.lead-convert-alert strong {
  color: #0f172a;
  font-weight: 900;
  margin-bottom: 2px;
}

.lead-convert-alert span {
  color: #64748b;
  font-weight: 650;
}

.lead-convert-section {
  border: 1px solid rgba(203, 213, 225, .82);
  border-radius: 24px;
  overflow: visible;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
}

.lead-convert-section + .lead-convert-section {
  margin-top: 18px;
}

.lead-convert-section-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(226, 232, 240, .95);
  background: linear-gradient(135deg, #ffffff, #f8fbff);
}

.lead-convert-section-icon {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid rgba(191, 219, 254, .92);
}

.lead-convert-section-head h6 {
  margin: 0 0 3px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 950;
}

.lead-convert-section-head p {
  margin: 0;
  color: #64748b;
  font-size: .83rem;
  font-weight: 650;
}

.lead-convert-field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 18px;
  padding: 20px 22px 22px;
}

.lead-convert-field-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-convert-field .form-label {
  color: #334155;
  font-size: .75rem;
  font-weight: 900;
  margin-bottom: 7px;
}

.lead-convert-field .form-control,
.lead-convert-field .form-select {
  min-height: 46px;
  border-radius: 14px;
  border-color: #dbe4f0;
  background-color: #f8fafc;
  font-weight: 650;
}

.lead-convert-field .form-control:focus,
.lead-convert-field .form-select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.lead-convert-subsection {
  margin: 0 22px 22px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, .96);
  background: #fbfdff;
}

.lead-convert-subsection .lead-convert-field-grid {
  padding: 0;
}

.lead-convert-subsection-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: .82rem;
  font-weight: 950;
  margin-bottom: 14px;
}

.lead-convert-subsection-title i {
  color: #2563eb;
}

.lead-convert-optional-box {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.lead-convert-footer {
  padding: 18px 30px !important;
  border-top: 1px solid rgba(226, 232, 240, .95) !important;
  background: #fff;
}

.lead-convert-cancel,
.lead-convert-submit {
  min-height: 44px;
  border-radius: 14px;
  font-weight: 850;
  padding-inline: 18px;
}

.lead-convert-submit {
  box-shadow: 0 16px 28px rgba(37, 99, 235, .24);
}

.lead-convert-modal .select2-container {
  width: 100% !important;
}

.lead-convert-modal .select2-container--default .select2-selection--single {
  min-height: 46px;
  border-radius: 14px;
  border-color: #dbe4f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
}

.lead-convert-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-weight: 650;
  color: #334155;
}

@media (max-width: 991.98px) {
  .lead-convert-summary-grid,
  .lead-convert-field-grid,
  .lead-convert-field-grid-two {
    grid-template-columns: 1fr;
  }

  .lead-convert-modal-header {
    grid-template-columns: auto 1fr;
  }

  .lead-convert-close {
    position: absolute;
    top: 18px;
    right: 18px;
  }
}

@media (max-width: 575.98px) {
  .lead-convert-body,
  .lead-convert-modal-header,
  .lead-convert-footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .lead-convert-section-head,
  .lead-convert-field-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lead-convert-subsection {
    margin-left: 16px;
    margin-right: 16px;
  }
}


/* Individual Client - static client code title (not a button/badge) */
.mpc-card-header-client .mpc-client-code-title{
  display:inline-flex;
  align-items:baseline;
  justify-content:flex-start;
  gap:10px;
  min-height:auto;
  padding:0;
  margin:0;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#0f172a;
  white-space:nowrap;
}
.mpc-card-header-client .mpc-client-code-title span{
  display:inline-block;
  margin:0;
  font-size:11px;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#64748b;
  font-weight:700;
}
.mpc-card-header-client .mpc-client-code-title strong{
  display:inline-block;
  font-size:20px;
  line-height:1;
  color:#1d4ed8;
  font-weight:800;
  letter-spacing:.04em;
}
@media (max-width:767.98px){
  .mpc-create-page .mpc-card-header-client .mpc-client-code-title,
  .mpc-view-page .mpc-card-header-client .mpc-client-code-title{
    width:100%;
    justify-content:flex-start;
  }
}


/* File explorer uploader/source badge */
.mpc-file-uploader-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: max-content;
  max-width: 100%;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: .28rem;
  border: 1px solid transparent;
  white-space: normal;
}

.mpc-file-uploader-badge.is-staff {
  color: #1d4ed8;
  background: rgba(37, 99, 235, .10);
  border-color: rgba(37, 99, 235, .14);
}

.mpc-file-uploader-badge.is-client {
  color: #047857;
  background: rgba(16, 185, 129, .12);
  border-color: rgba(16, 185, 129, .18);
}

/* Account History Workspace */
.action-btn.history {
  background: rgba(99, 102, 241, .12);
  color: #4f46e5;
}
.action-btn.history:hover {
  background: #4f46e5;
  color: #fff;
}
.account-history-workspace-page {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
.account-history-hero {
  align-items: stretch;
}
.account-history-entity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .85rem;
}
.account-history-entity-meta span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #334155;
  font-weight: 700;
  font-size: .82rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .08);
}
.account-history-actions {
  align-items: center;
  justify-content: flex-end;
}
.account-history-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr);
  gap: 1.25rem;
  align-items: start;
}
.account-history-grid-card,
.account-history-detail-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 24px;
  box-shadow: 0 20px 55px rgba(15,23,42,.08);
}
.account-history-grid-card {
  overflow: hidden;
}
.account-history-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(226,232,240,.9);
}
.account-history-table-wrap {
  padding: .35rem 1.1rem 1.15rem;
}
.account-history-table tbody tr.account-history-row {
  cursor: pointer;
}
.account-history-table tbody tr.account-history-row.is-selected,
.account-history-table tbody tr.account-history-row:hover {
  background: rgba(79,70,229,.075);
}
.account-history-comment-preview {
  max-width: 520px;
  color: #334155;
  font-weight: 650;
}
.account-history-detail-card {
  min-height: 360px;
  padding: 1.25rem;
  position: sticky;
  top: 92px;
}
.account-history-detail-empty {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #64748b;
  gap: .45rem;
}
.account-history-detail-empty i {
  font-size: 2.4rem;
  color: #94a3b8;
}
.account-history-detail-empty strong {
  color: #0f172a;
  font-size: 1.05rem;
}
.account-history-detail-header {
  display: flex;
  gap: .85rem;
  align-items: center;
  margin-bottom: 1rem;
}
.account-history-detail-header > span {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  color: #fff;
  box-shadow: 0 16px 35px rgba(79,70,229,.24);
}
.account-history-detail-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 850;
}
.account-history-detail-header small {
  color: #64748b;
  font-weight: 700;
}
.account-history-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: 1rem;
}
.account-history-detail-meta div {
  border: 1px solid rgba(226,232,240,.9);
  background: #f8fafc;
  border-radius: 16px;
  padding: .8rem;
}
.account-history-detail-meta strong {
  display: block;
  color: #64748b;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}
.account-history-detail-meta span {
  color: #0f172a;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.account-history-detail-comment {
  border: 1px solid rgba(226,232,240,.9);
  background: linear-gradient(180deg, #fff, #f8fafc);
  border-radius: 18px;
  padding: 1rem;
  min-height: 180px;
  color: #1e293b;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}
.mpc-modal-content {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(15,23,42,.22);
}
@media (max-width: 1199.98px) {
  .account-history-shell {
    grid-template-columns: 1fr;
  }
  .account-history-detail-card {
    position: static;
  }
}
@media (max-width: 767.98px) {
  .account-history-card-header,
  .account-history-actions,
  .account-history-detail-meta {
    display: block;
  }
  .account-history-actions .btn {
    width: 100%;
    margin-top: .5rem;
  }
  .account-history-detail-meta div + div {
    margin-top: .75rem;
  }
}

/* MPC Connect Pro - View guide, Files environment labels, Administration safety controls and Personal Notes */
.mpc-view-guide-card{
  margin:32px 0 4px;
  padding:22px 24px;
  border:1px solid rgba(37,87,214,.14);
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 18px 45px rgba(15,23,42,.07);
  display:flex;
  gap:18px;
  align-items:flex-start;
}
.mpc-view-guide-icon{
  width:48px;height:48px;border-radius:16px;
  display:grid;place-items:center;
  background:rgba(37,87,214,.1);
  color:#2557d6;font-size:1.35rem;flex:0 0 auto;
}
.mpc-view-guide-copy span{
  display:block;text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:800;color:#2557d6;margin-bottom:4px;
}
.mpc-view-guide-copy h2{font-size:1.05rem;font-weight:800;color:#0f172a;margin:0 0 6px;}
.mpc-view-guide-copy p{margin:0;color:#64748b;font-size:.92rem;line-height:1.55;}

.mpc-files-environment-banner{
  border:1px solid rgba(37,87,214,.14);
  border-radius:18px;
  padding:14px 16px;
  background:linear-gradient(135deg,#f8fbff,#ffffff);
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}
.mpc-files-environment-banner .env-icon{
  width:40px;height:40px;border-radius:14px;background:rgba(37,87,214,.1);color:#2557d6;display:grid;place-items:center;font-size:1.15rem;flex:0 0 auto;
}
.mpc-files-environment-banner strong{display:block;color:#0f172a;font-weight:800;line-height:1.1;}
.mpc-files-environment-banner span{display:block;color:#64748b;font-size:.84rem;line-height:1.35;margin-top:3px;}
.mpc-files-environment-banner.client-portal .env-icon{background:rgba(16,185,129,.12);color:#059669;}
.mpc-files-environment-banner.business .env-icon{background:rgba(124,58,237,.1);color:#6d28d9;}

.admin-safety-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;}
.admin-safety-card{
  border:1px solid rgba(37,87,214,.14);
  border-radius:24px;
  background:#fff;
  box-shadow:0 18px 45px rgba(15,23,42,.07);
  padding:22px;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
}
.admin-safety-card .admin-safety-icon{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:rgba(37,87,214,.1);color:#2557d6;font-size:1.45rem;}
.admin-safety-card.danger .admin-safety-icon{background:rgba(220,38,38,.1);color:#dc2626;}
.admin-safety-card .admin-safety-copy span{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:.7rem;font-weight:800;color:#64748b;margin-bottom:3px;}
.admin-safety-card .admin-safety-copy h3{font-size:1.05rem;font-weight:800;color:#0f172a;margin:0 0 4px;}
.admin-safety-card .admin-safety-copy p{margin:0;color:#64748b;font-size:.88rem;line-height:1.45;}
.admin-safety-switch{display:flex;align-items:center;gap:10px;margin:0;white-space:nowrap;font-weight:800;color:#0f172a;}
.admin-safety-switch .form-check-input{width:3rem;height:1.5rem;}
.admin-safety-card.email-control.is-enabled .admin-safety-icon{background:rgba(16,185,129,.12);color:#059669;}
.admin-delete-control-grid .admin-safety-card{grid-template-columns:54px minmax(0,1fr);}
.admin-delete-control-grid .admin-safety-switch{grid-column:1 / -1;justify-content:flex-end;}

.mpc-personal-notes-page{display:grid;gap:22px;}
.mpc-personal-notes-hero .mpc-files-workspace-icon{background:linear-gradient(135deg,#2557d6,#0ea5e9);}
.mpc-personal-notes-toolbar{
  display:grid;
  grid-template-columns:minmax(280px,1fr) 180px 180px auto;
  gap:12px;
  align-items:center;
  border:1px solid rgba(37,87,214,.12);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 40px rgba(15,23,42,.06);
  padding:16px;
}
.mpc-personal-notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:18px;}
.mpc-note-card{
  position:relative;
  border:1px solid rgba(15,23,42,.1);
  border-radius:24px;
  background:linear-gradient(180deg,#fffef7 0%,#fff 100%);
  box-shadow:0 18px 45px rgba(15,23,42,.08);
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:14px;
  min-height:260px;
  overflow:hidden;
}
.mpc-note-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:5px;background:#2557d6;}
.mpc-note-card.priority-low::before{background:#64748b;}
.mpc-note-card.priority-normal::before{background:#2557d6;}
.mpc-note-card.priority-high::before{background:#f59e0b;}
.mpc-note-card.priority-urgent::before{background:#dc2626;}
.mpc-note-card.is-overdue{border-color:rgba(220,38,38,.35);background:linear-gradient(180deg,#fff5f5 0%,#fff 100%);}
.mpc-note-card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.mpc-note-kicker{display:inline-flex;align-items:center;gap:6px;text-transform:uppercase;letter-spacing:.08em;font-size:.68rem;font-weight:800;color:#2557d6;margin-bottom:6px;}
.mpc-note-card h3{margin:0;font-size:1.05rem;font-weight:800;color:#0f172a;line-height:1.25;}
.mpc-note-priority{text-transform:capitalize;font-size:.72rem;font-weight:800;border-radius:999px;padding:6px 10px;background:#eef4ff;color:#2557d6;white-space:nowrap;}
.mpc-note-card p{color:#475569;font-size:.92rem;line-height:1.5;margin:0;white-space:pre-wrap;}
.mpc-note-meta{display:grid;gap:7px;color:#64748b;font-size:.8rem;margin-top:auto;}
.mpc-note-meta span{display:flex;align-items:center;gap:7px;}
.mpc-note-card-footer{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid rgba(15,23,42,.08);padding-top:14px;}
.mpc-note-status{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:.74rem;font-weight:800;text-transform:capitalize;background:#eef4ff;color:#2557d6;}
.mpc-note-status.completed{background:rgba(16,185,129,.12);color:#059669;}
.mpc-note-status.archived{background:#f1f5f9;color:#475569;}
.mpc-note-actions{display:flex;gap:8px;}
.mpc-personal-note-modal{border:0;border-radius:26px;overflow:hidden;box-shadow:0 24px 70px rgba(15,23,42,.22);}
.mpc-modal-heading{display:flex;align-items:center;gap:14px;}
.mpc-modal-heading>span{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:rgba(37,87,214,.1);color:#2557d6;font-size:1.3rem;}
.mpc-modal-heading h5{font-weight:800;color:#0f172a;margin:0;}
.mpc-modal-heading small{color:#64748b;}
.mpc-note-option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.mpc-note-option{border:1px solid rgba(15,23,42,.1);border-radius:16px;padding:11px;display:flex;align-items:flex-start;gap:9px;background:#fff;cursor:pointer;}
.mpc-note-option strong{display:block;font-size:.82rem;color:#0f172a;}
.mpc-note-option small{display:block;font-size:.72rem;color:#64748b;}
@media (max-width: 992px){
  .mpc-personal-notes-toolbar{grid-template-columns:1fr;}
  .admin-safety-card{grid-template-columns:46px minmax(0,1fr);}
  .admin-safety-switch{grid-column:1 / -1;justify-content:flex-end;}
  .mpc-view-guide-card{padding:18px;}
}

/* Personal Notes modal professional layout refresh */
.btn-mpc-purple{
  --bs-btn-color:#fff;
  --bs-btn-bg:#7c3aed;
  --bs-btn-border-color:#7c3aed;
  --bs-btn-hover-color:#fff;
  --bs-btn-hover-bg:#6d28d9;
  --bs-btn-hover-border-color:#6d28d9;
  --bs-btn-active-color:#fff;
  --bs-btn-active-bg:#5b21b6;
  --bs-btn-active-border-color:#5b21b6;
  box-shadow:0 12px 26px rgba(124,58,237,.22);
}
.mpc-personal-note-dialog{max-width:1080px;}
.mpc-personal-note-modal{
  border:0;
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(15,23,42,.28);
  background:#f8fbff;
}
.mpc-personal-note-header{
  background:linear-gradient(135deg,#ffffff 0%,#eef5ff 52%,#f5f0ff 100%);
  border-bottom:1px solid rgba(37,87,214,.12);
  padding:22px 26px;
}
.mpc-personal-note-body{padding:24px 26px 26px;background:#f8fbff;}
.mpc-note-modal-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(340px,.9fr);gap:18px;align-items:stretch;}
.mpc-note-modal-panel{
  border:1px solid rgba(37,87,214,.12);
  border-radius:22px;
  background:#fff;
  box-shadow:0 16px 42px rgba(15,23,42,.06);
  padding:20px;
}
.mpc-note-modal-panel-main{display:flex;flex-direction:column;}
.mpc-note-modal-panel-side{display:grid;gap:14px;align-content:start;}
.mpc-note-panel-title{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px;}
.mpc-note-panel-title.compact{margin-bottom:4px;}
.mpc-note-panel-title>span{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;background:rgba(37,87,214,.1);color:#2557d6;font-size:1.15rem;flex:0 0 auto;}
.mpc-note-panel-title h6{margin:0 0 3px;font-size:.98rem;font-weight:850;color:#0f172a;}
.mpc-note-panel-title p{margin:0;color:#64748b;font-size:.82rem;line-height:1.35;}
.mpc-note-textarea{min-height:255px;resize:vertical;}
.mpc-note-two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.mpc-note-date-card{border:1px solid rgba(15,23,42,.08);border-radius:18px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);padding:14px;}
.mpc-note-date-card .form-label{margin-bottom:8px;}
.mpc-note-date-card small{display:block;margin-top:8px;color:#64748b;font-size:.76rem;line-height:1.35;}
.mpc-note-option-stack{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.mpc-note-option-stack .mpc-note-option{min-height:74px;align-items:flex-start;border-color:rgba(37,87,214,.12);background:#fff;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;}
.mpc-note-option-stack .mpc-note-option:hover{transform:translateY(-1px);border-color:rgba(37,87,214,.28);box-shadow:0 12px 28px rgba(15,23,42,.08);}
.mpc-note-option-stack .mpc-note-option-meeting{grid-column:1 / -1;background:linear-gradient(135deg,#f8fbff 0%,#f5f0ff 100%);border-color:rgba(124,58,237,.22);}
.mpc-note-meeting-duration-wrap{border:1px solid rgba(124,58,237,.16);border-radius:18px;background:#fbf8ff;padding:14px;transition:opacity .16s ease,filter .16s ease;}
.mpc-note-meeting-duration-wrap.is-disabled{opacity:.58;filter:saturate(.7);}
.mpc-personal-note-footer{background:#fff;border-top:1px solid rgba(37,87,214,.12);padding:16px 26px;gap:10px;}
.mpc-personal-note-footer .btn{border-radius:14px;font-weight:800;padding:10px 16px;}
.mpc-note-actions .btn-mpc-purple{box-shadow:none;}
@media (max-width: 1100px){.mpc-note-modal-layout{grid-template-columns:1fr;}.mpc-personal-note-dialog{max-width:92vw;}}
@media (max-width: 768px){.mpc-note-two-cols,.mpc-note-option-stack{grid-template-columns:1fr;}.mpc-personal-note-footer{justify-content:stretch;}.mpc-personal-note-footer .btn{width:100%;}.mpc-note-textarea{min-height:200px;}}

/* Personal favorites on directory dashboards */
.directory-favorites-toggle{
  height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 16px;
  border:1px solid #d8e1f0;
  border-radius:14px;
  background:#fff;
  color:#64748b;
  font-size:13px;
  font-weight:750;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
  transition:transform .15s ease, box-shadow .15s ease, color .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.directory-favorites-toggle:hover,
.directory-favorites-toggle:focus{
  transform:translateY(-1px);
  border-color:#f4b740;
  color:#b77905;
  background:#fffbeb;
  box-shadow:0 12px 24px rgba(180,120,5,.10);
}
.directory-favorites-toggle.active{
  color:#8a5a00;
  background:linear-gradient(135deg,#fff8db,#ffed99);
  border-color:#f2bf37;
  box-shadow:0 12px 26px rgba(202,138,4,.18);
}
.action-btn.favorite{
  color:#b77905;
  background:#fff8db;
}
.action-btn.favorite.is-favorite{
  color:#8a5a00;
  background:linear-gradient(135deg,#fff3bf,#ffdd72);
  box-shadow:0 8px 18px rgba(202,138,4,.16);
}
.action-btn.favorite:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none;
}
@media (max-width: 768px){
  .directory-favorites-toggle{width:100%;}
}
