/* Dashboard KPI drill-down sheets + final member summary alignment. */
.mm-dashboard-kpi[role="button"]{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.mm-dashboard-kpi[role="button"]:active{transform:scale(.992)}
.mm-dashboard-kpi[role="button"]:focus-visible{outline:2px solid rgba(56,113,220,.38);outline-offset:2px}

/* 3-column member summary: left / center / right with equal breathing room. */
.mm-dash-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;column-gap:16px!important;row-gap:12px!important}
.mm-dash-member-grid>div{min-width:0!important}
.mm-dash-member-grid>div:nth-child(3n+1){text-align:left!important;justify-self:start!important}
.mm-dash-member-grid>div:nth-child(3n+2){text-align:center!important;justify-self:center!important}
.mm-dash-member-grid>div:nth-child(3n){text-align:right!important;justify-self:end!important}
.mm-dash-member-grid span{display:block!important;font-size:8.7px!important;line-height:1.12!important;font-weight:700!important;color:#7d8ba0!important;white-space:nowrap!important}
.mm-dash-member-grid b{display:block!important;margin-top:3px!important;font-size:15.4px!important;line-height:1.05!important;letter-spacing:-.025em!important;white-space:nowrap!important}
.mm-dash-member-summary .mm-dash-avatar{width:48px;height:48px;flex:0 0 48px;border-radius:15px}

.mm-dash-layer{position:fixed;inset:0;z-index:19000;display:flex;align-items:flex-end;justify-content:center;padding:18px;background:rgba(8,23,43,.54);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.mm-dash-sheet{width:min(560px,100%);max-height:min(82dvh,720px);overflow:auto;padding:9px 16px calc(17px + env(safe-area-inset-bottom));border:1px solid rgba(216,226,239,.98);border-radius:28px;background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);box-shadow:0 30px 90px rgba(10,31,61,.30);color:#172b4b}
.mm-dash-handle{width:42px;height:5px;margin:1px auto 10px;border-radius:99px;background:#d5deea}
.mm-dash-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 1px 13px}
.mm-dash-title-wrap{display:flex;align-items:center;gap:10px;min-width:0}
.mm-dash-title-wrap>.mm-dashboard-kpi-icon{width:42px!important;height:42px!important;flex:0 0 42px!important;border-radius:14px!important}
.mm-dash-title-wrap>.mm-dashboard-kpi-icon::after{width:22px!important;height:22px!important}
.mm-dash-title-wrap>div{min-width:0}.mm-dash-title-wrap small,.mm-dash-title-wrap h3{display:block;margin:0}.mm-dash-title-wrap small{color:#8492a5;font:800 8.5px/1.2 Inter,"Noto Sans Bengali",sans-serif;text-transform:uppercase;letter-spacing:.08em}.mm-dash-title-wrap h3{margin-top:3px;font-size:20px;line-height:1.05;letter-spacing:-.03em;color:#183052}
.mm-dash-close,.mm-dash-back{display:grid;place-items:center;border:1px solid #dbe5ef;background:#f1f5fa;color:#66778d;cursor:pointer;touch-action:manipulation}
.mm-dash-close{width:38px;height:38px;flex:0 0 38px;border-radius:50%;font-size:22px;line-height:1}.mm-dash-back{width:34px;height:34px;flex:0 0 34px;border-radius:12px;font-size:27px;line-height:1;padding-bottom:3px}

.mm-dash-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.mm-dash-stats>div{min-width:0;padding:14px 13px;border:1px solid #dce6f1;border-radius:18px;background:linear-gradient(145deg,#f7faff,#eef6ff)}
.mm-dash-stats span,.mm-dash-stats strong{display:block}.mm-dash-stats span{font-size:9px;line-height:1.15;font-weight:750;color:#8190a5}.mm-dash-stats strong{margin-top:5px;font-size:20px;line-height:1;letter-spacing:-.035em;color:#17355f;white-space:nowrap}
.mm-dash-total-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding:13px 14px;border:1px solid #dbe6f0;border-radius:17px;background:linear-gradient(145deg,#edf5ff,#edf9f5)}
.mm-dash-total-line span{font-size:10px;font-weight:800;color:#6f8197}.mm-dash-total-line strong{font-size:19px;letter-spacing:-.035em;color:#16345d;white-space:nowrap}.mm-dash-total-line.is-due strong{color:#d4475f}
.mm-dash-list{display:grid;gap:8px}
.mm-dash-detail-row,.mm-dash-member-row{min-width:0;border:1px solid #dfe8f2;border-radius:16px;background:#fff;box-shadow:0 4px 14px rgba(26,58,105,.035)}
.mm-dash-detail-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:62px;padding:10px 11px}
.mm-dash-type-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#edf4ff,#e5f0ff);font-size:19px}
.mm-dash-detail-row>div{min-width:0}.mm-dash-detail-row b,.mm-dash-detail-row small{display:block}.mm-dash-detail-row b{font-size:12px;color:#203858}.mm-dash-detail-row small{margin-top:2px;font-size:8.2px;line-height:1.3;color:#8694a7}.mm-dash-detail-row>strong{font-size:14.5px;color:#173d79;white-space:nowrap}

.mm-dash-member-row{width:100%;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:64px;padding:10px 11px;text-align:left;color:#1b3355}
button.mm-dash-member-row{appearance:none;-webkit-appearance:none;cursor:pointer}
.mm-dash-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:13px;object-fit:cover;border:1px solid #dce6f1;background:linear-gradient(145deg,#e9f2ff,#e1f8ef);color:#2868c9;font-size:10px;font-weight:900;display:grid;place-items:center}.mm-dash-avatar-fallback{line-height:40px;text-align:center}
.mm-dash-member-copy{min-width:0}.mm-dash-member-copy b,.mm-dash-member-copy small{display:block}.mm-dash-member-copy b{font-size:12px;line-height:1.1}.mm-dash-member-copy small{margin-top:3px;color:#8492a5;font-size:8px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mm-dash-status{text-align:right;min-width:74px}.mm-dash-status small,.mm-dash-status strong{display:block}.mm-dash-status small{font-size:7.5px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}.mm-dash-status strong{margin-top:3px;font-size:14px;letter-spacing:-.025em;white-space:nowrap}.mm-dash-status.advance small,.mm-dash-status.advance strong{color:#118463}.mm-dash-status.due small,.mm-dash-status.due strong{color:#d2485e}
.mm-dash-due-member{grid-template-columns:40px minmax(0,1fr) auto 12px}.mm-dash-due-member>i{font-style:normal;color:#6e8eb8;font-size:20px;line-height:1}
.mm-dash-category-balance{text-align:right}.mm-dash-category-balance small,.mm-dash-category-balance strong{display:block}.mm-dash-category-balance small{font-size:7.5px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.mm-dash-category-balance strong{margin-top:3px;font-size:13.5px;white-space:nowrap}.mm-dash-balance-category.is-due .mm-dash-category-balance{color:#d2485e}.mm-dash-balance-category.is-advance .mm-dash-category-balance{color:#118463}
.mm-dash-empty{padding:22px 14px;border:1px dashed #cbd8e7;border-radius:16px;background:rgba(255,255,255,.74);color:#7f8da0;text-align:center;font-size:10px}

html[data-theme="dark"] .mm-dash-member-grid span{color:#91a4b8!important}
html[data-theme="dark"] .mm-dash-layer{background:rgba(0,8,16,.72)}
html[data-theme="dark"] .mm-dash-sheet{border-color:#29455d;background:linear-gradient(180deg,#102438,#0b1928);color:#edf5fd;box-shadow:0 32px 90px rgba(0,0,0,.55)}
html[data-theme="dark"] .mm-dash-handle{background:#38536d}
html[data-theme="dark"] .mm-dash-title-wrap h3{color:#eef6fd}html[data-theme="dark"] .mm-dash-title-wrap small{color:#8ea2b7}
html[data-theme="dark"] .mm-dash-close,html[data-theme="dark"] .mm-dash-back{border-color:#304b63;background:#142a3f;color:#d7e4ef}
html[data-theme="dark"] .mm-dash-stats>div,html[data-theme="dark"] .mm-dash-total-line{border-color:#2c465d;background:linear-gradient(145deg,#17344d,#163d3a)}
html[data-theme="dark"] .mm-dash-stats span,html[data-theme="dark"] .mm-dash-total-line span{color:#9aadc0}html[data-theme="dark"] .mm-dash-stats strong,html[data-theme="dark"] .mm-dash-total-line strong{color:#eef6fd}html[data-theme="dark"] .mm-dash-total-line.is-due strong{color:#ff91a3}
html[data-theme="dark"] .mm-dash-detail-row,html[data-theme="dark"] .mm-dash-member-row{border-color:#29455d;background:#102438;box-shadow:none;color:#edf5fd}
html[data-theme="dark"] .mm-dash-detail-row b,html[data-theme="dark"] .mm-dash-member-copy b{color:#edf5fd}html[data-theme="dark"] .mm-dash-detail-row small,html[data-theme="dark"] .mm-dash-member-copy small{color:#91a4b8}html[data-theme="dark"] .mm-dash-detail-row>strong{color:#8bb7ff}
html[data-theme="dark"] .mm-dash-type-icon{background:linear-gradient(145deg,#173d70,#102d52)}html[data-theme="dark"] .mm-dash-avatar{border-color:#36516a;background:linear-gradient(145deg,#173d70,#16483f);color:#82b4ff}
html[data-theme="dark"] .mm-dash-empty{border-color:#36516a;background:#102438;color:#95a9bc}

@media(max-width:600px){
  .mm-dash-layer{padding:0;align-items:flex-end}
  .mm-dash-sheet{width:100%;max-height:86dvh;padding:8px 14px calc(14px + env(safe-area-inset-bottom));border-radius:27px 27px 0 0}
  .mm-dash-sheet-head{padding-bottom:11px}.mm-dash-title-wrap h3{font-size:18px}.mm-dash-title-wrap>.mm-dashboard-kpi-icon{width:38px!important;height:38px!important;flex-basis:38px!important;border-radius:13px!important}.mm-dash-title-wrap>.mm-dashboard-kpi-icon::after{width:20px!important;height:20px!important}
  .mm-dash-stats{gap:7px}.mm-dash-stats>div{padding:12px 10px;border-radius:16px}.mm-dash-stats span{font-size:8px}.mm-dash-stats strong{font-size:17px}
  .mm-dash-total-line{padding:11px 12px;border-radius:15px}.mm-dash-total-line span{font-size:9px}.mm-dash-total-line strong{font-size:16px}
  .mm-dash-detail-row,.mm-dash-member-row{min-height:58px;padding:8px 9px;border-radius:15px}.mm-dash-detail-row{grid-template-columns:36px minmax(0,1fr) auto}.mm-dash-type-icon{width:36px;height:36px;border-radius:12px;font-size:17px}.mm-dash-detail-row b,.mm-dash-member-copy b{font-size:11px}.mm-dash-detail-row small,.mm-dash-member-copy small{font-size:7.5px}.mm-dash-detail-row>strong{font-size:13px}
  .mm-dash-member-row{grid-template-columns:36px minmax(0,1fr) auto}.mm-dash-due-member{grid-template-columns:36px minmax(0,1fr) auto 10px}.mm-dash-avatar{width:36px;height:36px;flex-basis:36px;border-radius:12px;font-size:9px;line-height:36px}.mm-dash-status{min-width:68px}.mm-dash-status strong{font-size:12.5px}
}
@media(max-width:430px){
  .mm-dash-member-grid{column-gap:10px!important;row-gap:11px!important}
  .mm-dash-member-grid span{font-size:8px!important}.mm-dash-member-grid b{font-size:14.2px!important}
}
@media(max-width:360px){
  .mm-dash-member-grid{column-gap:7px!important}.mm-dash-member-grid span{font-size:7.3px!important}.mm-dash-member-grid b{font-size:13px!important}
}
