/* My Home Albania v4.2.21 — Theme Foundation
   Canonical scoped authority for authenticated Light/Dark shell, semantic colours,
   responsive admin components and viewer surfaces. */
body[data-mha-theme="light"]{
  --mha-admin-bg:#f4f1ea;--mha-admin-bg-2:#f8f6f1;--mha-admin-sidebar:#fbfaf7;
  --mha-admin-surface:#fff;--mha-admin-surface-2:#fbf9f4;--mha-admin-surface-3:#f4efe5;
  --mha-admin-text:#10202c;--mha-admin-text-soft:#324857;--mha-admin-muted:#6e7f8a;
  --mha-admin-line:#dce2e5;--mha-admin-line-soft:rgba(16,32,44,.09);--mha-admin-input:#fff;
  --mha-admin-shadow:0 18px 50px rgba(17,35,48,.07);color-scheme:light;
}
body[data-mha-theme="dark"]{
  --mha-admin-bg:#06111b;--mha-admin-bg-2:#081725;--mha-admin-sidebar:#071521;
  --mha-admin-surface:#0c1d2b;--mha-admin-surface-2:#102536;--mha-admin-surface-3:#132c3f;
  --mha-admin-text:#f7f4ed;--mha-admin-text-soft:#d8e0e6;--mha-admin-muted:#a9b7c1;
  --mha-admin-line:#294557;--mha-admin-line-soft:rgba(255,255,255,.09);--mha-admin-input:#091a28;
  --mha-admin-shadow:0 20px 55px rgba(0,0,0,.22);color-scheme:dark;
}
/* 1. Light mode is a complete shell, including the sidebar. */
body[data-mha-theme] .portal.mha-pro{background:var(--mha-admin-bg)!important;color:var(--mha-admin-text)!important}
body[data-mha-theme] .portal.mha-pro>.portal-main{background:transparent!important;color:var(--mha-admin-text)!important}
body[data-mha-theme] .portal.mha-pro>aside{
  background:var(--mha-admin-sidebar)!important;color:var(--mha-admin-text-soft)!important;
  border-right:1px solid var(--mha-admin-line)!important;
}
body[data-mha-theme="light"] .portal.mha-pro>aside{box-shadow:12px 0 36px rgba(17,35,48,.035)!important}
body[data-mha-theme="dark"] .portal.mha-pro>aside{box-shadow:18px 0 55px rgba(0,0,0,.08)!important}
body[data-mha-theme] .portal.mha-pro>aside :where(a,button,summary){color:var(--mha-admin-text-soft)!important}
body[data-mha-theme] .portal.mha-pro>aside :where(a,button,summary):hover{color:var(--mha-admin-text)!important}
body[data-mha-theme="light"] .portal.mha-pro>aside :where(a.active,summary.active){background:#f5e6c5!important;color:#7a5310!important;border-color:#e6c56f!important}
body[data-mha-theme="dark"] .portal.mha-pro>aside :where(a.active,summary.active){background:linear-gradient(90deg,rgba(215,168,75,.20),rgba(215,168,75,.075))!important;color:#f0c469!important;border-color:rgba(215,168,75,.24)!important}
body[data-mha-theme] .portal.mha-pro>aside .mha-admin-subnav a.active{box-shadow:inset 3px 0 0 #d7a84b!important}
/* 2. Dark-mode text/KPI contrast. Never inherit legacy brand green for money/counts. */
body[data-mha-theme] .portal.mha-pro :where(.mha-kpi,.portal-stats article,.mha-dash-panel,.panel){color:var(--mha-admin-text)!important}
body[data-mha-theme] .portal.mha-pro :where(.mha-kpi,.portal-stats article,.mha-dash-panel,.panel) :where(h1,h2,h3,h4){color:var(--mha-admin-text)!important}
body[data-mha-theme] .portal.mha-pro :where(.mha-kpi,.portal-stats article) strong{color:var(--mha-admin-text)!important;text-shadow:none!important}
body[data-mha-theme] .portal.mha-pro :where(.mha-kpi,.portal-stats article) :where(.kpi-label,.muted,small){color:var(--mha-admin-muted)!important}
body[data-mha-theme="dark"] .portal.mha-pro .mha-kpi.green strong{color:#78d7a6!important}
body[data-mha-theme="light"] .portal.mha-pro .mha-kpi.green strong{color:#17623d!important}
body[data-mha-theme] .portal.mha-pro .mha-finance-owner strong{color:#f0c469!important}
/* 3. Header follows the same theme instead of becoming a separate visual system. */
body[data-mha-theme="light"] .site-header{background:rgba(255,255,255,.97)!important;color:#10202c!important;border-bottom-color:#dce2e5!important}
body[data-mha-theme="dark"] .site-header{background:rgba(7,19,31,.97)!important;color:#f7f4ed!important;border-bottom-color:#294557!important}
body[data-mha-theme] .site-header nav>a:not(.nav-cta){color:inherit!important}
body[data-mha-theme="light"] .site-header :where(.mha-theme-toggle,.mha-header-message,.mha-live-bell,.mha-header-guest-bell){background:#fff!important;color:#10202c!important;border-color:#dce2e5!important}
body[data-mha-theme="dark"] .site-header :where(.mha-theme-toggle,.mha-header-message,.mha-live-bell,.mha-header-guest-bell){background:#0c1d2b!important;color:#f7f4ed!important;border-color:#294557!important}
/* 4. Scoped surface authority replaces the old global theme-repair layer. */
body[data-mha-theme] .portal.mha-pro :where(.panel,.mha-dash-panel,.mha-kpi,.portal-stats article){background:var(--mha-admin-surface)!important;border-color:var(--mha-admin-line)!important}
body[data-mha-theme] .portal.mha-pro :where(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--mha-admin-input)!important;color:var(--mha-admin-text)!important;border-color:var(--mha-admin-line)!important}
body[data-mha-theme] .portal.mha-pro :where(input,textarea)::placeholder{color:var(--mha-admin-muted)!important;opacity:1}
body[data-mha-theme] .portal.mha-pro :where(.field-label,.form-help,.panel-copy,.mha-help-text){color:var(--mha-admin-text-soft)}
body[data-mha-theme] .portal.mha-pro .muted{color:var(--mha-admin-muted)!important}
body[data-mha-theme="light"] .portal.mha-pro table{background:#fff;color:#10202c}
body[data-mha-theme="dark"] .portal.mha-pro table{background:#0c1d2b;color:#d8e0e6}
body[data-mha-theme] .portal.mha-pro table :where(th,td){border-color:var(--mha-admin-line)!important}
body[data-mha-theme] .portal.mha-pro table th{color:var(--mha-admin-muted)!important}


/* Semantic colour system and normalized legacy admin components. */
body[data-mha-theme="light"]{
  --mha-success:#17623d;--mha-success-bg:#e9f7ef;--mha-success-line:#b9e4ca;
  --mha-warning:#8a5a00;--mha-warning-bg:#fff5d8;--mha-warning-line:#ead08a;
  --mha-danger:#b42318;--mha-danger-bg:#fff0ee;--mha-danger-line:#f2b8b2;
  --mha-gold:#9a6710;--mha-gold-bright:#b77a12;--mha-money:#17623d;
}
body[data-mha-theme="dark"]{
  --mha-success:#78d7a6;--mha-success-bg:rgba(28,145,91,.14);--mha-success-line:rgba(75,201,137,.34);
  --mha-warning:#f0c469;--mha-warning-bg:rgba(215,168,75,.13);--mha-warning-line:rgba(215,168,75,.34);
  --mha-danger:#ff8d86;--mha-danger-bg:rgba(214,64,64,.14);--mha-danger-line:rgba(255,116,108,.34);
  --mha-gold:#f0c469;--mha-gold-bright:#ffd36e;--mha-money:#78d7a6;
}
/* Legacy cards/settings/finance now consume the same surface tokens in both themes. */
body[data-mha-theme] .portal.mha-pro :where(.settings-card,.settings-hero,.finance-queue-stats>div,.nx-property-stats>div,.nx-stat-grid>div,.user-center-kpis article,.job-partner-card,.job-review-proof){
  background:var(--mha-admin-surface)!important;color:var(--mha-admin-text)!important;border-color:var(--mha-admin-line)!important;
}
body[data-mha-theme] .portal.mha-pro :where(.settings-card,.settings-hero,.finance-queue-stats>div,.nx-property-stats>div,.nx-stat-grid>div,.user-center-kpis article,.job-partner-card,.job-review-proof) :where(h2,h3,h4,b,strong){color:var(--mha-admin-text)!important}
body[data-mha-theme] .portal.mha-pro :where(.settings-card,.settings-hero,.finance-queue-stats>div,.nx-property-stats>div,.nx-stat-grid>div,.user-center-kpis article,.job-partner-card,.job-review-proof) :where(p,small){color:var(--mha-admin-muted)!important}
/* Semantic states keep meaning and readable contrast instead of inheriting legacy green/navy. */
body[data-mha-theme] .portal.mha-pro :where(.status.active,.status.completed,.status.paid,.notice.success){color:var(--mha-success)!important;background:var(--mha-success-bg)!important;border-color:var(--mha-success-line)!important}
body[data-mha-theme] .portal.mha-pro :where(.status.pending,.status.warning,.notice.warning){color:var(--mha-warning)!important;background:var(--mha-warning-bg)!important;border-color:var(--mha-warning-line)!important}
body[data-mha-theme] .portal.mha-pro :where(.status.cancelled,.status.danger,.notice.error,.danger){color:var(--mha-danger)!important;border-color:var(--mha-danger-line)!important}
body[data-mha-theme] .portal.mha-pro :where(.mha-money,.maint-money,.nx-payout-card>strong){color:var(--mha-money)!important}
body[data-mha-theme] .portal.mha-pro :where(.eyebrow,.mha-dash-panel-head>div>small,.settings-hero>div>small){color:var(--mha-gold)!important}
/* Forms: one visual contract in light and dark; check/radio retain native semantics. */
body[data-mha-theme] .portal.mha-pro :where(.settings-card,.settings-hero) :where(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--mha-admin-input)!important;color:var(--mha-admin-text)!important;border-color:var(--mha-admin-line)!important}
body[data-mha-theme] .portal.mha-pro :where(.settings-toggles label){background:var(--mha-admin-surface-2)!important;color:var(--mha-admin-text-soft)!important;border-color:var(--mha-admin-line)!important}
/* UI-only inline colour cleanup: presentation now lives here, not in index.php attributes. */
.mha-whatsapp-float{position:fixed;right:22px;bottom:92px;z-index:1200;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#25D366;color:#fff;text-decoration:none;box-shadow:0 12px 32px rgba(0,0,0,.24)}
.mha-signature-canvas{display:block;max-width:100%;background:#fff!important;border-radius:12px;touch-action:none}
@media(max-width:720px){.mha-whatsapp-float{right:16px;bottom:calc(84px + env(safe-area-inset-bottom,0px));width:54px;height:54px}}


/* Responsive work calendar, evidence viewer and explicit component theme interpretation. */
/* 9. Work calendar: desktop table, responsive cards below 900px; no forced 900/1120px mobile table. */
body[data-mha-theme] .portal.mha-pro .work-calendar-panel .table-wrap{max-width:100%;overflow-x:auto;padding-bottom:4px}
body[data-mha-theme] .portal.mha-pro .work-calendar-panel table{width:100%;min-width:0!important;table-layout:auto!important}
body[data-mha-theme] .portal.mha-pro .work-calendar-panel .job-review-proof{min-width:0!important;max-width:100%!important}
body[data-mha-theme] .portal.mha-pro .work-calendar-panel .work-actions{min-width:0!important}
@media(max-width:900px){
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel .table-wrap{overflow:visible!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel table,
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel tbody{display:block!important;width:100%!important;min-width:0!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel tr:first-child{display:none!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel tr{display:grid!important;grid-template-columns:1fr 1fr;width:100%;margin:0 0 14px;border:1px solid var(--mha-admin-line)!important;border-radius:14px;overflow:hidden;background:var(--mha-admin-surface)!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel td{display:block!important;min-width:0!important;padding:13px!important;border:0!important;border-bottom:1px solid var(--mha-admin-line-soft)!important;color:var(--mha-admin-text-soft)!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel td:first-child,
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel td:last-child{grid-column:1/-1}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel td b{color:var(--mha-admin-text)!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel td small{color:var(--mha-admin-muted)!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel .work-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel .work-actions>a,
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel .work-actions>form{width:100%;min-width:0;margin:0!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel .work-actions .mini-btn{width:100%;white-space:normal!important;min-height:40px}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel .job-status-form{grid-column:1/-1;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;min-width:0}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel .job-status-form select{min-width:0!important;width:100%}
}
@media(max-width:560px){
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel tr{grid-template-columns:1fr!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel td{grid-column:1/-1!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel .work-actions{grid-template-columns:1fr!important}
 body[data-mha-theme] .portal.mha-pro .work-calendar-panel .job-status-form{grid-column:auto;grid-template-columns:1fr!important}
}
/* 10. Viewer is intentionally a neutral cinema surface in both themes; documents and images have separate sizing. */
body[data-mha-theme] .mha-photo-lightbox{background:rgba(2,10,18,.965)!important;color:#fff!important}
body[data-mha-theme] .mha-photo-lightbox figure{width:min(1280px,100%);min-width:0}
body[data-mha-theme] .mha-photo-lightbox figure>img{width:auto!important;height:auto!important;max-width:min(1280px,86vw)!important;max-height:calc(100dvh - 190px)!important;object-fit:contain!important;background:#07131f!important}
body[data-mha-theme] .mha-photo-lightbox.document figure{width:min(1200px,100%);height:min(82dvh,900px)}
body[data-mha-theme] .mha-photo-lightbox.document iframe{width:100%!important;height:100%!important;max-width:100%!important}
body[data-mha-theme] .mha-photo-lightbox-thumbs button{opacity:.72}
body[data-mha-theme] .mha-photo-lightbox-thumbs button.active{opacity:1;border-color:#f2bd4b!important}
@media(max-width:700px){body[data-mha-theme] .mha-photo-lightbox figure>img{max-width:96vw!important;max-height:calc(100dvh - 160px)!important}body[data-mha-theme] .mha-photo-lightbox.document figure{height:calc(100dvh - 90px)}}
/* 11–12. Explicit theme state only: legacy `not dark` fallbacks no longer decide authenticated component colours. */
body[data-mha-theme="light"] .portal.mha-pro .job-partner-card,
body[data-mha-theme="light"] .portal.mha-pro .job-review-proof{background:var(--mha-admin-surface)!important;color:var(--mha-admin-text)!important;border-color:var(--mha-admin-line)!important}
body[data-mha-theme="dark"] .portal.mha-pro .job-partner-card,
body[data-mha-theme="dark"] .portal.mha-pro .job-review-proof{background:var(--mha-admin-surface)!important;color:var(--mha-admin-text)!important;border-color:var(--mha-admin-line)!important}

/* admin login follows the same persisted Light/Dark preference */
.admin-login-body[data-mha-theme="light"]{background:var(--mha-bg,#f6f8f7)!important;color:var(--mha-text,#17352e)!important;color-scheme:light}
.admin-login-body[data-mha-theme="dark"]{background:var(--mha-bg,#07131f)!important;color:var(--mha-text,#f4e7cf)!important;color-scheme:dark}
.admin-login-body[data-mha-theme="light"] .admin-login-card{background:#fff!important;color:#17352e!important;border-color:#dce5e1!important}
.admin-login-body[data-mha-theme="dark"] .admin-login-card{background:#0d2232!important;color:#f4e7cf!important;border-color:#29495d!important}
.admin-login-body[data-mha-theme="light"] .admin-login-card p,.admin-login-body[data-mha-theme="light"] .admin-login-card label,.admin-login-body[data-mha-theme="light"] .admin-login-card a{color:#52665f!important}
.admin-login-body[data-mha-theme="dark"] .admin-login-card p,.admin-login-body[data-mha-theme="dark"] .admin-login-card label,.admin-login-body[data-mha-theme="dark"] .admin-login-card a{color:#d3dee5!important}


/* consolidated Light/Dark contract. Public demo/footer + semantic exceptions. */
/* Public footer: exactly one theme logo, stable columns, no brand/logo overlap. */
.mha-public-footer{overflow:hidden}
.mha-public-footer .mha-footer-main{display:grid!important;grid-template-columns:minmax(240px,1fr) minmax(320px,.9fr)!important;gap:48px!important;align-items:start!important}
.mha-public-footer .mha-footer-brand{display:block!important;min-height:58px;background:transparent!important;border:0!important;padding:0!important}
.mha-public-footer .mha-footer-brand img{width:min(220px,72vw)!important;height:auto!important;max-width:100%!important;object-fit:contain!important;margin:0!important}
.mha-public-footer .mha-footer-logo-dark,.mha-public-footer .mha-footer-logo-light{display:none!important}
body[data-mha-theme="dark"] .mha-public-footer .mha-footer-logo-dark{display:block!important}
body[data-mha-theme="light"] .mha-public-footer .mha-footer-logo-light{display:block!important}
.mha-public-footer .mha-footer-links{display:grid!important;grid-template-columns:repeat(2,minmax(130px,1fr))!important;gap:10px 28px!important;align-content:start!important}
.mha-public-footer .mha-footer-trust{clear:both;width:100%}
@media(max-width:760px){.mha-public-footer .mha-footer-main{grid-template-columns:1fr!important;gap:28px!important}.mha-public-footer .mha-footer-links{grid-template-columns:1fr 1fr!important}}
@media(max-width:430px){.mha-public-footer .mha-footer-links{grid-template-columns:1fr!important}}

/* Homepage owner-dashboard demo: card and tile contrast is explicit in both themes. */
body[data-mha-theme="dark"] .mha-vision-home .dashboard-showcase{background:#06131f!important;color:#f7f4ed!important}
body[data-mha-theme="dark"] .mha-vision-home .dashboard-card{background:#0d2232!important;color:#f7f4ed!important;border:1px solid #294557!important}
body[data-mha-theme="dark"] .mha-vision-home .dashboard-card .dash-stats>div{background:#102536!important;color:#f7f4ed!important;border-color:#315066!important}
body[data-mha-theme="dark"] .mha-vision-home .dashboard-card .dash-stats small{color:#b8c5ce!important}
body[data-mha-theme="dark"] .mha-vision-home .dashboard-card .dash-stats strong{color:#f7f4ed!important}
body[data-mha-theme="dark"] .mha-vision-home .dashboard-card .dash-stats strong.green{color:#78d7a6!important}
body[data-mha-theme="dark"] .mha-vision-home .dashboard-card .mini-calendar b:not(.red):not(.blue){background:#102536!important;color:#f7f4ed!important;border-color:#315066!important}
body[data-mha-theme="light"] .mha-vision-home .dashboard-showcase{background:#eef2ef!important;color:#10202c!important}
body[data-mha-theme="light"] .mha-vision-home .dashboard-showcase .showcase-copy p{color:#52665f!important}
body[data-mha-theme="light"] .mha-vision-home .dashboard-card{background:#fff!important;color:#10202c!important;border:1px solid #dce5e1!important}
body[data-mha-theme="light"] .mha-vision-home .dashboard-card .dash-stats>div{background:#f8faf9!important;color:#10202c!important;border-color:#dce5e1!important}
body[data-mha-theme="light"] .mha-vision-home .dashboard-card .dash-stats small{color:#60736b!important}
body[data-mha-theme="light"] .mha-vision-home .dashboard-card .dash-stats strong{color:#10202c!important}
body[data-mha-theme="light"] .mha-vision-home .dashboard-card .dash-stats strong.green{color:#17623d!important}
body[data-mha-theme="light"] .mha-vision-home .dashboard-card .mini-calendar b:not(.red):not(.blue){background:#fff!important;color:#10202c!important;border-color:#dce5e1!important}

/* Semantic text always wins over generic card copy. */
body[data-mha-theme] .portal.mha-pro .status,body[data-mha-theme] .portal.mha-pro .notice,body[data-mha-theme] .portal.mha-pro .mha-money,body[data-mha-theme] .portal.mha-pro .maint-money{font-weight:700}
body[data-mha-theme="light"] .portal.mha-pro :where(.status.active,.status.completed,.status.paid,.mha-money,.maint-money){color:#17623d!important}
body[data-mha-theme="dark"] .portal.mha-pro :where(.status.active,.status.completed,.status.paid,.mha-money,.maint-money){color:#78d7a6!important}

/* Header and authenticated shell share the same surface contract. */
body[data-mha-theme] .portal.mha-pro .portal-main :where(.mha-page-head,.portal-head,.dashboard-head){color:var(--mha-admin-text)!important}
body[data-mha-theme] .portal.mha-pro .portal-main :where(.mha-page-head,.portal-head,.dashboard-head) .muted{color:var(--mha-admin-muted)!important}

.admin-login-brand{display:block}.admin-login-brand img{max-width:220px;height:auto}.admin-login-logo-dark,.admin-login-logo-light{display:none!important}.admin-login-body[data-mha-theme="dark"] .admin-login-logo-dark{display:block!important}.admin-login-body[data-mha-theme="light"] .admin-login-logo-light{display:block!important}

/* targeted live screenshot repair: Admin Light dashboard + sidebar only. */
@media (min-width:1001px){
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard{background:var(--mha-admin-bg)!important;color:var(--mha-admin-text)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard>aside{background:var(--mha-admin-sidebar)!important;border-right-color:var(--mha-admin-line)!important;color:var(--mha-admin-text-soft)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard>.portal-main{background:var(--mha-admin-bg)!important;color:var(--mha-admin-text)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-title h1{color:var(--mha-admin-text)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-title p{color:var(--mha-admin-muted)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-date-pill{background:#fff!important;border-color:var(--mha-admin-line)!important;color:var(--mha-admin-text)!important}

  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-admin-groupnav details{background:#fff!important;border-color:var(--mha-admin-line)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-admin-groupnav summary{color:var(--mha-admin-text-soft)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-admin-groupnav summary:hover{background:#f7f3ea!important;color:var(--mha-admin-text)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-admin-groupnav summary.active{background:#f5e6c5!important;color:#7a5310!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-admin-group-icon{background:#f1f4f3!important;color:#324857!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-admin-subnav a{color:#324857!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-admin-subnav a:hover{background:#f5f2eb!important;color:#10202c!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-admin-subnav a.active{background:#fff8e8!important;color:#7a5310!important;border:1px solid #d8aa38!important;box-shadow:none!important}

  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-kpis article{background:#fff!important;border-color:var(--mha-admin-line)!important;color:var(--mha-admin-text)!important;box-shadow:0 8px 24px rgba(17,35,48,.045)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-kpis article:nth-child(1){background:#edf9f7!important;border-color:#9edbd3!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-kpis article:nth-child(3){background:#f8f3fb!important;border-color:#d8c3e4!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-kpis article:nth-child(4){background:#fbf7ee!important;border-color:#e4d2a8!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-kpis small{color:#526673!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-kpis strong{color:#10202c!important;text-shadow:none!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-kpis span{color:#60727e!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-kpis article.primary strong{color:#17623d!important}

  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-strip a{background:#fff!important;border-color:var(--mha-admin-line)!important;color:var(--mha-admin-text)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-strip span{color:#60727e!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .mha-calm-strip b{color:#10202c!important}

  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-card{background:#fff!important;border-color:var(--mha-admin-line)!important;color:var(--mha-admin-text)!important;box-shadow:0 8px 24px rgba(17,35,48,.045)!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-card-head h3{color:#10202c!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-card-head small{color:#60727e!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-card-head a{color:#8a5a00!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-money-flow.admin-flow article{background:#f8faf9!important;border-color:#d7e1e4!important;color:#10202c!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-money-flow.admin-flow article small{color:#60727e!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-money-flow.admin-flow article strong{color:#10202c!important;text-shadow:none!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-money-flow.admin-flow article.deduct strong{color:#b42318!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-money-flow.admin-flow article.result{background:#fff9e8!important;border-color:#d9a900!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-money-flow.admin-flow article.result strong{color:#8a5a00!important}

  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-approval-list a,
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-admin-proof-list article,
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-quick-actions a{background:#f8faf9!important;border-color:#d7e1e4!important;color:#324857!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-alert-list span{color:#526673!important;border-bottom-color:#dce2e5!important}
  body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-alert-list b{color:#10202c!important}
}

/* live screenshot repair: public footer + admin lower dashboard. */
/* Footer is intentionally a dark brand surface in both app themes, so always use the light-on-dark logo. */
body[data-mha-theme] .mha-public-footer{background:#0b3328!important;color:#e9f0ed!important;border-top:1px solid rgba(255,255,255,.10)!important}
body[data-mha-theme] .mha-public-footer .mha-footer-logo-light{display:none!important}
body[data-mha-theme] .mha-public-footer .mha-footer-logo-dark{display:block!important}
body[data-mha-theme] .mha-public-footer :where(p,a,small){color:#d9e4df!important;opacity:1!important}
body[data-mha-theme] .mha-public-footer a:hover{color:#f0bd59!important}
body[data-mha-theme] .mha-public-footer .mha-footer-trust{color:#d9e4df!important;border-top-color:rgba(255,255,255,.14)!important}

/* Desktop utility shortcuts and WhatsApp must not sit on top of each other/content. */
@media(min-width:761px){
  body>.admin-quick{right:86px!important;bottom:18px!important}
  body>.mha-whatsapp-float{right:20px!important;bottom:18px!important}
}

/* Admin Light: lower dashboard cards must remain genuinely light, including formula/help notes. */
body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-formula-note,
body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-private-note,
body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-cleaning-note{background:#fff8e8!important;border-color:#e5c66f!important;color:#704c08!important}
body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-formula-note :where(b,strong,span){color:#704c08!important}
body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-stat-grid>div{background:#f8faf9!important;border-color:#d7e1e4!important;color:#10202c!important}
body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-stat-grid small{color:#60727e!important}
body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-stat-grid strong{color:#10202c!important}

/* Dashboard summary table: fit the card without a permanent horizontal scrollbar on desktop. */
@media(min-width:1001px){
 body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-admin-bottom-grid .nx-table-wrap{overflow:hidden!important;max-width:100%!important}
 body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-admin-bottom-grid .nx-table{width:100%!important;table-layout:fixed!important;font-size:10px!important}
 body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-admin-bottom-grid .nx-table th,
 body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-admin-bottom-grid .nx-table td{white-space:normal!important;overflow-wrap:anywhere!important;padding:8px 5px!important;color:#243b49!important;border-bottom-color:#e1e7e9!important}
 body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-admin-bottom-grid .nx-table th{color:#60727e!important;font-size:9px!important;line-height:1.2!important}
 body[data-mha-theme="light"] .portal.mha-pro.mha-admin-dashboard .nx-admin-bottom-grid .nx-table td b{color:#10202c!important}
}


/* audit items 5–6: narrow legacy text inheritance and lock semantic colour ownership. */
body[data-mha-theme] .portal.mha-pro :where(.status,.notice,.mha-money,.maint-money,.nx-payout-card>strong,.mha-finance-owner strong){opacity:1!important}
body[data-mha-theme] .portal.mha-pro :where(.status.active,.status.completed,.status.paid,.notice.success){color:var(--mha-success)!important;background:var(--mha-success-bg)!important;border-color:var(--mha-success-line)!important}
body[data-mha-theme] .portal.mha-pro :where(.status.pending,.status.warning,.notice.warning){color:var(--mha-warning)!important;background:var(--mha-warning-bg)!important;border-color:var(--mha-warning-line)!important}
body[data-mha-theme] .portal.mha-pro :where(.status.cancelled,.status.danger,.notice.error,.danger){color:var(--mha-danger)!important;background:var(--mha-danger-bg)!important;border-color:var(--mha-danger-line)!important}
body[data-mha-theme] .portal.mha-pro :where(.mha-money,.maint-money,.nx-payout-card>strong){color:var(--mha-money)!important}
body[data-mha-theme] .portal.mha-pro :where(.eyebrow,.mha-dash-panel-head>div>small,.settings-hero>div>small){color:var(--mha-gold)!important}
/* Amounts inside neutral KPI/cards stay shell text unless the component explicitly declares a semantic state. */
body[data-mha-theme] .portal.mha-pro :where(.mha-kpi,.portal-stats article) strong:not(.mha-money):not(.maint-money){color:var(--mha-admin-text)!important}
body[data-mha-theme="light"] .portal.mha-pro .mha-finance-owner strong{color:#8a5a00!important}
body[data-mha-theme="dark"] .portal.mha-pro .mha-finance-owner strong{color:#f0c469!important}


/* audit items 7–8: one theme state + shared shell tokens. */
html[data-mha-theme="light"]{color-scheme:light;background:#fbfaf7}
html[data-mha-theme="dark"]{color-scheme:dark;background:#06111b}
body[data-mha-theme="light"]{
  --mha-shell-bg:#fbfaf7;--mha-shell-surface:#fff;--mha-shell-text:#10202c;
  --mha-shell-soft:#324857;--mha-shell-muted:#6e7f8a;--mha-shell-line:#dce2e5;
}
body[data-mha-theme="dark"]{
  --mha-shell-bg:#06111b;--mha-shell-surface:#0c1d2b;--mha-shell-text:#f7f4ed;
  --mha-shell-soft:#d8e0e6;--mha-shell-muted:#a9b7c1;--mha-shell-line:#294557;
}
/* Header and authenticated portal consume the same shell contract. */
body[data-mha-theme] .site-header{color:var(--mha-shell-text)!important;border-bottom-color:var(--mha-shell-line)!important}
body[data-mha-theme="light"] .site-header{background:rgba(255,255,255,.97)!important}
body[data-mha-theme="dark"] .site-header{background:rgba(12,29,43,.97)!important}
body[data-mha-theme] .site-header nav>a:not(.nav-cta){color:var(--mha-shell-text)!important}
body[data-mha-theme] .site-header :where(.mha-theme-toggle,.mha-header-message,.mha-live-bell,.mha-header-guest-bell){background:var(--mha-shell-surface)!important;color:var(--mha-shell-text)!important;border-color:var(--mha-shell-line)!important}
body[data-mha-theme] .portal.mha-pro{background:var(--mha-shell-bg)!important;color:var(--mha-shell-text)!important}
body[data-mha-theme] .portal.mha-pro>.portal-main{color:var(--mha-shell-text)!important}
/* Login is painted from the head-selected theme before body content appears. */
html[data-mha-theme="light"] body.admin-login-body{background:#fbfaf7;color:#10202c}
html[data-mha-theme="dark"] body.admin-login-body{background:#06111b;color:#f7f4ed}

/* v4.2.21 — Admin user security profile */
.mha-user-security-profile{margin-bottom:18px}
.mha-user-security-profile .finance-model{margin:16px 0}
.mha-user-security-profile code{overflow-wrap:anywhere}
.mha-user-security-profile td small{display:block;margin-top:5px}
