/* My Home Albania v2.0.23 — Admin / Owner / Partner visual masterpiece
   Theme-aware contrast system. Loaded last so legacy dashboard colors cannot leak through. */

:root{
  --mha-admin-gold:#D7A84B;
  --mha-admin-gold-hi:#F0C469;
  --mha-admin-green:#53C48B;
  --mha-admin-blue:#69AFFF;
  --mha-admin-red:#F2767C;
  --mha-admin-purple:#A58AF2;
}

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:#93A5B3;
  --mha-admin-faint:#6E8291;
  --mha-admin-line:#20384B;
  --mha-admin-line-soft:rgba(255,255,255,.08);
  --mha-admin-input:#091A28;
  --mha-admin-shadow:0 20px 55px rgba(0,0,0,.22);
}
body[data-mha-theme="light"]{
  --mha-admin-bg:#F4F1EA;
  --mha-admin-bg-2:#F8F6F1;
  --mha-admin-sidebar:#FBFAF7;
  --mha-admin-surface:#FFFFFF;
  --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-faint:#87959E;
  --mha-admin-line:#DCE2E5;
  --mha-admin-line-soft:rgba(16,32,44,.09);
  --mha-admin-input:#FFFFFF;
  --mha-admin-shadow:0 18px 50px rgba(17,35,48,.07);
}

/* Portal canvas */
.portal.mha-pro{
  background:
    radial-gradient(circle at 78% 0%,rgba(215,168,75,.055),transparent 26%),
    var(--mha-admin-bg)!important;
  color:var(--mha-admin-text)!important;
}
.portal.mha-pro .portal-main{
  background:transparent!important;
  color:var(--mha-admin-text)!important;
}

/* Sidebar — quiet luxury instead of blue SaaS template */
.portal.mha-pro>aside{
  background:var(--mha-admin-sidebar)!important;
  background:linear-gradient(180deg,var(--mha-admin-sidebar),color-mix(in srgb,var(--mha-admin-sidebar) 90%,#000 10%))!important;
  border-right:1px solid var(--mha-admin-line-soft)!important;
  box-shadow:18px 0 55px rgba(0,0,0,.08)!important;
}
body[data-mha-theme="light"] .portal.mha-pro>aside{box-shadow:12px 0 36px rgba(17,35,48,.035)!important}
.portal.mha-pro>aside .brand{color:var(--mha-admin-text)!important;padding:8px 10px 24px!important}
.portal.mha-pro>aside .brand-mark{
  background:linear-gradient(145deg,#FFFDF8,#EEDFC2)!important;
  color:#152532!important;
  border:1px solid rgba(215,168,75,.38)!important;
  box-shadow:0 7px 22px rgba(215,168,75,.12)!important;
}
.portal.mha-pro>aside a,.portal.mha-pro>aside button{
  color:var(--mha-admin-text-soft)!important;
  border:1px solid transparent!important;
  border-radius:11px!important;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease!important;
}
.portal.mha-pro>aside a:hover{
  background:rgba(215,168,75,.07)!important;
  border-color:rgba(215,168,75,.13)!important;
  color:var(--mha-admin-text)!important;
  transform:translateX(2px);
}
.portal.mha-pro>aside a.active{
  background:linear-gradient(90deg,rgba(215,168,75,.20),rgba(215,168,75,.075))!important;
  color:var(--mha-admin-gold-hi)!important;
  border-color:rgba(215,168,75,.20)!important;
  box-shadow:inset 3px 0 0 var(--mha-admin-gold),0 10px 28px rgba(0,0,0,.08)!important;
}
body[data-mha-theme="light"] .portal.mha-pro>aside a.active{color:#7A5310!important;background:linear-gradient(90deg,#F5E6C5,#FBF7EE)!important}

/* Top portal title — no white bars in dark mode */
.portal.mha-pro .portal-head{
  background:transparent!important;
  border-bottom:1px solid var(--mha-admin-line-soft)!important;
  color:var(--mha-admin-text)!important;
}
.portal.mha-pro .portal-head h1,
.portal.mha-pro .portal-head h2,
.portal.mha-pro .portal-head h3{color:var(--mha-admin-text)!important}
.portal.mha-pro .portal-head small{color:var(--mha-admin-gold)!important;font-weight:800!important;letter-spacing:.16em!important}
.portal.mha-pro .portal-head>span:not(.status):not(.account-status){color:var(--mha-admin-muted)!important}
.portal.mha-pro .panel .portal-head,
.portal.mha-pro .mha-dash-panel .portal-head{
  margin:0 0 16px!important;
  padding:0 0 14px!important;
  min-height:0!important;
  background:transparent!important;
}

/* Core cards */
.portal.mha-pro .panel,
.portal.mha-pro .mha-dash-panel,
.portal.mha-pro .mha-kpi,
.portal.mha-pro .portal-stats article,
.portal.mha-pro .finance-model>div,
.portal.mha-pro .mha-referral-summary>div,
.portal.mha-pro .mha-admin-partner-split>div,
.portal.mha-pro .mha-owner-property,
.portal.mha-pro .mha-ops-kpis article{
  background:var(--mha-admin-surface)!important;
  background:linear-gradient(180deg,var(--mha-admin-surface),color-mix(in srgb,var(--mha-admin-surface) 94%,var(--mha-admin-bg) 6%))!important;
  color:var(--mha-admin-text)!important;
  border:1px solid var(--mha-admin-line)!important;
  box-shadow:var(--mha-admin-shadow)!important;
}
.portal.mha-pro .panel,.portal.mha-pro .mha-dash-panel{border-radius:16px!important}
.portal.mha-pro .mha-kpi,.portal.mha-pro .portal-stats article{border-radius:14px!important}

/* Kill the low-contrast white-on-white legacy combinations */
.portal.mha-pro h1,.portal.mha-pro h2,.portal.mha-pro h3,.portal.mha-pro h4,
.portal.mha-pro strong,.portal.mha-pro b{color:var(--mha-admin-text)}
.portal.mha-pro p,.portal.mha-pro td,.portal.mha-pro label{color:var(--mha-admin-text-soft)}
.portal.mha-pro .muted,.portal.mha-pro small{color:var(--mha-admin-muted)!important}
.portal.mha-pro .panel>small,.portal.mha-pro .eyebrow{color:var(--mha-admin-gold)!important}
.portal.mha-pro .mha-kpi strong,
.portal.mha-pro .portal-stats strong{color:var(--mha-admin-text)!important;text-shadow:none!important}
.portal.mha-pro .mha-kpi small,.portal.mha-pro .portal-stats small{color:var(--mha-admin-muted)!important}
.portal.mha-pro .mha-kpi span,.portal.mha-pro .portal-stats span{color:var(--mha-admin-muted)!important}
.portal.mha-pro .mha-kpi.green strong{color:var(--mha-admin-green)!important}

/* KPI icon language */
.portal.mha-pro .mha-kpi i,.portal.mha-pro .mha-ops-kpis i{
  background:rgba(215,168,75,.10)!important;
  color:var(--mha-admin-gold-hi)!important;
  border:1px solid rgba(215,168,75,.16)!important;
}
.portal.mha-pro .mha-kpi.green i,.portal.mha-pro .mha-ops-kpis .clean i{background:rgba(83,196,139,.10)!important;color:var(--mha-admin-green)!important;border-color:rgba(83,196,139,.18)!important}
.portal.mha-pro .mha-kpi.red i,.portal.mha-pro .mha-ops-kpis .late i{background:rgba(242,118,124,.10)!important;color:var(--mha-admin-red)!important;border-color:rgba(242,118,124,.18)!important}
.portal.mha-pro .mha-kpi.purple i,.portal.mha-pro .mha-ops-kpis .qa i{background:rgba(165,138,242,.10)!important;color:var(--mha-admin-purple)!important;border-color:rgba(165,138,242,.18)!important}

/* Tables */
.portal.mha-pro .table-wrap{
  border:1px solid var(--mha-admin-line)!important;
  border-radius:14px!important;
  background:var(--mha-admin-surface)!important;
  overflow:auto;
}
.portal.mha-pro table{color:var(--mha-admin-text-soft)!important;background:transparent!important}
.portal.mha-pro th{
  color:var(--mha-admin-muted)!important;
  background:color-mix(in srgb,var(--mha-admin-surface-2) 88%,transparent)!important;
  border-color:var(--mha-admin-line)!important;
  font-size:10px!important;
  letter-spacing:.11em!important;
  text-transform:uppercase!important;
}
.portal.mha-pro td{border-color:var(--mha-admin-line)!important;background:transparent!important}
.portal.mha-pro tr:hover td{background:rgba(215,168,75,.035)!important}
.portal.mha-pro td small{color:var(--mha-admin-muted)!important}

/* Inputs and forms */
.portal.mha-pro input,.portal.mha-pro select,.portal.mha-pro textarea{
  background:var(--mha-admin-input)!important;
  color:var(--mha-admin-text)!important;
  border:1px solid var(--mha-admin-line)!important;
  border-radius:10px!important;
  box-shadow:none!important;
}
.portal.mha-pro input::placeholder,.portal.mha-pro textarea::placeholder{color:var(--mha-admin-faint)!important;opacity:1!important}
.portal.mha-pro input:focus,.portal.mha-pro select:focus,.portal.mha-pro textarea:focus{
  border-color:rgba(215,168,75,.66)!important;
  outline:3px solid rgba(215,168,75,.10)!important;
}
.portal.mha-pro option{background:var(--mha-admin-surface)!important;color:var(--mha-admin-text)!important}

/* Empty states */
.portal.mha-pro .empty,
.portal.mha-pro .mha-empty-mini,
.portal.mha-pro .panel .empty.small{
  background:linear-gradient(135deg,rgba(215,168,75,.035),transparent)!important;
  color:var(--mha-admin-muted)!important;
  border:1px dashed color-mix(in srgb,var(--mha-admin-line) 80%,var(--mha-admin-gold) 20%)!important;
  border-radius:12px!important;
}
.portal.mha-pro .empty p,.portal.mha-pro .mha-empty-mini{color:var(--mha-admin-muted)!important}

/* Buttons */
.portal.mha-pro .btn.primary,.portal.mha-pro .mini-btn:not(.ghost):not(.danger),.portal.mha-pro button.btn.primary{
  background:linear-gradient(135deg,var(--mha-admin-gold-hi),var(--mha-admin-gold))!important;
  color:#15202A!important;
  border:1px solid rgba(255,255,255,.08)!important;
  box-shadow:0 10px 24px rgba(215,168,75,.14)!important;
  font-weight:900!important;
}
.portal.mha-pro .mini-btn.ghost,.portal.mha-pro .btn.ghost{
  background:transparent!important;
  color:var(--mha-admin-text-soft)!important;
  border:1px solid var(--mha-admin-line)!important;
}
.portal.mha-pro .mini-btn.ghost:hover,.portal.mha-pro .btn.ghost:hover{border-color:rgba(215,168,75,.38)!important;color:var(--mha-admin-gold-hi)!important}
.portal.mha-pro .mini-btn.danger,.portal.mha-pro .btn.danger{background:rgba(242,118,124,.10)!important;color:var(--mha-admin-red)!important;border-color:rgba(242,118,124,.22)!important}

/* Statuses: color is semantic, never pale text on pale chip */
.portal.mha-pro .status,.portal.mha-pro .account-status,.portal.mha-pro .mha-role-pill,.portal.mha-pro .mha-partner-kind{
  border:1px solid var(--mha-admin-line)!important;
  color:var(--mha-admin-text-soft)!important;
  background:var(--mha-admin-surface-2)!important;
}
.portal.mha-pro .status.active,.portal.mha-pro .status.paid,.portal.mha-pro .status.approved,.portal.mha-pro .status.completed{
  color:#8DE3B5!important;background:rgba(83,196,139,.12)!important;border-color:rgba(83,196,139,.24)!important
}
body[data-mha-theme="light"] .portal.mha-pro .status.active,
body[data-mha-theme="light"] .portal.mha-pro .status.paid,
body[data-mha-theme="light"] .portal.mha-pro .status.approved,
body[data-mha-theme="light"] .portal.mha-pro .status.completed{color:#176E47!important}
.portal.mha-pro .status.pending,.portal.mha-pro .status.scheduled{
  color:#F3C96F!important;background:rgba(215,168,75,.11)!important;border-color:rgba(215,168,75,.24)!important
}
body[data-mha-theme="light"] .portal.mha-pro .status.pending,
body[data-mha-theme="light"] .portal.mha-pro .status.scheduled{color:#805812!important}
.portal.mha-pro .status.cancelled,.portal.mha-pro .status.rejected,.portal.mha-pro .status.needs_fix{
  color:#FF9BA0!important;background:rgba(242,118,124,.10)!important;border-color:rgba(242,118,124,.22)!important
}
body[data-mha-theme="light"] .portal.mha-pro .status.cancelled,
body[data-mha-theme="light"] .portal.mha-pro .status.rejected,
body[data-mha-theme="light"] .portal.mha-pro .status.needs_fix{color:#9C3138!important}

/* Analytics / finance / system checks */
.portal.mha-pro .finance-model{gap:10px!important}
.portal.mha-pro .finance-model>div{box-shadow:none!important}
.portal.mha-pro .finance-model span{color:var(--mha-admin-muted)!important}
.portal.mha-pro .finance-model b{color:var(--mha-admin-text)!important}
.portal.mha-pro .mha-role-pill:before{background:var(--mha-admin-gold)!important}
.portal.mha-pro a{color:var(--mha-admin-gold-hi)}
body[data-mha-theme="light"] .portal.mha-pro a{color:#8B6016}

/* A fine gold section marker gives hierarchy without becoming noisy. */
.portal.mha-pro .panel>h2,.portal.mha-pro .mha-dash-panel>h2{
  position:relative;
  padding-left:15px;
}
.portal.mha-pro .panel>h2:before,.portal.mha-pro .mha-dash-panel>h2:before{
  content:"";position:absolute;left:0;top:.18em;bottom:.18em;width:3px;border-radius:9px;background:linear-gradient(var(--mha-admin-gold-hi),var(--mha-admin-gold));
}

/* Mobile / PWA */
@media(max-width:760px){
  .portal.mha-pro .portal-main{padding-left:12px!important;padding-right:12px!important}
  .portal.mha-pro .portal-head{padding-left:4px!important;padding-right:4px!important}
  .portal.mha-pro .panel,.portal.mha-pro .mha-dash-panel{border-radius:14px!important;padding:14px!important}
  .portal.mha-pro .mha-kpi-grid{gap:9px!important}
  .portal.mha-pro .mha-kpi{padding:14px!important;min-height:104px!important}
  .portal.mha-pro .table-wrap{-webkit-overflow-scrolling:touch}
}

/* v2.2.11 — Calm Admin Dashboard */
.mha-admin-calm aside{gap:10px}
.mha-admin-groupnav{display:grid;gap:8px;margin-top:10px}
.mha-admin-groupnav details{border:1px solid rgba(148,163,184,.16);border-radius:14px;background:rgba(255,255,255,.025);overflow:hidden}
.mha-admin-groupnav summary{list-style:none;cursor:pointer;display:grid;grid-template-columns:28px 1fr 20px;align-items:center;gap:8px;padding:12px 13px;color:#aebdca;transition:.18s ease}
.mha-admin-groupnav summary::-webkit-details-marker{display:none}
.mha-admin-groupnav summary:hover,.mha-admin-groupnav summary.active{background:rgba(46,196,182,.08);color:#eef8f7}
.mha-admin-groupnav summary i{font-style:normal;text-align:center;opacity:.65;transition:.18s ease}
.mha-admin-groupnav details[open] summary i{transform:rotate(180deg)}
.mha-admin-group-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.06);font-size:13px}
.mha-admin-subnav{display:grid;padding:2px 8px 9px 44px;gap:3px}
.mha-admin-subnav a{padding:8px 10px!important;border-radius:9px!important;font-size:13px!important;opacity:.78;border:0!important;background:transparent!important}
.mha-admin-subnav a:hover,.mha-admin-subnav a.active{opacity:1;background:rgba(255,255,255,.055)!important;color:#fff!important}
.mha-admin-subnav a.active{box-shadow:inset 2px 0 0 #5eead4}
.mha-admin-logout{margin-top:auto}
.mha-admin-calm-head{margin-bottom:8px}
.mha-calm-title{margin-bottom:18px!important}
.mha-calm-title>div>small{display:block;font-size:11px;letter-spacing:.16em;color:#7f94a8;margin-bottom:5px}
.mha-calm-title h1{margin:0 0 5px!important;font-size:28px!important;letter-spacing:-.025em}
.mha-calm-title p{margin:0;color:#8799aa}
.mha-calm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 12px}
.mha-calm-kpis article{min-height:132px;padding:20px;border-radius:18px;border:1px solid rgba(148,163,184,.13);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));display:flex;flex-direction:column;justify-content:center;box-shadow:none!important}
.mha-calm-kpis article.primary{background:linear-gradient(145deg,rgba(45,212,191,.13),rgba(15,23,42,.18));border-color:rgba(45,212,191,.22)}
.mha-calm-kpis small{font-size:10px;letter-spacing:.12em;color:#8496a8}
.mha-calm-kpis strong{font-size:30px;line-height:1.05;margin:8px 0;color:#f5f9fb;letter-spacing:-.035em}
.mha-calm-kpis span{font-size:12px;color:#778a9c}
.mha-calm-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:20px}
.mha-calm-strip a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border:1px solid rgba(148,163,184,.1);border-radius:12px;background:rgba(255,255,255,.018);text-decoration:none;color:inherit}
.mha-calm-strip span{font-size:12px;color:#7f92a4}.mha-calm-strip b{font-size:13px;color:#dbe8ef}
.mha-calm-strip a:hover{background:rgba(255,255,255,.04)}
@media(max-width:1050px){.mha-calm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.mha-calm-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.mha-calm-kpis{grid-template-columns:1fr 1fr;gap:8px}.mha-calm-kpis article{min-height:112px;padding:14px}.mha-calm-kpis strong{font-size:24px}.mha-calm-strip{grid-template-columns:1fr}.mha-calm-title h1{font-size:24px!important}}
/* v2.2.21 — Review moderation center */
.review-admin-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.review-admin-hero h2{margin:4px 0 8px}.review-admin-hero p{max-width:760px;margin:0}.review-admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.review-admin-kpis article{border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px;background:rgba(255,255,255,.035)}.review-admin-kpis small,.review-admin-kpis span{display:block;opacity:.67}.review-admin-kpis strong{display:block;font-size:28px;margin:5px 0}.review-center-list{gap:14px}.review-center-list .mha-admin-review{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:18px;align-items:start;border-radius:18px}.review-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}.review-stars{color:#f3c969;letter-spacing:1px;font-weight:700}.review-stars i{font-style:normal;color:rgba(255,255,255,.16)}.review-public-reply{margin-top:12px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.045)}.review-public-reply p{margin:5px 0 0}.review-moderation-form{display:grid;gap:12px}.review-moderation-form label{display:grid;gap:6px}.review-actions{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:900px){.review-admin-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.review-center-list .mha-admin-review{grid-template-columns:1fr}.review-admin-hero{display:grid}}@media(max-width:520px){.review-admin-kpis{grid-template-columns:1fr 1fr}.review-card-top{align-items:flex-start;flex-direction:column}}

/* v2.2.23 Settings Center */
.mha-settings-center{display:grid;gap:18px}.settings-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;border:1px solid rgba(122,145,136,.22);border-radius:22px;background:linear-gradient(135deg,rgba(24,76,61,.08),rgba(216,195,151,.08))}.settings-hero small{font-weight:850;letter-spacing:.14em;color:#789087}.settings-hero h2{margin:6px 0 6px;font-size:30px}.settings-hero p{margin:0;color:#697a73}.settings-role{padding:8px 12px;border-radius:999px;background:#183f34;color:#fff;font-size:11px;font-weight:850;letter-spacing:.12em}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-card{display:flex;gap:14px;align-items:flex-start;padding:20px;border:1px solid #e1e8e4;border-radius:18px;background:#fff}.settings-card.settings-wide{grid-column:1/-1}.settings-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#f1f5f2;font-size:20px;flex:0 0 auto}.settings-card>div:last-child{min-width:0;flex:1}.settings-card h3{margin:0 0 5px}.settings-card p{margin:0 0 13px;color:#728078;font-size:13px;line-height:1.5}.settings-card select{width:100%;min-height:44px;border:1px solid #d9e2dd;border-radius:11px;padding:0 12px;background:#fff}.settings-toggles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.settings-toggles label{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid #e5ebe7;border-radius:13px;background:#fafcfb;cursor:pointer}.settings-toggles input{margin-top:3px;accent-color:#1f6c53}.settings-toggles span{display:grid;gap:2px}.settings-toggles b{font-size:14px}.settings-toggles small{font-size:11px;color:#7c8882}.settings-save{grid-column:1/-1;display:flex;gap:10px;justify-content:flex-end}.settings-save .btn{min-width:150px}@media(max-width:760px){.settings-grid{grid-template-columns:1fr}.settings-card.settings-wide{grid-column:auto}.settings-toggles{grid-template-columns:1fr}.settings-hero{align-items:flex-start}.settings-role{display:none}.settings-save{flex-direction:column}.settings-save .btn{width:100%}}

/* v2.2.52 — Operational handover */
.mha-handover-panel{margin:16px 0}.mha-handover-badges{display:flex;gap:8px;flex-wrap:wrap}.mha-handover-layout{display:grid;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr);gap:16px;margin-top:14px}.mha-handover-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border:1px solid rgba(148,163,184,.13);border-radius:16px;background:rgba(255,255,255,.025)}.mha-handover-form label{display:grid;gap:6px;color:#b8c7d2;font-size:12px}.mha-handover-form .full{grid-column:1/-1}.mha-handover-form textarea,.mha-handover-form select{width:100%;border:1px solid rgba(148,163,184,.18);border-radius:11px;background:#0c1a27;color:#eef7fa;padding:10px 11px}.mha-handover-list{display:grid;gap:9px;align-content:start}.mha-handover-list article{display:grid;gap:8px;padding:13px 14px;border:1px solid rgba(148,163,184,.12);border-left:3px solid rgba(94,234,212,.55);border-radius:13px;background:rgba(255,255,255,.025)}.mha-handover-list article.priority-high{border-left-color:#f0c66a}.mha-handover-list article.priority-urgent{border-left-color:#fb7185}.mha-handover-list article.is-resolved{opacity:.58}.mha-handover-note-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.mha-handover-list p{margin:0;color:#dce8ee;line-height:1.5;white-space:normal}.mha-handover-list small{color:#8396a6}.mha-handover-list form{margin-top:2px}.mha-handover-resolved{color:#77c8b5!important;font-weight:700}@media(max-width:980px){.mha-handover-layout{grid-template-columns:1fr}}@media(max-width:620px){.mha-handover-form{grid-template-columns:1fr}.mha-handover-form .full{grid-column:auto}.mha-handover-note-top{align-items:flex-start;flex-direction:column}}

/* v2.3.7 — Admin desktop header: messages + notifications on the right, matching approved dashboard reference. */
@media (min-width:761px){
  body:has(.portal.mha-pro) .site-header.mha-auth-header{display:flex!important;align-items:center!important}
  body:has(.portal.mha-pro) .site-header.mha-auth-header>.brand{order:1!important}
  body:has(.portal.mha-pro) .site-header.mha-auth-header>nav{order:2!important;flex:1!important}
  body:has(.portal.mha-pro) .site-header.mha-auth-header>.pwa-language{order:3!important;margin-left:auto!important}
  body:has(.portal.mha-pro) .site-header.mha-auth-header>.mha-header-popover-wrap{order:5!important}
  body:has(.portal.mha-pro) .site-header.mha-auth-header>.mha-theme-toggle{order:4!important;margin-left:8px!important}
  body:has(.portal.mha-pro) .site-header.mha-auth-header>.menu-toggle{order:6!important}
  body:has(.portal.mha-pro) .site-header.mha-auth-header nav .language-picker{display:none!important}
}

/* v2.3.59 — Work calendar readability */
.portal.mha-pro .work-calendar-panel{overflow:hidden}
.portal.mha-pro .work-calendar-panel .table-wrap{overflow-x:auto;padding-bottom:4px}
.portal.mha-pro .work-calendar-panel table{min-width:1040px;table-layout:auto}
.portal.mha-pro .work-calendar-panel th:nth-child(1){min-width:250px}
.portal.mha-pro .work-calendar-panel th:nth-child(2){min-width:125px}
.portal.mha-pro .work-calendar-panel th:nth-child(3){min-width:125px}
.portal.mha-pro .work-calendar-panel th:nth-child(4){min-width:115px}
.portal.mha-pro .work-calendar-panel th:nth-child(5){min-width:120px}
.portal.mha-pro .work-calendar-panel th:nth-child(6){min-width:285px}
.portal.mha-pro .work-calendar-panel td{vertical-align:top;line-height:1.45}
.portal.mha-pro .work-calendar-panel td small{display:block;margin-top:5px}
.portal.mha-pro .work-calendar-panel .job-meta{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.portal.mha-pro .work-calendar-panel .job-chip{display:inline-flex;align-items:center;width:auto;max-width:100%;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);font-size:11px;line-height:1.2;white-space:normal}
.portal.mha-pro .work-calendar-panel .work-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start;min-width:270px}
.portal.mha-pro .work-calendar-panel .work-actions>a,.portal.mha-pro .work-calendar-panel .work-actions>form{margin:0;min-width:0}
.portal.mha-pro .work-calendar-panel .work-actions .mini-btn{width:100%;min-height:38px;display:flex;align-items:center;justify-content:center;text-align:center}
.portal.mha-pro .work-calendar-panel .job-status-form{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:8px}
.portal.mha-pro .work-calendar-panel .job-status-form select{width:100%;min-width:0;min-height:38px}
.portal.mha-pro .work-calendar-panel .job-status-form .mini-btn{width:72px}
@media(max-width:900px){
 .portal.mha-pro .work-calendar-panel .table-wrap{overflow:visible}
 .portal.mha-pro .work-calendar-panel table,.portal.mha-pro .work-calendar-panel tbody{display:block;min-width:0;width:100%}
 .portal.mha-pro .work-calendar-panel tr:first-child{display:none}
 .portal.mha-pro .work-calendar-panel tr{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid rgba(255,255,255,.12);border-radius:14px;margin:0 0 14px;overflow:hidden;background:rgba(255,255,255,.025)}
 .portal.mha-pro .work-calendar-panel td{display:block;min-width:0!important;padding:13px!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
 .portal.mha-pro .work-calendar-panel td:first-child,.portal.mha-pro .work-calendar-panel td:last-child{grid-column:1/-1}
 .portal.mha-pro .work-calendar-panel td:nth-child(2)::before{content:'DATA';display:block;font-size:10px;letter-spacing:.12em;opacity:.6;margin-bottom:6px}
 .portal.mha-pro .work-calendar-panel td:nth-child(3)::before{content:'PARTNERI';display:block;font-size:10px;letter-spacing:.12em;opacity:.6;margin-bottom:6px}
 .portal.mha-pro .work-calendar-panel td:nth-child(4)::before{content:'FINANCA';display:block;font-size:10px;letter-spacing:.12em;opacity:.6;margin-bottom:6px}
 .portal.mha-pro .work-calendar-panel td:nth-child(5)::before{content:'STATUSI';display:block;font-size:10px;letter-spacing:.12em;opacity:.6;margin-bottom:6px}
 .portal.mha-pro .work-calendar-panel .work-actions{min-width:0;grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
 .portal.mha-pro .work-calendar-panel tr{grid-template-columns:1fr}
 .portal.mha-pro .work-calendar-panel td{grid-column:1/-1}
 .portal.mha-pro .work-calendar-panel .work-actions{grid-template-columns:1fr}
 .portal.mha-pro .work-calendar-panel .job-status-form{grid-column:auto;grid-template-columns:1fr}
 .portal.mha-pro .work-calendar-panel .job-status-form .mini-btn{width:100%}
}
