
:root{
  --navy:#082663;--navy2:#0a397f;--blue:#0877ec;--sky:#1aa4ff;
  --ink:#0b1739;--muted:#6e7b96;--line:#dbe4f0;--bg:#eef4fb;
  --green:#23a45d;--red:#e8464d;--gold:#f4bb25;--violet:#7a49c7;
  --shadow:0 18px 50px rgba(14,40,92,.12);
}
*{box-sizing:border-box}
html,body{margin:0}
body.mpg-fullscreen{
  min-height:100vh;background:
  radial-gradient(circle at 0 100%,rgba(21,138,245,.12),transparent 28%),
  linear-gradient(180deg,#f5f9ff 0,#edf4fb 100%);
  color:var(--ink);font-family:"Cairo",Tahoma,Arial,sans-serif!important
}
body.mpg-fullscreen #wpadminbar{display:none!important}
body.mpg-fullscreen,body.mpg-fullscreen input,body.mpg-fullscreen textarea,body.mpg-fullscreen select,body.mpg-fullscreen button{font-family:"Cairo",Tahoma,Arial,sans-serif!important}

.mpg-shell{min-height:100vh;padding:24px 32px 86px;position:relative}
.mpg-topbar{
  min-height:136px;border-radius:30px;padding:24px 30px;display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:26px;
  color:#fff;background:
  radial-gradient(circle at 82% -80%,rgba(33,145,255,.42),transparent 40%),
  linear-gradient(105deg,#061d52 0%,#0b2e71 55%,#0b397e 100%);
  box-shadow:0 20px 45px rgba(4,32,86,.18);overflow:hidden;position:relative
}
.mpg-topbar:after{
  content:"";position:absolute;left:-8%;right:-8%;bottom:-70px;height:90px;
  border-radius:50% 50% 0 0;background:linear-gradient(90deg,#0874e7,#16a0ff);opacity:.45
}
.mpg-brand{display:flex;align-items:center;gap:20px;position:relative;z-index:2}
.mpg-logo-wrap{width:108px;height:88px;display:grid;place-items:center;flex:0 0 auto}
.mpg-logo-wrap img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 5px 12px rgba(0,0,0,.18))}
.mpg-brand h1{font-size:34px;line-height:1.2;margin:0;color:#fff!important;font-weight:900}
.mpg-brand p{margin:6px 0 0;color:#e8f1ff;font-size:16px;font-weight:600}
.mpg-topmeta{display:grid;gap:7px;text-align:center;position:relative;z-index:2}
.mpg-topmeta span{display:block;font-size:13px;color:#e6efff;font-weight:700}
.mpg-account{display:flex;align-items:center;gap:10px;padding:10px 14px;border-right:1px solid rgba(255,255,255,.22);position:relative;z-index:2}
.mpg-avatar{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--navy);font-weight:900;font-size:18px}
.mpg-account small,.mpg-account b{display:block;color:#fff}.mpg-account small{opacity:.75;font-size:11px}.mpg-account b{font-size:14px}

.mpg-logout{position:absolute;top:41px;left:52px;z-index:25}
.mpg-logout button{background:#fff;color:var(--navy);border:0;border-radius:13px;padding:11px 18px;font-weight:900;cursor:pointer;box-shadow:0 7px 22px rgba(0,0,0,.15)}
.mpg-status-row{display:flex;align-items:center;justify-content:space-between;padding:20px 12px 2px}
.mpg-session{display:inline-flex;align-items:center;gap:6px;color:var(--green);font-weight:800}
.mpg-collector{text-align:right}.mpg-collector small{display:block;color:var(--muted);font-size:11px}.mpg-collector b{font-size:17px}

.mpg-workcard{
  background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:28px;
  padding:32px;margin-top:18px;box-shadow:var(--shadow)
}
.mpg-step{display:table;margin:0 auto 8px;background:#eaf2ff;color:var(--navy);border-radius:999px;padding:8px 17px;font-weight:900}
.mpg-section-title{display:flex;justify-content:center;align-items:center;gap:12px;text-align:center;margin:0 0 28px}
.mpg-section-title h2{font-size:34px;margin:0;font-weight:900;color:#081334}
.mpg-section-title p{margin:4px 0;color:var(--muted)}
.circle-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#16a3ff,#0870dc);color:#fff;font-size:23px;font-weight:900;box-shadow:0 10px 22px rgba(8,112,220,.22)}

.mpg-form{display:grid;gap:18px}.mpg-form.two{grid-template-columns:repeat(2,minmax(0,1fr))}.mpg-form.one{grid-template-columns:1fr}
.mpg-form label{color:#101f45;font-weight:800}.mpg-form input,.mpg-form textarea,.mpg-form select{
  width:100%;margin-top:8px;padding:14px 15px;border:1px solid #cfdae9;border-radius:12px;background:#fff;color:#0d1735;outline:0
}
.mpg-form input:focus,.mpg-form textarea:focus,.mpg-form select:focus{border-color:#5ea8fa;box-shadow:0 0 0 4px rgba(77,153,247,.12)}
.mpg-form textarea{min-height:104px;resize:vertical}.mpg-form label small{display:block;color:var(--muted);font-weight:500;margin-top:5px}.wide{grid-column:1/-1}
.primary,.approve{border:0;color:#fff;border-radius:14px;font-weight:900;cursor:pointer}
.primary{background:linear-gradient(90deg,#0877ec 0%,#082c69 100%);box-shadow:0 10px 22px rgba(8,75,168,.18)}
.approve{padding:11px 15px;background:linear-gradient(90deg,#2db469,#15834a)}.mpg-big{min-height:58px;font-size:16px}

.mpg-capture-card{border:1px solid #cbd9ea;background:linear-gradient(145deg,#f8fbff,#edf5ff);border-radius:18px;padding:17px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px}
.mpg-capture-card>span{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#fff;box-shadow:0 6px 18px rgba(8,43,98,.08);font-size:24px}
.mpg-capture-card b,.mpg-capture-card small{display:block}.mpg-capture-card small{color:var(--muted);margin-top:3px}
.mpg-capture-card input{grid-column:1/-1;background:#fff}
.mpg-security-tip{padding:14px;border-radius:15px;background:#edf9f2;border:1px solid #c9ebd7;color:#17643c}

.mpg-mini-kpis,.mpg-kpis,.mpg-summary{display:grid;gap:14px}
.mpg-mini-kpis{grid-template-columns:repeat(4,1fr);margin-top:18px}
.mpg-kpis{grid-template-columns:repeat(6,1fr);margin:18px 0}
.mpg-summary{grid-template-columns:repeat(5,1fr);margin-top:22px}
.mpg-mini-kpis>div,.mpg-kpis>div,.mpg-summary>div{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;text-align:center;box-shadow:0 10px 28px rgba(10,45,103,.07)}
.mpg-kpis>div:nth-child(1){background:#f4f8ff}.mpg-kpis>div:nth-child(2){background:#eefaf4}.mpg-kpis>div:nth-child(3){background:#f1fbf6}.mpg-kpis>div:nth-child(4){background:#f5efff}.mpg-kpis>div:nth-child(5){background:#eef6ff}.mpg-kpis>div:nth-child(6){background:#fff0f0}
.mpg-mini-kpis small,.mpg-kpis small,.mpg-summary small{display:block;color:var(--muted);margin-bottom:7px}
.mpg-mini-kpis b,.mpg-kpis b,.mpg-summary b{font-size:20px}.mpg-summary .danger{color:#bd3037;background:#fff2f2}.mpg-summary .ok{color:#1c7b45;background:#eefaf3}

.mpg-dashboard-title,.mpg-title{display:flex;justify-content:space-between;align-items:center;margin-top:20px}
.mpg-dashboard-title h2,.mpg-title h2{font-size:28px;margin:0}.mpg-kicker{display:inline-flex;background:#edf4ff;color:var(--navy);border-radius:999px;padding:7px 12px;font-weight:900}
.mpg-filter-pills{display:flex;gap:8px}.mpg-filter-pills span{padding:8px 12px;border:1px solid var(--line);background:#fff;border-radius:999px;color:var(--muted)}
.table-scroll{overflow:auto;margin-top:14px}table{width:100%;border-collapse:collapse;min-width:1050px}th,td{text-align:right;padding:14px 12px;border-bottom:1px solid #edf1f6;white-space:nowrap}th{background:#f6f8fc;color:#5e6980;font-size:13px}
.status,.security-dot,.security{display:inline-flex;border-radius:999px;padding:5px 9px;font-weight:800;background:#eef2f7}.status.submitted{background:#fff4d9;color:#916200}.status.approved{background:#e7f8ee;color:#207b43}
.security-dot.green{background:#e5f7ed;color:#19743e}.security-dot.amber{background:#fff4d9;color:#946300}.security-dot.red{background:#ffebeb;color:#ad2e34}
.mpg-evidence-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}.mpg-evidence-card{border:1px solid var(--line);border-radius:16px;padding:13px;background:#f9fbff}.mpg-evidence-card b,.mpg-evidence-card small{display:block}.mpg-evidence-card small{color:var(--muted)}.mpg-evidence-thumb{height:52px;border-radius:12px;background:#edf4ff;display:grid;place-items:center;font-size:24px;margin-bottom:9px}
.mpg-review summary{color:#0763ce;font-weight:900;cursor:pointer}.mpg-review-box{position:absolute;left:40px;right:40px;margin-top:10px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 20px 60px rgba(0,0,0,.16);z-index:30}
.mpg-review-box form{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.mpg-empty{padding:15px;color:var(--muted)}

.mpg-chat{position:fixed;left:24px;bottom:24px;z-index:999}.mpg-chat-toggle{border:0;border-radius:999px;background:linear-gradient(135deg,#0d8cf5,#08275f);color:#fff;padding:14px 19px;font-weight:900;box-shadow:0 15px 35px rgba(7,74,159,.3);cursor:pointer}
.mpg-chat-panel{display:none;position:absolute;left:0;bottom:62px;width:min(390px,calc(100vw - 30px));height:500px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 25px 70px rgba(0,0,0,.2);overflow:hidden}.mpg-chat.open .mpg-chat-panel{display:flex;flex-direction:column}
.mpg-chat-head{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;background:linear-gradient(90deg,#072158,#0b397e);color:#fff}.mpg-chat-close{border:0;background:transparent;color:#fff;font-size:25px}.mpg-chat-panel>label{padding:12px 14px;font-weight:800}.mpg-chat-panel select{width:100%;margin-top:6px;border:1px solid var(--line);border-radius:10px;padding:9px}
.mpg-chat-messages{flex:1;overflow:auto;background:#f5f8fc;padding:12px}.mpg-msg{max-width:80%;padding:9px 11px;border-radius:14px;margin-bottom:8px;background:#fff;border:1px solid var(--line)}.mpg-msg.mine{margin-right:auto;background:#dcecff;border-color:#c3ddff}.mpg-msg small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.mpg-chat-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px;border-top:1px solid var(--line)}.mpg-chat-form textarea{min-height:48px;border:1px solid var(--line);border-radius:12px;padding:9px;resize:none}.mpg-chat-form button{border:0;background:var(--navy);color:#fff;border-radius:12px;padding:0 15px;font-weight:800}

/* LOGIN — مطابق للمرجع: اللوحة الزرقاء يسار، البطاقة البيضاء يمين */
.mpg-login-page{
  min-height:100vh;padding:22px;display:grid;place-items:center;
  background:
  radial-gradient(circle at 92% 0,#dceaff 0,transparent 30%),
  radial-gradient(circle at 5% 95%,#ddecff 0,transparent 24%),
  #f3f7fc
}
.mpg-login-shell{width:min(1180px,100%);min-height:720px;display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border-radius:36px;overflow:hidden;box-shadow:0 28px 90px rgba(6,35,89,.18)}
.mpg-login-visual{
  position:relative;overflow:hidden;padding:55px 50px;text-align:center;color:#fff;
  background:
  radial-gradient(circle at 45% 15%,rgba(31,156,255,.32),transparent 26%),
  linear-gradient(160deg,#061d53 0,#0753b6 70%,#087bea 100%)
}
.mpg-login-visual:before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:42%;
  background:
  radial-gradient(ellipse at 20% 100%,rgba(1,19,57,.35),transparent 31%),
  radial-gradient(ellipse at 75% 100%,rgba(1,19,57,.28),transparent 35%);
}
.mpg-login-logo{width:260px;height:260px;margin:35px auto 14px;display:grid;place-items:center;position:relative;z-index:3}
.mpg-login-logo img{max-width:100%;max-height:100%;object-fit:contain;filter:drop-shadow(0 8px 20px rgba(0,0,0,.20))}
.mpg-login-visual h1{margin:12px 0 4px;font-size:37px;font-weight:900;position:relative;z-index:3}.mpg-login-visual p{font-size:20px;color:#e4efff;position:relative;z-index:3}
.wave{position:absolute;left:-12%;width:124%;height:180px;border-radius:50%;z-index:2}.w1{bottom:-65px;background:#fff}.w2{bottom:-105px;background:#0872e2;opacity:.95}
.mpg-login-panel{padding:70px 62px;display:flex;justify-content:center;flex-direction:column}.mpg-login-panel h2{font-size:38px;margin:14px 0 4px}.mpg-muted{color:var(--muted);line-height:1.9}
.mpg-input-icon{display:flex;align-items:center;gap:8px;border:1px solid #cfdae9;border-radius:15px;background:#f8fbff;padding-right:13px;margin-top:8px}.mpg-input-icon input{border:0!important;margin:0!important;background:transparent!important;box-shadow:none!important}
.mpg-isolation{margin-top:20px;padding:13px;border-radius:14px;background:#f5f8fc;color:var(--muted);font-size:13px}.mpg-error{margin-bottom:14px;padding:12px;border-radius:12px;background:#fff0f0;color:#a1252a;border:1px solid #f1caca}
.mpg-denied{min-height:100vh;display:grid;place-content:center;text-align:center}

@media(max-width:1000px){
  .mpg-topbar{grid-template-columns:1fr auto}.mpg-account{grid-column:1/-1;border-right:0;padding-right:0}.mpg-kpis{grid-template-columns:repeat(3,1fr)}
  .mpg-evidence-grid{grid-template-columns:repeat(2,1fr)}.mpg-login-shell{grid-template-columns:1fr;max-width:660px}.mpg-login-visual{min-height:340px}.mpg-login-panel{padding:42px}.mpg-login-logo{width:180px;height:180px;margin-top:0}
}
@media(max-width:700px){
  .mpg-shell{padding:8px 8px 76px}.mpg-topbar{min-height:110px;border-radius:21px;padding:15px;grid-template-columns:1fr}.mpg-brand h1{font-size:23px}.mpg-brand p{font-size:11px}.mpg-logo-wrap{width:78px;height:64px}
  .mpg-topmeta,.mpg-account{display:none}.mpg-logout{top:18px;left:18px}.mpg-logout button{font-size:11px;padding:7px 10px}.mpg-status-row{align-items:flex-end}
  .mpg-workcard{padding:18px;border-radius:21px}.mpg-section-title{justify-content:flex-start;text-align:right}.mpg-section-title h2{font-size:25px}.mpg-form.two{grid-template-columns:1fr}.wide{grid-column:auto}
  .mpg-mini-kpis,.mpg-kpis,.mpg-summary{grid-template-columns:repeat(2,1fr)}.mpg-evidence-grid{grid-template-columns:1fr}.mpg-filter-pills{display:none}.mpg-chat{left:12px;bottom:12px}
  .mpg-login-page{padding:8px}.mpg-login-shell{border-radius:22px;min-height:auto}.mpg-login-visual{min-height:270px;padding:25px 18px}.mpg-login-panel{padding:28px 20px}.mpg-login-panel h2{font-size:30px}.mpg-login-logo{width:150px;height:150px}.mpg-login-visual h1{font-size:27px}.mpg-login-visual p{font-size:15px}.mpg-review-box{left:10px;right:10px}
}

/* v0.4.0 — production polish */
.mpg-app-nav{display:flex;gap:10px;align-items:center;margin:16px 0 6px;padding:0 6px;flex-wrap:wrap}
.mpg-app-nav a,.mpg-app-nav button{border:1px solid #d9e4f1;background:#fff;color:#12316d;border-radius:14px;padding:10px 14px;font-weight:900;text-decoration:none;cursor:pointer;display:inline-flex;gap:8px;align-items:center;box-shadow:0 7px 20px rgba(17,52,109,.06)}
.mpg-app-nav a.active{background:linear-gradient(90deg,#0a76e9,#092c6a);color:#fff;border-color:transparent}
.mpg-period-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}
.mpg-period-strip>div{background:#fff;border:1px solid var(--line);border-radius:20px;padding:17px 18px;box-shadow:0 10px 28px rgba(10,45,103,.07)}
.mpg-period-strip small,.mpg-period-strip span{display:block;color:var(--muted)}.mpg-period-strip b{display:block;font-size:21px;margin:5px 0}.mpg-period-strip span{font-size:12px}
.mpg-user>div small,.mpg-user>div em{display:block}.mpg-user>div small{color:var(--muted);font-size:11px}.mpg-user>div em{font-style:normal;color:#4770a4;font-size:12px;margin-top:2px}

.mpg-report-hero{margin-top:18px;background:linear-gradient(110deg,#08245e,#0b4fa8);color:#fff;border-radius:26px;padding:24px 28px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;box-shadow:var(--shadow)}
.mpg-report-hero h2{font-size:30px;margin:8px 0}.mpg-report-hero p{margin:0;color:#dceaff}.mpg-report-filter{display:grid;grid-template-columns:180px 220px auto;gap:10px}.mpg-report-filter select{border:0;border-radius:12px;padding:12px;background:#fff;color:#0e214d}
.mpg-report-filter .primary{padding:12px 18px}
.mpg-report-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:13px;margin:18px 0}
.mpg-report-kpis>div{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;text-align:center;box-shadow:0 10px 28px rgba(10,45,103,.07)}
.mpg-report-kpis small{display:block;color:var(--muted);margin-bottom:7px}.mpg-report-kpis b{font-size:19px}.mpg-report-kpis .danger{background:#fff1f1;color:#b93037}.mpg-report-kpis .ok{background:#eefaf3;color:#1c7b45}
.mpg-report-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.mpg-report-grid+.mpg-report-grid{grid-template-columns:1fr 1fr}
.mpg-ranking{display:grid;gap:8px;margin-top:12px}.mpg-ranking>div{display:grid;grid-template-columns:38px 1fr auto;gap:10px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:#f8fbff}.mpg-ranking strong{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#0a72df;color:#fff}.mpg-ranking span small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.mpg-ranking em{font-style:normal;font-weight:900;color:#0c3475}

.mpg-topbar{overflow:visible}.mpg-logo-wrap{overflow:hidden}.mpg-logo-wrap img{max-height:74px}
.mpg-brand h1{letter-spacing:0}.mpg-logout{top:39px}
.mpg-chat-panel{direction:rtl}
.mpg-workcard,.mpg-card{backdrop-filter:blur(10px)}
body.mpg-fullscreen table{font-size:13px}
body.mpg-fullscreen th{font-weight:900}
body.mpg-fullscreen .mpg-logo-wrap img, .mpg-login-logo img{object-fit:contain}

@media(max-width:900px){
 .mpg-period-strip{grid-template-columns:repeat(2,1fr)}
 .mpg-report-kpis{grid-template-columns:repeat(3,1fr)}
 .mpg-report-grid,.mpg-report-grid+.mpg-report-grid{grid-template-columns:1fr}
 .mpg-report-hero{grid-template-columns:1fr}.mpg-report-filter{grid-template-columns:1fr 1fr auto}
}
@media(max-width:700px){
 .mpg-app-nav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.mpg-app-nav a,.mpg-app-nav button{white-space:nowrap}
 .mpg-period-strip,.mpg-report-kpis{grid-template-columns:repeat(2,1fr)}
 .mpg-report-filter{grid-template-columns:1fr}.mpg-report-hero{padding:18px}.mpg-report-hero h2{font-size:24px}
}

/* v0.4.2 — visual cleanup + clean test start */
html body.mpg-fullscreen,
html body.mpg-fullscreen *,
html body.mpg-fullscreen *::before,
html body.mpg-fullscreen *::after{
  font-family:"Cairo",Tahoma,Arial,sans-serif !important;
}
body.mpg-fullscreen{overflow-x:hidden!important}
.mpg-shell{max-width:1920px;margin:0 auto;padding-top:20px!important}
.mpg-topbar{
  overflow:hidden!important;
  min-height:128px!important;
  grid-template-columns:minmax(0,1fr) 245px 250px!important;
  padding-left:235px!important;
}
.mpg-topbar:after{display:none!important}
.mpg-logo-wrap{width:92px!important;height:78px!important;overflow:visible!important}
.mpg-logo-wrap img{max-width:92px!important;max-height:76px!important;width:auto!important;height:auto!important}
.mpg-brand h1{color:#fff!important;font-family:"Cairo",Tahoma,Arial,sans-serif!important}
.mpg-brand p{color:#e6efff!important}
.mpg-logout{top:39px!important;left:52px!important;z-index:60!important}
.mpg-logout button{
  min-width:128px!important;min-height:46px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  font-family:"Cairo",Tahoma,Arial,sans-serif!important;
}
.mpg-app-nav{
  background:transparent!important;
  border:0!important;
  min-height:auto!important;
  margin:14px 0 8px!important;
  padding:0 4px!important;
  justify-content:flex-start!important;
}
.mpg-app-nav a,.mpg-app-nav button{
  opacity:1!important;visibility:visible!important;
  min-height:44px!important;color:#11336e!important;
  background:#fff!important;
}
.mpg-app-nav a.active{color:#fff!important;background:linear-gradient(90deg,#0879e9,#082b69)!important}
.mpg-status-row{padding:12px 8px 4px!important;min-height:54px}
.mpg-workcard{margin-top:14px!important}
.mpg-chat{left:22px!important;bottom:22px!important;z-index:9999!important}
.mpg-chat-toggle{
  min-width:164px!important;min-height:48px!important;
  display:flex!important;gap:7px!important;align-items:center!important;justify-content:center!important;
  font-family:"Cairo",Tahoma,Arial,sans-serif!important;
}
.mpg-chat-toggle span{display:inline!important}
.mpg-chat-panel{z-index:10000!important}
.mpg-login-visual h1{color:#fff!important;text-shadow:none!important}
.mpg-login-visual p{color:#e8f2ff!important}
.mpg-login-logo{margin-bottom:6px!important}
.mpg-login-logo img{max-height:230px!important}
.mpg-input-icon input{font-family:"Cairo",Tahoma,Arial,sans-serif!important}
.mpg-success-notice{
  margin:16px 0;padding:15px 18px;border-radius:16px;
  background:#eaf9f0;border:1px solid #bfe7cf;color:#176b3f;font-weight:800;
}
.mpg-reset-card{border:1px solid #ffd3d3!important;background:linear-gradient(180deg,#fff,#fffafa)!important}
.mpg-danger-btn{
  border:0;border-radius:14px;background:#a72831;color:#fff;
  padding:13px 18px;font-weight:900;cursor:pointer;
  font-family:"Cairo",Tahoma,Arial,sans-serif!important;
}
.mpg-collector em{display:block;color:#5c77a0;font-style:normal;font-size:12px;margin-top:2px}
body.mpg-fullscreen table th,
body.mpg-fullscreen table td{font-family:"Cairo",Tahoma,Arial,sans-serif!important}
body.mpg-fullscreen code{font-family:monospace!important}

@media(max-width:1050px){
  .mpg-topbar{grid-template-columns:1fr 190px!important;padding-left:180px!important}
  .mpg-account{display:none!important}
}
@media(max-width:700px){
  .mpg-topbar{grid-template-columns:1fr!important;padding:14px 90px 14px 14px!important;min-height:100px!important}
  .mpg-topmeta,.mpg-account{display:none!important}
  .mpg-logout{top:17px!important;left:16px!important}
  .mpg-logout button{min-width:auto!important;min-height:36px!important;padding:7px 10px!important}
  .mpg-logo-wrap{width:64px!important;height:56px!important}
  .mpg-logo-wrap img{max-width:64px!important;max-height:54px!important}
  .mpg-brand h1{font-size:21px!important}
  .mpg-chat{left:10px!important;bottom:10px!important}
  .mpg-chat-toggle{min-width:54px!important;width:54px!important;height:54px!important;padding:0!important;border-radius:50%!important}
  .mpg-chat-toggle span{display:none!important}
}

/* v0.5.0 — Mobile-first operations, time tracking, chat notifications */
.mpg-unread-badge{
  position:absolute;min-width:19px;height:19px;padding:0 5px;border-radius:999px;
  display:inline-grid;place-items:center;background:#e52f3a;color:#fff;font-size:10px;font-style:normal;
  border:2px solid #fff;transform:translate(-5px,-14px)
}
.mpg-nav-chat,.mpg-chat-toggle{position:relative}
.mpg-time-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.mpg-shift-control{
  margin:14px 0;padding:15px 17px;border:1px solid #cce7d7;background:#effaf4;border-radius:18px;
  display:flex;align-items:center;justify-content:space-between;gap:14px
}
.mpg-shift-control.paused{background:#fff5e7;border-color:#f1d3a0}
.mpg-shift-control>div{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center}
.mpg-shift-control small{grid-column:2;color:#6e7b96}
.mpg-live-dot{width:10px;height:10px;border-radius:50%;background:#2caf66;box-shadow:0 0 0 6px rgba(44,175,102,.12)}
.mpg-shift-control.paused .mpg-live-dot{background:#e59c2d;box-shadow:0 0 0 6px rgba(229,156,45,.12)}
.mpg-shift-control form{display:flex;gap:8px;align-items:center;margin:0}
.mpg-shift-control select{border:1px solid #d5dfeb;border-radius:11px;padding:9px 10px;background:#fff}
.mpg-pause-btn,.mpg-resume-btn{border:0;border-radius:11px;padding:10px 14px;color:#fff;font-weight:900;cursor:pointer}
.mpg-pause-btn{background:#b87a1d}.mpg-resume-btn{background:#218854}
.mpg-ops-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 16px}
.mpg-ops-kpis>div{padding:15px;border:1px solid #dbe5f0;border-radius:17px;background:#fff;box-shadow:0 8px 22px rgba(10,45,103,.06)}
.mpg-ops-kpis span{font-size:18px}.mpg-ops-kpis small{display:block;color:#6e7b96;margin:4px 0}.mpg-ops-kpis b{font-size:17px}
.mpg-risk-check{padding:10px;border-radius:10px;background:#fff0f0;color:#962c34;border:1px solid #efc3c6}
.mpg-security-tip strong{color:#123b79}
.mpg-capture-card input[type=file]{font-size:13px}
.mpg-report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}

/* Tablet */
@media (min-width:701px) and (max-width:1100px){
  .mpg-shell{padding:14px 16px 70px!important}
  .mpg-topbar{grid-template-columns:1fr 185px!important;padding:18px 190px 18px 20px!important}
  .mpg-brand h1{font-size:27px!important}
  .mpg-form.two{grid-template-columns:1fr 1fr!important}
  .mpg-kpis{grid-template-columns:repeat(3,1fr)!important}
  .mpg-mini-kpis{grid-template-columns:repeat(2,1fr)!important}
  .mpg-time-kpis{grid-template-columns:repeat(4,1fr)!important}
  .mpg-report-kpis{grid-template-columns:repeat(3,1fr)!important}
  .mpg-shift-control{align-items:flex-start}
  .mpg-shift-control form{flex-direction:column;align-items:stretch}
}

/* Phone — primary operational layout */
@media (max-width:700px){
  body.mpg-fullscreen{background:#f2f6fb!important;padding-bottom:72px}
  .mpg-shell{padding:6px 7px 90px!important}
  .mpg-topbar{
    border-radius:18px!important;min-height:84px!important;padding:12px 88px 12px 12px!important;
    margin:0!important;box-shadow:0 9px 25px rgba(7,39,93,.13)!important
  }
  .mpg-brand{gap:9px!important}.mpg-logo-wrap{width:52px!important;height:48px!important}.mpg-logo-wrap img{max-width:52px!important;max-height:46px!important}
  .mpg-brand h1{font-size:18px!important}.mpg-brand p{font-size:9px!important;margin-top:2px!important}
  .mpg-logout{top:15px!important;left:13px!important}.mpg-logout button{font-size:10px!important;min-height:32px!important;padding:5px 8px!important}
  .mpg-status-row{padding:9px 3px!important}.mpg-session{font-size:11px}.mpg-collector small{font-size:9px!important}.mpg-collector b{font-size:14px!important}
  .mpg-workcard{padding:14px!important;border-radius:18px!important;margin-top:9px!important}
  .mpg-step{font-size:11px!important;padding:6px 11px!important;margin-bottom:8px!important}
  .mpg-section-title{margin-bottom:15px!important;gap:8px!important}.mpg-section-title h2{font-size:22px!important}.mpg-section-title p{font-size:11px!important}
  .circle-icon{width:37px!important;height:37px!important;font-size:18px!important}
  .mpg-form.two,.mpg-form.one{grid-template-columns:1fr!important;gap:12px!important}.wide{grid-column:auto!important}
  .mpg-form input,.mpg-form textarea,.mpg-form select{padding:12px!important;font-size:16px!important} /* prevents iOS zoom */
  .mpg-capture-card{grid-template-columns:40px 1fr!important;padding:12px!important;border-radius:15px!important}
  .mpg-capture-card>span{width:38px!important;height:38px!important;font-size:19px!important}
  .mpg-capture-card b{font-size:13px!important}.mpg-capture-card small{font-size:10px!important}
  .mpg-security-tip{font-size:11px!important;padding:11px!important}
  .mpg-big{min-height:52px!important;position:sticky;bottom:78px;z-index:20}
  .mpg-mini-kpis,.mpg-time-kpis{grid-template-columns:repeat(2,1fr)!important;gap:8px!important}
  .mpg-mini-kpis>div{padding:11px!important;border-radius:14px!important}.mpg-mini-kpis small{font-size:9px!important}.mpg-mini-kpis b{font-size:14px!important}
  .mpg-shift-control{display:block!important;padding:12px!important}.mpg-shift-control form{margin-top:11px!important;display:grid!important;grid-template-columns:1fr!important}
  .mpg-shift-control select,.mpg-pause-btn,.mpg-resume-btn{width:100%!important;min-height:44px!important}
  .mpg-app-nav{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:9000!important;
    margin:0!important;padding:7px max(8px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;
    background:rgba(255,255,255,.97)!important;border-top:1px solid #dce5ef!important;box-shadow:0 -8px 25px rgba(10,40,90,.10)!important;
    display:flex!important;justify-content:space-around!important;overflow:visible!important
  }
  .mpg-app-nav a,.mpg-app-nav button{
    flex:1!important;min-width:0!important;max-width:180px!important;min-height:49px!important;padding:6px!important;
    border:0!important;box-shadow:none!important;background:transparent!important;border-radius:12px!important;
    display:flex!important;flex-direction:column!important;gap:2px!important;font-size:10px!important
  }
  .mpg-app-nav a span,.mpg-app-nav button span{font-size:17px!important}
  .mpg-app-nav a.active{background:#e8f2ff!important;color:#0a438b!important}
  .mpg-chat{left:9px!important;bottom:76px!important}.mpg-chat-toggle{display:none!important}
  .mpg-chat-panel{position:fixed!important;left:7px!important;right:7px!important;bottom:72px!important;width:auto!important;height:min(70vh,560px)!important;border-radius:20px!important}
  .mpg-kpis,.mpg-report-kpis{grid-template-columns:repeat(2,1fr)!important;gap:8px!important}.mpg-kpis>div,.mpg-report-kpis>div{padding:11px!important}
  .mpg-ops-kpis{grid-template-columns:1fr!important;gap:7px!important}
  .mpg-dashboard-title{display:block!important}.mpg-filter-pills{display:none!important}
  .mpg-workcard .table-scroll{margin-left:-5px;margin-right:-5px}
  table{font-size:11px!important}
}

/* Small phones */
@media(max-width:390px){
  .mpg-brand p{display:none!important}.mpg-topbar{padding-right:68px!important}
  .mpg-logo-wrap{width:43px!important;height:41px!important}.mpg-logo-wrap img{max-width:43px!important}
  .mpg-brand h1{font-size:16px!important}
}

/* v0.5.1 — direct camera, archive workflow, mobile cleanup */
.mpg-hidden-native-file{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.mpg-camera-btn{
  grid-column:1/-1;width:100%;min-height:50px;border:0;border-radius:14px;
  background:linear-gradient(90deg,#0a82f5,#082d6d);color:#fff;font-weight:900;cursor:pointer
}
.mpg-camera-preview{
  grid-column:1/-1;min-height:58px;border:1px dashed #b8cadf;border-radius:13px;
  background:#fff;display:grid;place-items:center;color:#7b8798;overflow:hidden
}
.mpg-camera-preview img{width:100%;max-height:190px;object-fit:cover;display:block}
.mpg-bankak-help{display:block!important;color:#6e7b96!important;font-size:11px!important;margin-top:6px!important}
.mpg-camera-modal{
  position:fixed;inset:0;z-index:30000;background:rgba(0,11,31,.86);
  display:none;align-items:flex-end;justify-content:center
}
.mpg-camera-modal.open{display:flex}
.mpg-camera-sheet{
  width:min(720px,100%);background:#071f52;color:#fff;padding:12px;
  border-radius:24px 24px 0 0;box-shadow:0 -18px 60px rgba(0,0,0,.38)
}
.mpg-camera-head{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 10px}
.mpg-camera-close{border:0;background:#ffffff20;color:#fff;width:38px;height:38px;border-radius:50%;font-size:25px}
.mpg-camera-video{display:block;width:100%;max-height:66vh;aspect-ratio:3/4;object-fit:cover;background:#000;border-radius:16px}
.mpg-camera-actions{display:grid;grid-template-columns:1fr 2fr;gap:9px;padding-top:10px}
.mpg-camera-actions button{min-height:48px;border:0;border-radius:12px;font-weight:900}
.mpg-camera-switch{background:#fff;color:#082b68}.mpg-camera-shoot{background:#0b86ff;color:#fff}
.mpg-camera-sheet p{margin:8px 0 2px;text-align:center;color:#c5daf7;font-size:11px}

.status.archived{background:#edf0f4!important;color:#687487!important}
.mpg-account-action{position:relative;min-width:180px}
.mpg-account-action summary{cursor:pointer;color:#0869cb;font-weight:900}
.mpg-account-action form{
  position:absolute;z-index:60;left:0;top:28px;width:310px;background:#fff;
  border:1px solid #d8e2ee;border-radius:16px;padding:14px;box-shadow:0 18px 55px rgba(0,0,0,.18);
  white-space:normal
}
.mpg-account-action p{font-size:11px;color:#6d788d;margin:0 0 9px}
.mpg-account-action label{display:block;font-size:11px;margin:9px 0}
.mpg-archive-btn,.mpg-restore-btn{width:100%;border:0;border-radius:11px;padding:10px;color:#fff;font-weight:900}
.mpg-archive-btn{background:#a92b33}.mpg-restore-btn{background:#21874f}

.mpg-unread-badge{
  min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#e52d3b;color:#fff;
  font-size:10px;font-style:normal;display:inline-grid;place-items:center;margin-inline-start:3px
}
.mpg-unread-badge[hidden]{display:none!important}
.mpg-nav-chat,.mpg-chat-toggle{position:relative}

.mpg-report-hero h2,.mpg-report-hero p,.mpg-report-hero .mpg-kicker{color:#fff!important}
.mpg-report-hero .mpg-kicker{background:rgba(255,255,255,.15)!important}
.mpg-report-grid,.mpg-report-grid>div{min-width:0!important}
.mpg-report-grid .table-scroll{max-width:100%!important}
.mpg-workcard,.mpg-card{max-width:100%!important}
body.mpg-fullscreen,body.mpg-fullscreen *{font-family:"Cairo",Tahoma,Arial,sans-serif!important}
body.mpg-fullscreen code{font-family:monospace!important}

@media(min-width:1101px){
  .mpg-report-grid{grid-template-columns:minmax(0,2fr) minmax(320px,1fr)!important}
  .mpg-report-grid+.mpg-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
  .mpg-camera-sheet{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .mpg-camera-video{max-height:70vh}
  .mpg-account-action form{position:fixed!important;left:8px!important;right:8px!important;bottom:76px!important;top:auto!important;width:auto!important}
  .mpg-report-grid,.mpg-report-grid+.mpg-report-grid{display:block!important}
  .mpg-report-grid>div{margin-bottom:10px!important}
  .mpg-capture-card{display:grid!important}
  .mpg-camera-btn{font-size:13px!important}
}

.mpg-bankak-btn{grid-column:1/-1;width:100%;min-height:48px;border:1px solid #b9cee7;border-radius:13px;background:#fff;color:#0b3d82;font-weight:900;cursor:pointer}
.mpg-bankak-name{grid-column:1/-1;color:#7a879a;font-size:11px}

/* v0.5.2 — Bankak evidence modes */
.mpg-bankak-modes{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}
.mpg-bankak-mode{
  border:1px solid #bfd0e4;background:#fff;color:#143772;border-radius:12px;padding:10px 8px;
  font-weight:900;cursor:pointer;font-size:12px
}
.mpg-bankak-mode.active{background:linear-gradient(90deg,#0b80ef,#0a3475);color:#fff;border-color:transparent}
.mpg-bankak-preview{
  grid-column:1/-1;min-height:62px;border:1px dashed #bfd0e4;border-radius:13px;background:#fff;
  display:grid;place-items:center;color:#718097;overflow:hidden
}
.mpg-bankak-preview img{width:100%;max-height:220px;object-fit:contain;background:#081b3d}
.mpg-share-modal{
  position:fixed;inset:0;z-index:21000;background:rgba(2,13,35,.84);display:none;align-items:flex-end;justify-content:center
}
.mpg-share-modal.open{display:flex}
.mpg-share-sheet{width:min(760px,100%);background:#071f52;color:#fff;border-radius:24px 24px 0 0;padding:13px;box-shadow:0 -15px 50px rgba(0,0,0,.35)}
.mpg-share-head{display:flex;justify-content:space-between;align-items:center;padding:5px 5px 10px}.mpg-share-close{border:0;background:#ffffff1f;color:#fff;width:36px;height:36px;border-radius:50%;font-size:25px}
.mpg-share-instructions{background:#ffffff12;border:1px solid #ffffff20;border-radius:13px;padding:10px;font-size:12px;line-height:1.9;margin-bottom:9px}
.mpg-share-video{width:100%;aspect-ratio:9/16;max-height:58vh;background:#000;border-radius:16px;object-fit:contain}
.mpg-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}.mpg-share-actions button{min-height:48px;border:0;border-radius:12px;font-weight:900}.mpg-share-start{background:#fff;color:#092c69}.mpg-share-shoot{background:#0b86ff;color:#fff}.mpg-share-shoot:disabled{opacity:.45}
.mpg-share-sheet p{text-align:center;color:#bdd3f3;font-size:11px;margin:8px 0 2px}
@media(max-width:700px){
 .mpg-bankak-modes{grid-template-columns:1fr!important}
 .mpg-bankak-mode{min-height:46px!important;font-size:11px!important}
 .mpg-share-sheet{padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}
 .mpg-share-video{max-height:64vh!important}
}

/* v0.5.3 — strict capture-card layout repair */
.mpg-capture-card{overflow:hidden!important;min-width:0!important}
.mpg-capture-card>.mpg-capture-icon{grid-column:1!important;grid-row:1!important;margin:0!important}
.mpg-capture-card>.mpg-capture-copy{grid-column:2!important;grid-row:1!important;min-width:0!important}
.mpg-bankak-card .mpg-bankak-modes,
.mpg-bankak-card .mpg-bankak-preview,
.mpg-bankak-card .mpg-bankak-help{grid-column:1/-1!important;width:100%!important;min-width:0!important}
.mpg-bankak-card .mpg-bankak-help{height:auto!important;width:auto!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;display:block!important}
.mpg-bankak-preview>span{width:auto!important;height:auto!important;min-width:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;font-size:11px!important;padding:12px!important}
.mpg-bankak-modes{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.mpg-bankak-mode{white-space:normal!important;line-height:1.5!important;min-width:0!important}
@media(max-width:700px){
  .mpg-workcard{padding:16px 12px 88px!important}
  .mpg-form.two{grid-template-columns:1fr!important}
  .mpg-form.two>label,.mpg-form.two>.mpg-capture-card,.mpg-form.two>.wide{grid-column:1!important}
  .mpg-bankak-modes{grid-template-columns:1fr!important}
  .mpg-bankak-mode{min-height:48px!important}
  .mpg-capture-card{grid-template-columns:40px minmax(0,1fr)!important;gap:9px!important;padding:12px!important}
  .mpg-security-tip{line-height:1.8!important}
  .mpg-big{bottom:68px!important}
}

/* v0.5.4 — bankak action buttons functional-state UI */
.mpg-bankak-support{
  grid-column:1/-1;padding:8px 10px;border-radius:10px;background:#fff7e8;color:#8d651e;
  font-size:11px;border:1px solid #f0d7a7
}
.mpg-bankak-support.supported{background:#ebf8f0;color:#207143;border-color:#c7e8d4}
.mpg-bankak-mode{cursor:pointer!important;pointer-events:auto!important;position:relative!important;z-index:2!important}
.mpg-bankak-mode:active{transform:translateY(1px)}
.mpg-share-instructions{display:grid;gap:4px}
.mpg-share-instructions span{display:block}
.mpg-share-support{min-height:20px}
.mpg-share-video{background:#030914!important}
.mpg-camera-modal,.mpg-share-modal{pointer-events:none}
.mpg-camera-modal.open,.mpg-share-modal.open{pointer-events:auto}
@media(max-width:700px){
  .mpg-bankak-card{padding:12px!important}
  .mpg-bankak-modes{display:grid!important;grid-template-columns:1fr!important}
  .mpg-bankak-mode{width:100%!important;min-height:50px!important;font-size:12px!important}
  .mpg-bankak-preview{min-height:90px!important}
}

.mpg-stuck-card{border:1px solid #f0d3a8!important;background:linear-gradient(180deg,#fff,#fffaf2)!important}
.mpg-cancel-shift{border:0;border-radius:11px;background:#9f2b32;color:#fff;padding:9px 12px;font-weight:900;cursor:pointer}

/* v0.6.0 — card-based dashboard, modern filters, paginated archive, full chat */
.mpg-module-cards{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0
}
.mpg-module-card{
  border:1px solid #d8e3f0;background:#fff;color:#102c63;border-radius:20px;padding:18px;text-align:right;
  display:grid;grid-template-columns:auto 1fr;column-gap:10px;row-gap:2px;align-items:center;
  text-decoration:none;cursor:pointer;box-shadow:0 10px 28px rgba(10,45,103,.07);transition:.18s
}
.mpg-module-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(10,45,103,.11)}
.mpg-module-card>span{grid-row:1/3;font-size:26px}.mpg-module-card>b{font-size:15px}.mpg-module-card>small{color:#76849a;font-size:11px}
.mpg-module-card.active{background:linear-gradient(135deg,#0a7eed,#0a3273);color:#fff;border-color:transparent}.mpg-module-card.active small{color:#dfeeff}
.mpg-module-panel{display:none}.mpg-module-panel.active{display:block}

.mpg-report-filter{grid-template-columns:150px 190px 150px minmax(190px,1fr) auto!important}
.mpg-report-filter input[type=search]{border:0;border-radius:12px;padding:12px;background:#fff;color:#0e214d;min-width:0}
.mpg-pagination{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;padding:16px 0 2px}
.mpg-pagination a{min-width:36px;height:36px;border-radius:10px;border:1px solid #d7e1ed;background:#fff;color:#143873;text-decoration:none;display:grid;place-items:center;font-weight:800}
.mpg-pagination a.active{background:#0a6fdb;color:#fff;border-color:#0a6fdb}

.mpg-chat-page{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;margin-top:18px;min-height:640px}
.mpg-chat-contacts,.mpg-chat-thread{background:#fff;border:1px solid #dbe4ef;border-radius:24px;box-shadow:0 12px 36px rgba(10,45,103,.08);overflow:hidden}
.mpg-chat-contacts{padding:18px}.mpg-chat-contact-list{display:grid;gap:7px;margin-top:14px;max-height:560px;overflow:auto}
.mpg-chat-contact{display:grid;grid-template-columns:42px 1fr auto;align-items:center;gap:10px;text-decoration:none;color:#122b5c;padding:10px;border-radius:14px;border:1px solid transparent}
.mpg-chat-contact:hover,.mpg-chat-contact.active{background:#edf5ff;border-color:#d2e3f6}
.mpg-chat-avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#0d8af1,#092d6c);color:#fff;display:grid;place-items:center;font-weight:900}
.mpg-chat-contact b,.mpg-chat-contact small{display:block}.mpg-chat-contact small{color:#77859b;font-size:10px;margin-top:2px}.mpg-chat-contact i{min-width:21px;height:21px;border-radius:999px;background:#e6313b;color:#fff;font-style:normal;font-size:10px;display:grid;place-items:center}
.mpg-chat-thread{display:flex;flex-direction:column}.mpg-thread-head{padding:16px 18px;border-bottom:1px solid #e5ebf3;display:flex;justify-content:space-between;align-items:center}.mpg-thread-head b,.mpg-thread-head small{display:block}.mpg-thread-head small{color:#748299;font-size:10px}.mpg-online-dot{color:#239554;font-size:11px}
.mpg-thread-messages{flex:1;overflow:auto;background:#f5f8fc;padding:18px;display:flex;flex-direction:column;gap:8px}
.mpg-thread-msg{max-width:78%;padding:10px 12px;border-radius:16px;background:#fff;border:1px solid #dce5ef}.mpg-thread-msg.mine{align-self:flex-start;background:#ddecff;border-color:#c6defb}.mpg-thread-msg.theirs{align-self:flex-end}.mpg-thread-msg small{display:block;color:#7c899e;font-size:9px;margin-top:4px}
.mpg-thread-form{display:grid;grid-template-columns:1fr auto;gap:9px;padding:12px;border-top:1px solid #e3eaf2}.mpg-thread-form textarea{min-height:58px;border:1px solid #cedae8;border-radius:13px;padding:10px;resize:none}.mpg-thread-form button{border:0;background:#0a3476;color:#fff;border-radius:13px;padding:0 20px;font-weight:900}
.mpg-empty-chat{height:100%;display:grid;place-content:center;text-align:center;color:#76849a}.mpg-empty-chat span{font-size:48px}

@media(max-width:1050px){
 .mpg-module-cards{grid-template-columns:repeat(3,1fr)}
 .mpg-report-filter{grid-template-columns:1fr 1fr!important}
 .mpg-chat-page{grid-template-columns:270px 1fr}
}
@media(max-width:700px){
 .mpg-module-cards{grid-template-columns:repeat(2,1fr);gap:8px}.mpg-module-card{padding:12px;border-radius:15px}.mpg-module-card>span{font-size:21px}.mpg-module-card>b{font-size:12px}.mpg-module-card>small{font-size:9px}
 .mpg-report-filter{grid-template-columns:1fr!important}
 .mpg-chat-page{display:block;margin-top:10px;min-height:0}
 .mpg-chat-contacts{border-radius:18px;margin-bottom:8px;padding:12px}.mpg-chat-contact-list{display:flex;overflow-x:auto;overflow-y:hidden;max-height:none;padding-bottom:5px}.mpg-chat-contact{min-width:220px}
 .mpg-chat-thread{border-radius:18px;height:68vh}.mpg-thread-msg{max-width:88%}
}

/* v0.6.2 — simplify + profiles + real evidence images */
.mpg-account-link{text-decoration:none!important;color:#fff!important}
.mpg-account-link em{display:block;font-style:normal;font-size:9px;color:#bcd2f1;margin-top:2px}
.mpg-avatar.has-photo,.mpg-profile-avatar{overflow:hidden!important;padding:0!important}
.mpg-avatar.has-photo img,.mpg-profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.mpg-profile-card{background:#fff;border:1px solid #dbe4ef;border-radius:26px;padding:26px;margin-top:18px;box-shadow:0 14px 40px rgba(10,45,103,.08)}
.mpg-profile-hero{display:flex;align-items:center;gap:18px;padding-bottom:20px;border-bottom:1px solid #e6ecf3;margin-bottom:20px}
.mpg-profile-avatar{width:104px;height:104px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#0b84f2,#082b68);color:#fff;font-size:40px;font-weight:900;box-shadow:0 12px 30px rgba(8,60,130,.18)}
.mpg-profile-hero h2{margin:5px 0 2px;font-size:28px}.mpg-profile-hero p{margin:0;color:#77859c}
.mpg-evidence-card{text-decoration:none!important;color:#11274e!important}
.mpg-evidence-thumb{height:150px!important;overflow:hidden!important;padding:0!important;background:#eaf1fa!important}
.mpg-evidence-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.mpg-evidence-card em{display:block;font-style:normal;color:#0a68cc;font-size:10px;margin-top:7px;font-weight:800}
.mpg-own-evidence{margin-top:14px!important}
.mpg-review-box .mpg-evidence-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.mpg-admin-section{margin-top:14px!important}
.mpg-module-panel:not(.active){display:none!important}
.mpg-module-panel.active{display:block!important}

/* eliminate the former duplicated floating chat button */
.mpg-chat{display:none!important}

/* keep content concise */
.mpg-module-cards{margin-bottom:12px!important}
.mpg-dashboard-title{margin-top:12px!important}
.mpg-workcard{scroll-margin-top:18px}

@media(max-width:900px){
 .mpg-review-box .mpg-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:700px){
 .mpg-profile-card{padding:15px;border-radius:18px}.mpg-profile-hero{gap:12px}.mpg-profile-avatar{width:76px;height:76px;font-size:30px}.mpg-profile-hero h2{font-size:21px}
 .mpg-profile-form{grid-template-columns:1fr!important}
 .mpg-evidence-grid,.mpg-review-box .mpg-evidence-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .mpg-evidence-thumb{height:110px!important}
 .mpg-evidence-card{padding:8px!important}.mpg-evidence-card b{font-size:11px}.mpg-evidence-card small,.mpg-evidence-card em{font-size:8px!important}
}

/* v0.6.3 — 99% mobile-first, compact cards, repeated daily shifts */
.mpg-saved-ok{display:block;color:#248452!important;font-weight:800!important;margin-top:6px}
.mpg-next-shift{
  margin:12px 0 0;padding:13px 14px;border:1px solid #cfe2f5;background:#f7fbff;border-radius:16px;
  display:flex;justify-content:space-between;align-items:center;gap:12px
}
.mpg-next-shift b,.mpg-next-shift small{display:block}
.mpg-next-shift small{color:#738199;font-size:10px;margin-top:2px}
.mpg-next-shift a{
  text-decoration:none;background:linear-gradient(90deg,#0a7eed,#0a3477);color:#fff;
  border-radius:12px;padding:10px 14px;font-weight:900;white-space:nowrap
}

/* Make every summary/evidence card more compact on all screens */
.mpg-kpis{gap:9px!important}
.mpg-kpis>div{padding:13px 12px!important;border-radius:16px!important;min-height:88px!important}
.mpg-kpis>div span{font-size:15px!important}
.mpg-kpis>div small{font-size:10px!important;margin:3px 0!important}
.mpg-kpis>div b{font-size:18px!important}
.mpg-mini-kpis{gap:8px!important}
.mpg-mini-kpis>div{padding:11px!important;border-radius:14px!important}
.mpg-evidence-grid{gap:9px!important}
.mpg-evidence-card{padding:8px!important;border-radius:14px!important}
.mpg-evidence-thumb{height:112px!important;border-radius:10px!important}
.mpg-evidence-card b{font-size:11px!important;margin-top:6px!important}
.mpg-evidence-card small{font-size:8.5px!important}
.mpg-evidence-card .security{font-size:9px!important;padding:4px 7px!important}
.mpg-module-cards{gap:9px!important}
.mpg-module-card{padding:13px!important;border-radius:16px!important;min-height:82px!important}
.mpg-module-card>span{font-size:21px!important}
.mpg-module-card>b{font-size:12px!important}
.mpg-module-card>small{font-size:9px!important}

/* PHONE IS THE PRIMARY UI */
@media(max-width:700px){
  html,body{max-width:100%!important;overflow-x:hidden!important}
  body.mpg-fullscreen{padding-bottom:76px!important}
  .mpg-shell{padding:5px 6px 82px!important}

  .mpg-topbar{
    min-height:76px!important;border-radius:16px!important;
    padding:10px 76px 10px 10px!important
  }
  .mpg-brand h1{font-size:17px!important;line-height:1.15!important}
  .mpg-brand p{font-size:8px!important}
  .mpg-logo-wrap{width:46px!important;height:43px!important}
  .mpg-logo-wrap img{max-width:46px!important;max-height:42px!important}
  .mpg-logout{top:13px!important;left:10px!important}
  .mpg-logout button{font-size:9px!important;min-height:30px!important;padding:5px 8px!important}

  .mpg-status-row{min-height:45px!important;padding:7px 3px!important}
  .mpg-collector b{font-size:13px!important}
  .mpg-session{font-size:10px!important}

  .mpg-workcard,.mpg-card,.mpg-profile-card{
    padding:12px!important;border-radius:16px!important;margin-top:8px!important
  }
  .mpg-section-title h2{font-size:20px!important}
  .mpg-section-title p{font-size:10px!important}
  .mpg-step{font-size:10px!important;padding:5px 9px!important}

  .mpg-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  .mpg-kpis>div{min-height:72px!important;padding:9px!important;border-radius:13px!important}
  .mpg-kpis>div b{font-size:15px!important}
  .mpg-kpis>div small{font-size:8.5px!important}

  .mpg-evidence-grid,.mpg-review-box .mpg-evidence-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important
  }
  .mpg-evidence-thumb{height:94px!important}
  .mpg-evidence-card{padding:6px!important;border-radius:12px!important}
  .mpg-evidence-card b{font-size:10px!important}
  .mpg-evidence-card small,.mpg-evidence-card em{font-size:7.5px!important}

  .mpg-module-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:9px 0!important}
  .mpg-module-card{min-height:68px!important;padding:9px!important;border-radius:13px!important}
  .mpg-module-card>span{font-size:18px!important}
  .mpg-module-card>b{font-size:10.5px!important}
  .mpg-module-card>small{font-size:7.8px!important}

  .mpg-next-shift{display:block!important;padding:11px!important}
  .mpg-next-shift a{display:block!important;text-align:center!important;margin-top:9px!important;min-height:44px!important;line-height:24px!important}

  .mpg-form.two,.mpg-form.one{grid-template-columns:1fr!important;gap:9px!important}
  .mpg-form label{font-size:11px!important}
  .mpg-form input,.mpg-form textarea,.mpg-form select{min-height:45px!important;padding:10px!important;font-size:16px!important}

  .mpg-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mpg-report-hero{padding:14px!important;border-radius:16px!important}
  .mpg-report-hero h2{font-size:20px!important}
  .mpg-report-filter{gap:7px!important}

  .mpg-chat-page{margin-top:8px!important}
  .mpg-chat-thread{height:67vh!important}
  .mpg-chat-contact{min-width:195px!important;padding:8px!important}
  .mpg-thread-form{grid-template-columns:1fr 72px!important}
  .mpg-thread-form button{padding:0 8px!important}

  /* Bottom app nav */
  .mpg-app-nav{
    position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:9000!important;
    background:rgba(255,255,255,.98)!important;border-top:1px solid #dce5ef!important;
    box-shadow:0 -8px 24px rgba(9,38,83,.09)!important;
    padding:6px 6px calc(6px + env(safe-area-inset-bottom))!important;
    margin:0!important;display:flex!important;justify-content:space-around!important
  }
  .mpg-app-nav a,.mpg-app-nav button{
    flex:1!important;min-width:0!important;min-height:46px!important;padding:4px!important;border:0!important;
    box-shadow:none!important;background:transparent!important;border-radius:11px!important;
    display:flex!important;flex-direction:column!important;gap:1px!important;font-size:9px!important
  }
  .mpg-app-nav a span,.mpg-app-nav button span{font-size:16px!important}
  .mpg-app-nav a.active{background:#eaf3ff!important;color:#0b4c98!important}
}

/* very small phones */
@media(max-width:390px){
  .mpg-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mpg-evidence-grid{grid-template-columns:1fr 1fr!important}
  .mpg-brand h1{font-size:15px!important}
}

/* v0.7.0 — Ticket employee shift workspace, mobile-first */
.mpg-shift-dashboard{max-width:1180px;margin:0 auto 40px}.mpg-shift-hero{position:relative;overflow:hidden;margin:14px 0 16px;padding:26px 28px;border-radius:28px;background:linear-gradient(115deg,#071f55,#0a438f);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 18px 50px rgba(5,35,91,.18)}
.mpg-shift-hero:before,.mpg-shift-hero:after{content:"";position:absolute;border:22px solid rgba(255,255,255,.055);border-radius:50%;width:150px;height:150px;left:35%;top:-95px}.mpg-shift-hero:after{width:240px;height:70px;border-width:12px;border-radius:50%;left:6%;top:auto;bottom:-55px;transform:rotate(-8deg)}
.mpg-shift-hero>div,.mpg-shift-main-btn{position:relative;z-index:1}.mpg-shift-hero h2{margin:5px 0 4px;font-size:28px;color:#fff}.mpg-shift-hero p{margin:0;color:#dce9ff}.mpg-kicker{font-size:12px;font-weight:900;color:#8fc7ff}.mpg-shift-main-btn{border:0;border-radius:18px;padding:15px 22px;background:linear-gradient(135deg,#2fa6ff,#0870e8);color:#fff;font-weight:900;font-size:15px;box-shadow:0 10px 28px rgba(0,119,238,.35);cursor:pointer;white-space:nowrap}.mpg-shift-main-btn.is-close{background:linear-gradient(135deg,#ff8a50,#e24a35)}
.mpg-shift-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.mpg-shift-kpis>div{background:#fff;border:1px solid #dfe8f4;border-radius:20px;padding:17px;text-align:center;box-shadow:0 9px 25px rgba(13,55,111,.055)}.mpg-shift-kpis i{width:38px;height:38px;margin:0 auto 7px;border-radius:50%;display:grid;place-items:center;background:#eef6ff;color:#0874e5;font-style:normal}.mpg-shift-kpis b{display:block;font-size:22px;color:#102858}.mpg-shift-kpis small{display:block;color:#7485a2;margin-top:3px}
.mpg-current-shift{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:center;gap:12px;background:#f4f9ff;border:1px solid #cfe1f6;border-radius:20px;padding:15px 18px;margin:12px 0}.mpg-current-shift small{display:block;color:#7b8ba5}.mpg-current-shift b{display:block;color:#102d62;margin-top:3px}.mpg-live-pill,.mpg-shift-status{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:900}.mpg-live-pill,.mpg-shift-status.live{background:#e9f3ff;color:#0873df}.mpg-shift-status.done{background:#e9f8ef;color:#24804a}
.mpg-shift-list{background:#fff;border:1px solid #dfe8f4;border-radius:25px;padding:20px;box-shadow:0 12px 32px rgba(10,48,105,.06)}.mpg-shift-list-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.mpg-shift-list-head h3{margin:0;color:#102858;font-size:20px}.mpg-shift-list-head p{margin:4px 0 0;color:#8290a8;font-size:12px}.mpg-shift-list-head>span{background:#f1f6fc;color:#2c568b;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800}.mpg-shift-table{width:100%;border-collapse:separate;border-spacing:0}.mpg-shift-table th{background:#f4f7fb;color:#5f708d;padding:12px 10px;font-size:11px}.mpg-shift-table td{padding:14px 10px;border-bottom:1px solid #edf1f6;color:#24395e;vertical-align:middle}.mpg-shift-table td small{display:block;color:#8492a8;margin-top:2px}.mpg-shift-table td strong{color:#102858}.mpg-shift-mobile-list{display:none}.mpg-empty-shifts{text-align:center;padding:42px 15px;color:#7d8ca4}.mpg-shift-pages{display:flex;gap:6px;justify-content:center;margin-top:18px}.mpg-shift-pages a,.mpg-shift-pages span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;text-decoration:none;color:#1d477e;background:#f3f7fc;font-weight:800}.mpg-shift-pages a.active{background:#0875e5;color:#fff}
.mpg-shift-modal{position:fixed;inset:0;z-index:10050;display:none;align-items:center;justify-content:center;padding:16px}.mpg-shift-modal.open{display:flex}.mpg-shift-modal-backdrop{position:absolute;inset:0;background:rgba(3,19,49,.58);backdrop-filter:blur(4px)}.mpg-shift-sheet{position:relative;z-index:1;width:min(560px,100%);background:#fff;border-radius:28px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.25)}.mpg-shift-x{position:absolute;left:18px;top:15px;border:0;background:#eff4fa;color:#28476f;width:36px;height:36px;border-radius:50%;font-size:22px;cursor:pointer}.mpg-shift-sheet h2{margin:10px 0 4px;color:#102858}.mpg-shift-sheet>p{color:#7a89a2;margin:0 0 18px}.mpg-shift-sheet form{display:grid;grid-template-columns:1fr 1fr;gap:13px}.mpg-shift-sheet label{font-size:12px;font-weight:800;color:#2c4367}.mpg-shift-sheet input,.mpg-shift-sheet textarea,.mpg-shift-sheet select{width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #d7e2ef;background:#f8fbff;border-radius:13px;padding:12px;font:inherit}.mpg-shift-sheet textarea{min-height:82px;resize:vertical}.mpg-shift-sheet .wide,.mpg-shift-submit{grid-column:1/-1}.mpg-shift-submit{border:0;border-radius:15px;padding:14px;background:linear-gradient(135deg,#299fff,#0870e5);color:#fff;font-weight:900;cursor:pointer}.mpg-shift-submit.is-close{background:linear-gradient(135deg,#ff8751,#dc4936)}.mpg-close-summary{background:#f3f8fe;border-radius:15px;padding:13px 15px;margin-bottom:14px}.mpg-close-summary small{display:block;color:#7d8ba1}.mpg-close-summary b{color:#173b70}.mpg-app-nav a[href*="marina-chat"]{display:none}
@media(max-width:700px){
 .mpg-shell{padding:6px 7px 82px!important}.mpg-shift-dashboard{margin-bottom:18px}.mpg-app-nav{display:none!important}.mpg-shift-hero{margin-top:8px;padding:18px 16px 16px;border-radius:22px;display:block}.mpg-shift-hero h2{font-size:21px}.mpg-shift-hero p{font-size:11px;line-height:1.8;margin-bottom:14px}.mpg-shift-main-btn{width:100%;padding:14px;font-size:14px}.mpg-shift-kpis{grid-template-columns:repeat(2,1fr);gap:8px}.mpg-shift-kpis>div{padding:12px 8px;border-radius:17px}.mpg-shift-kpis i{width:32px;height:32px}.mpg-shift-kpis b{font-size:19px}.mpg-shift-kpis small{font-size:10px}.mpg-current-shift{grid-template-columns:1fr 1fr;padding:12px;border-radius:17px}.mpg-current-shift>div:first-child{grid-column:1/-1}.mpg-live-pill{position:absolute;left:18px}.mpg-shift-list{padding:13px 10px;border-radius:20px}.mpg-shift-list-head h3{font-size:17px}.mpg-shift-list-head p{display:none}.mpg-shift-table-wrap{display:none}.mpg-shift-mobile-list{display:grid;gap:9px}.mpg-shift-mobile-list article{border:1px solid #e1e9f3;border-radius:17px;padding:12px;background:#fff}.mpg-mobile-shift-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.mpg-mobile-shift-top strong{font-size:12px;color:#122f60}.mpg-mobile-shift-date{font-size:10px;color:#7f8ea6;margin:5px 0 8px}.mpg-mobile-shift-time{display:grid;grid-template-columns:1fr 1fr;gap:7px}.mpg-mobile-shift-time span{background:#f6f9fd;border-radius:10px;padding:7px;color:#8491a6;font-size:9px}.mpg-mobile-shift-time b{display:block;color:#244a7c;font-size:11px;margin-top:2px}.mpg-shift-sheet{padding:23px 16px 18px;border-radius:23px}.mpg-shift-sheet form{grid-template-columns:1fr}.mpg-shift-sheet .wide,.mpg-shift-submit{grid-column:auto}.mpg-shift-modal{align-items:flex-end;padding:7px}.mpg-shift-sheet{width:100%;max-height:90vh;overflow:auto}.mpg-shift-pages{margin-top:12px}
}

/* v0.7.1 final ticket close */
.mpg-current-shift.compact{grid-template-columns:2fr 1fr 1fr 1fr auto!important}
.mpg-shift-status.review{background:#fff2d7!important;color:#94620a!important}
.mpg-shift-sheet form{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.mpg-shift-sheet form label{display:block!important;font-weight:800!important;font-size:11px!important}
.mpg-shift-sheet form input,.mpg-shift-sheet form textarea,.mpg-shift-sheet form select{width:100%!important;border:1px solid #d4deeb!important;border-radius:11px!important;padding:11px!important;margin-top:5px!important}
.mpg-shift-sheet form .wide,.mpg-shift-sheet .mpg-capture-card,.mpg-shift-submit{grid-column:1/-1!important}
.mpg-capture-card{border:1px solid #d7e3f1!important;border-radius:14px!important;padding:11px!important;background:#f8fbff!important}
.mpg-capture-card>b{display:block!important;margin-bottom:8px!important}
@media(max-width:700px){
  .mpg-shift-sheet form{grid-template-columns:1fr!important}
  .mpg-shift-sheet form .wide,.mpg-shift-sheet .mpg-capture-card,.mpg-shift-submit{grid-column:1!important}
  .mpg-current-shift.compact{grid-template-columns:1fr 1fr!important}
  .mpg-bankak-modes{grid-template-columns:1fr!important}
}

/* v0.7.2 separate start/end pages */
.mpg-shift-main-btn{text-decoration:none!important;display:inline-flex;align-items:center;gap:7px}
.mpg-shift-page{max-width:820px;margin:18px auto 0;background:#fff;border:1px solid #dbe5ef;border-radius:24px;padding:24px;box-shadow:0 14px 40px rgba(10,45,103,.08)}
.mpg-back-link{display:inline-flex;text-decoration:none;color:#0b5daf;font-weight:900;font-size:11px;margin-bottom:12px}
.mpg-shift-page-head{text-align:center;margin-bottom:18px}.mpg-shift-page-head h2{font-size:28px;margin:7px 0 3px}.mpg-shift-page-head p{margin:0;color:#748299}
.mpg-shift-page-form{display:grid;grid-template-columns:1fr 1fr;gap:11px}.mpg-shift-page-form label{font-size:11px;font-weight:900}.mpg-shift-page-form input,.mpg-shift-page-form textarea,.mpg-shift-page-form select{width:100%;border:1px solid #d4dfeb;border-radius:12px;padding:12px;margin-top:5px}.mpg-shift-page-form textarea{min-height:90px}.mpg-shift-page-form .wide{grid-column:1/-1}
.mpg-shift-page-summary{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;margin-bottom:14px}.mpg-shift-page-summary>div{background:#f4f8fc;border-radius:13px;padding:11px}.mpg-shift-page-summary small,.mpg-shift-page-summary b{display:block}.mpg-shift-page-summary small{color:#7b879a;font-size:9px}
.mpg-shift-page-note{background:#edf7f2;color:#2d7650;border-radius:12px;padding:11px;font-size:10px}
@media(max-width:700px){
 .mpg-shift-page{margin:8px 6px 74px;padding:14px;border-radius:18px}
 .mpg-shift-page-head h2{font-size:21px}
 .mpg-shift-page-head p{font-size:10px}
 .mpg-shift-page-form{grid-template-columns:1fr;gap:8px}
 .mpg-shift-page-form .wide{grid-column:1}
 .mpg-shift-page-form input,.mpg-shift-page-form textarea{font-size:16px;min-height:46px}
 .mpg-shift-page-summary{grid-template-columns:1fr 1fr}
 .mpg-shift-page-summary>div:first-child{grid-column:1/-1}
 .mpg-shift-submit{min-height:50px}
}

/* v0.8.0 — Financial Manager Workspace */
.mpg-finance-home{max-width:1240px;margin:0 auto}
.mpg-finance-heading{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:18px 0 12px}.mpg-finance-heading h2{font-size:30px;margin:4px 0 2px}.mpg-finance-heading p{margin:0;color:#768399}
.mpg-period-tabs{display:flex;gap:6px}.mpg-period-tabs a{text-decoration:none;border:1px solid #d5dfeb;background:#fff;color:#60708a;border-radius:999px;padding:8px 12px;font-size:10px;font-weight:900}.mpg-period-tabs a.active{background:#0b4c99;color:#fff;border-color:#0b4c99}
.mpg-finance-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:12px}.mpg-finance-card{min-height:92px;border:1px solid #d9e3ee;background:#fff;border-radius:18px;padding:13px;text-align:right;text-decoration:none;color:#102957;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;gap:2px 9px;align-items:center;cursor:pointer}.mpg-finance-card>span{font-size:22px;grid-row:1/3}.mpg-finance-card>b{font-size:12px}.mpg-finance-card>strong{font-size:18px;justify-self:end}.mpg-finance-card>small{color:#7a879c;font-size:9px}.mpg-finance-card.active{background:linear-gradient(135deg,#0b7ce5,#0a377e);color:#fff;border-color:transparent}.mpg-finance-card.active small{color:#d9ebff}
.mpg-finance-panel{display:none;background:#fff;border:1px solid #dce5ef;border-radius:20px;padding:16px}.mpg-finance-panel.active{display:block}.mpg-panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.mpg-panel-title h3{margin:0;font-size:20px}.mpg-panel-title p{margin:2px 0 0;color:#77849a;font-size:10px}
.mpg-finance-review-list{display:grid;gap:9px}.mpg-finance-review-card{border:1px solid #e0e7ef;border-radius:15px;padding:12px}.mpg-finance-review-top{display:flex;justify-content:space-between;align-items:center}.mpg-finance-review-top b,.mpg-finance-review-top small{display:block}.mpg-finance-review-top small{font-size:9px;color:#77849a}.mpg-review-wait{background:#fff2d8;color:#96640b;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:900}.mpg-finance-review-meta{display:flex;gap:10px;color:#738097;font-size:9px;margin:8px 0}.mpg-finance-money{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.mpg-finance-money>div{background:#f5f8fc;border-radius:10px;padding:8px}.mpg-finance-money small,.mpg-finance-money b{display:block}.mpg-finance-money small{font-size:8px;color:#7a879c}.mpg-finance-money b{font-size:12px}.mpg-finance-money .ok{background:#eaf8ef}.mpg-finance-money .bad{background:#fff0f0}.mpg-finance-money .warn{background:#fff7e8}.mpg-finance-card-actions{display:flex;justify-content:flex-end;margin-top:8px}.mpg-finance-card-actions a{padding:8px 11px;border-radius:10px;text-decoration:none;background:#0b62bf;color:#fff;font-size:9px;font-weight:900}
.mpg-finance-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mpg-finance-summary-grid>div{background:#f5f8fc;border-radius:14px;padding:13px}.mpg-finance-summary-grid span,.mpg-finance-summary-grid small,.mpg-finance-summary-grid b{display:block}.mpg-finance-summary-grid span{font-size:18px}.mpg-finance-summary-grid small{font-size:9px;color:#78859a;margin:5px 0}.mpg-finance-summary-grid b{font-size:18px}
.mpg-review-drawer{position:fixed;inset:0;z-index:14000}.mpg-review-drawer-backdrop{position:absolute;inset:0;background:rgba(3,16,42,.66)}.mpg-review-drawer-sheet{position:absolute;top:0;bottom:0;left:0;width:min(760px,100%);background:#fff;overflow:auto;padding:20px;box-shadow:18px 0 50px rgba(0,0,0,.22)}.mpg-review-close{position:absolute;left:12px;top:10px;text-decoration:none;font-size:28px;color:#153466}.mpg-review-drawer-head{text-align:center;margin-bottom:14px}.mpg-review-drawer-head h2{margin:6px 0 2px}.mpg-review-drawer-head p{margin:0;color:#768399}
.mpg-review-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.mpg-review-kpis>div{background:#f4f8fc;border-radius:12px;padding:10px}.mpg-review-kpis small,.mpg-review-kpis b{display:block}.mpg-review-kpis small{font-size:8px;color:#78859a}.mpg-review-kpis b{font-size:14px}
.mpg-review-evidence{margin-top:15px}.mpg-review-evidence h3{font-size:16px}.mpg-review-form{margin-top:14px}.mpg-review-form textarea{width:100%;min-height:80px;border:1px solid #d4deea;border-radius:12px;padding:10px;margin-top:5px}.mpg-review-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.mpg-review-actions button{border:0;border-radius:12px;min-height:46px;color:#fff;font-weight:900}.mpg-review-actions .approve{background:#218452}.mpg-review-actions .return{background:#b2761a}
@media(max-width:700px){
  .mpg-finance-heading{display:block;margin:10px 0}.mpg-finance-heading h2{font-size:21px}.mpg-finance-heading p{font-size:9px}.mpg-period-tabs{margin-top:8px}
  .mpg-finance-cards{grid-template-columns:1fr 1fr;gap:7px}.mpg-finance-card{min-height:72px;padding:9px;border-radius:14px}.mpg-finance-card>span{font-size:18px}.mpg-finance-card>b{font-size:10px}.mpg-finance-card>strong{font-size:14px}.mpg-finance-card>small{font-size:7px}
  .mpg-finance-panel{padding:10px;border-radius:16px}.mpg-panel-title h3{font-size:16px}.mpg-panel-title p{font-size:8px}
  .mpg-finance-money{grid-template-columns:1fr 1fr 1fr}.mpg-finance-money>div:nth-child(4),.mpg-finance-money>div:nth-child(5){grid-column:auto}
  .mpg-finance-review-meta{display:block}.mpg-finance-review-meta span{display:block}
  .mpg-finance-summary-grid{grid-template-columns:1fr 1fr}.mpg-finance-summary-grid>div{padding:10px}
  .mpg-review-drawer-sheet{width:100%;padding:14px 10px 80px}.mpg-review-kpis{grid-template-columns:1fr 1fr}.mpg-review-actions{grid-template-columns:1fr}
}

/* v0.8.1 — Finance separate pages + live */
.mpg-fin-home{max-width:1200px;margin:0 auto}
.mpg-fin-hero{min-height:180px;border-radius:28px;padding:28px;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative;background:linear-gradient(135deg,#082660,#0a4f9f);color:#fff;margin:18px 0 12px}
.mpg-fin-hero:before,.mpg-fin-hero:after{content:"";position:absolute;border-radius:50%;border:28px solid rgba(255,255,255,.06)}.mpg-fin-hero:before{width:230px;height:230px;left:-70px;bottom:-120px}.mpg-fin-hero:after{width:150px;height:150px;right:28%;top:-90px}
.mpg-fin-hero h2,.mpg-fin-hero p,.mpg-fin-hero .mpg-kicker{color:#fff!important}.mpg-fin-hero h2{font-size:34px;margin:6px 0 4px}.mpg-fin-hero p{margin:0;color:#d9e8fb!important}.mpg-kicker.light{background:rgba(255,255,255,.13)!important}
.mpg-fin-hero-rings{width:150px;height:130px;position:relative}.mpg-fin-hero-rings i{position:absolute;border:8px solid rgba(255,255,255,.18);border-radius:50%}.mpg-fin-hero-rings i:nth-child(1){width:110px;height:110px;right:0;top:5px}.mpg-fin-hero-rings i:nth-child(2){width:75px;height:75px;left:0;bottom:0}.mpg-fin-hero-rings i:nth-child(3){width:48px;height:48px;left:48px;top:0}.mpg-fin-hero-rings span{position:absolute;right:35px;top:37px;font-size:42px}
.mpg-fin-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.mpg-fin-quick>div{background:#fff;border:1px solid #dce5ef;border-radius:16px;padding:12px}.mpg-fin-quick small,.mpg-fin-quick b,.mpg-fin-quick span{display:block}.mpg-fin-quick small{font-size:9px;color:#7b879b}.mpg-fin-quick b{font-size:18px;color:#102958;margin-top:4px}.mpg-fin-quick span{font-size:8px;color:#7a879b}
.mpg-fin-modules{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:12px 0}.mpg-fin-module{min-height:105px;border-radius:18px;background:#fff;border:1px solid #dbe5ef;padding:14px;text-decoration:none;color:#102958;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}.mpg-fin-module>span{font-size:24px}.mpg-fin-module b,.mpg-fin-module small{display:block}.mpg-fin-module b{font-size:13px}.mpg-fin-module small{font-size:9px;color:#7a879c;margin-top:3px}.mpg-fin-module strong{font-size:18px}.mpg-fin-module.reviews{background:linear-gradient(135deg,#0a79df,#0a3a83);color:#fff;border:0}.mpg-fin-module.reviews small{color:#dbeeff}
.mpg-fin-live-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.mpg-fin-live-strip>div{background:#f7fafe;border-radius:14px;padding:11px;display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center}.mpg-fin-live-strip small{font-size:9px;color:#728097}.mpg-fin-live-strip b{font-size:16px}
.mpg-fin-back{display:inline-flex;margin:14px 0 8px;text-decoration:none;background:#fff;color:#0b5da9;border:1px solid #d7e1ec;border-radius:11px;padding:8px 11px;font-weight:900;font-size:10px}.mpg-fin-back.bottom{margin:12px 0 22px}
.mpg-fin-page,.mpg-fin-review-page{max-width:1200px;margin:0 auto;background:#fff;border:1px solid #dce5ef;border-radius:22px;padding:18px}
.mpg-fin-page-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.mpg-fin-page-head h2{font-size:25px;margin:4px 0 2px}.mpg-fin-page-head p{margin:0;color:#748198;font-size:10px}.mpg-count-badge,.mpg-review-state{background:#eef5ff;color:#0a58a8;border-radius:999px;padding:7px 10px;font-size:10px}
.mpg-fin-review-grid{display:grid;gap:8px}.mpg-fin-review-row{display:grid;grid-template-columns:1.4fr 1.2fr 2.4fr auto;align-items:center;gap:10px;border:1px solid #e1e8f0;border-radius:14px;padding:11px}.mpg-fin-review-row .identity b,.mpg-fin-review-row .identity small,.mpg-fin-review-row .date b,.mpg-fin-review-row .date small{display:block}.mpg-fin-review-row small{font-size:8px;color:#7b879b}.mpg-fin-review-row .money{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.mpg-fin-review-row .money span{background:#f5f8fc;border-radius:9px;padding:7px}.mpg-fin-review-row .money .ok{background:#eaf8ef}.mpg-fin-review-row .money .bad{background:#fff0f0}.mpg-fin-review-row .money .warn{background:#fff7e8}.mpg-fin-review-row .open{background:#0b66c3;color:#fff;text-decoration:none;border-radius:10px;padding:8px 10px;font-size:9px;font-weight:900}
.mpg-fin-review-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.mpg-fin-review-kpis>div{background:#f5f8fc;border-radius:12px;padding:10px}.mpg-fin-review-kpis small,.mpg-fin-review-kpis b{display:block}.mpg-fin-review-kpis small{font-size:8px;color:#7a879b}.mpg-fin-review-kpis b{font-size:14px}.mpg-fin-subhead h3{margin:16px 0 2px}.mpg-fin-subhead p{margin:0 0 8px;color:#748197;font-size:9px}.mpg-fin-review-form textarea{width:100%;min-height:80px;border:1px solid #d6e0eb;border-radius:11px;padding:10px;margin-top:5px}.mpg-fin-decision{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.mpg-fin-decision button{border:0;border-radius:11px;min-height:46px;color:#fff;font-weight:900}.mpg-fin-decision .approve{background:#248353}.mpg-fin-decision .return{background:#b6791b}
.mpg-report-graphic{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.mpg-report-graphic>div{background:#f6f9fd;border-radius:15px;padding:13px}.mpg-report-graphic small,.mpg-report-graphic b{display:block}.mpg-report-graphic small{font-size:9px;color:#748198}.mpg-report-graphic b{font-size:18px;margin:5px 0 12px}.mpg-report-graphic i{display:block;height:8px;background:#dfe9f5;border-radius:999px;overflow:hidden}.mpg-report-graphic i:after{content:"";display:block;height:100%;width:var(--p);background:linear-gradient(90deg,#0b87ee,#0a3b84);border-radius:999px}
.mpg-fin-report-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:9px}.mpg-fin-report-stats>div{border:1px solid #dce5ef;border-radius:13px;padding:11px}.mpg-fin-report-stats small,.mpg-fin-report-stats b{display:block}.mpg-fin-filter{display:grid;grid-template-columns:180px 1fr auto;gap:8px;margin-bottom:10px}.mpg-fin-filter select,.mpg-fin-filter input{border:1px solid #d6e0eb;border-radius:10px;padding:9px}.mpg-fin-filter button{border:0;border-radius:10px;background:#0a5eb6;color:#fff;padding:0 16px;font-weight:900}
.mpg-shift-status.returned{background:#fff0df!important;color:#9a5d0a!important}

/* Fix black/dark text on blue surfaces */
.mpg-fin-module.reviews,.mpg-fin-module.reviews *,.mpg-fin-hero,.mpg-fin-hero *,.mpg-topbar h1,.mpg-topbar p{color:#fff!important}

@media(max-width:700px){
 .mpg-fin-hero{min-height:130px;padding:16px;border-radius:18px}.mpg-fin-hero h2{font-size:22px}.mpg-fin-hero p{font-size:9px}.mpg-fin-hero-rings{width:90px;height:80px}.mpg-fin-hero-rings i:nth-child(1){width:70px;height:70px}.mpg-fin-hero-rings span{font-size:28px;right:22px;top:22px}
 .mpg-fin-quick{grid-template-columns:1fr 1fr}.mpg-fin-quick>div{padding:9px}.mpg-fin-quick b{font-size:14px}
 .mpg-fin-modules{grid-template-columns:1fr 1fr;gap:7px}.mpg-fin-module{min-height:76px;padding:9px;border-radius:14px}.mpg-fin-module>span{font-size:18px}.mpg-fin-module b{font-size:10px}.mpg-fin-module small{font-size:7px}.mpg-fin-module strong{font-size:14px}
 .mpg-fin-live-strip{grid-template-columns:1fr 1fr}.mpg-fin-live-strip>div{padding:8px}
 .mpg-fin-page,.mpg-fin-review-page{padding:10px;border-radius:16px}.mpg-fin-page-head{align-items:flex-start}.mpg-fin-page-head h2{font-size:19px}
 .mpg-fin-review-row{grid-template-columns:1fr}.mpg-fin-review-row .money{grid-template-columns:1fr 1fr 1fr}.mpg-fin-review-row .open{text-align:center;min-height:42px;display:grid;place-items:center}
 .mpg-fin-review-kpis{grid-template-columns:1fr 1fr}.mpg-fin-review-kpis>div:last-child{grid-column:1/-1}
 .mpg-fin-decision{grid-template-columns:1fr}
 .mpg-report-graphic{grid-template-columns:1fr 1fr}.mpg-fin-report-stats{grid-template-columns:1fr}
 .mpg-fin-filter{grid-template-columns:1fr}
}

/* v0.8.2 — review persistence + ticket live result */
.mpg-fin-review-flash{
  max-width:1200px;margin:10px auto;padding:11px 13px;border-radius:13px;font-weight:900;font-size:11px
}
.mpg-fin-review-flash.approved{background:#e8f8ee;color:#24754b;border:1px solid #cdebd8}
.mpg-fin-review-flash.returned{background:#fff4e3;color:#8c5b11;border:1px solid #f1dfbd}

.mpg-ticket-review-result{
  margin-top:9px;padding:9px 10px;border-radius:11px;border:1px solid transparent
}
.mpg-ticket-review-result b,.mpg-ticket-review-result small{display:block}
.mpg-ticket-review-result b{font-size:10px}
.mpg-ticket-review-result small{font-size:8px;margin-top:3px;line-height:1.5}
.mpg-ticket-review-result.approved{background:#eaf8ef;color:#24754b;border-color:#cfead9}
.mpg-ticket-review-result.returned{background:#fff3e1;color:#8d5b11;border-color:#f0ddb9}
.mpg-shift-status.done{background:#e7f7ed!important;color:#237a4b!important}
.mpg-shift-status.returned{background:#fff0df!important;color:#965b0d!important}

@media(max-width:700px){
  .mpg-fin-review-flash{margin:8px 6px;padding:10px;font-size:10px}
  .mpg-ticket-review-result{padding:8px}
}

/* v0.8.3 profile + charts + correction workflow */
.mpg-correct-link{display:block;margin-top:5px;color:#a35e0b;font-size:8px;font-weight:900;text-decoration:none}
.mpg-correct-button{display:block;margin-top:8px;background:linear-gradient(90deg,#f29b22,#d87612);color:#fff!important;text-align:center;text-decoration:none;border-radius:10px;padding:9px 10px;font-weight:900;font-size:9px}
.mpg-correction-note{background:#fff5e5;border:1px solid #f0d5aa;color:#744b10;border-radius:13px;padding:11px;margin-bottom:12px}
.mpg-correction-note b,.mpg-correction-note p{display:block;margin:0}.mpg-correction-note p{font-size:10px;margin-top:5px;line-height:1.7}
.mpg-step.returned{background:#fff0db!important;color:#975a0c!important}

.mpg-fin-welcome{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #dce5ef;border-radius:18px;padding:12px 14px;margin:12px 0 10px;box-shadow:0 8px 24px rgba(10,45,103,.05)}
.mpg-fin-welcome-user{display:flex;align-items:center;gap:11px}.mpg-fin-welcome-avatar{width:58px;height:58px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#0b80eb,#083b85);color:#fff;display:grid;place-items:center;font-size:23px;font-weight:900;box-shadow:0 8px 20px rgba(10,75,150,.15)}
.mpg-fin-welcome-avatar img{width:100%;height:100%;object-fit:cover}.mpg-fin-welcome-user span,.mpg-fin-welcome-user h2,.mpg-fin-welcome-user p{display:block;margin:0}.mpg-fin-welcome-user span{font-size:9px;color:#7a879c}.mpg-fin-welcome-user h2{font-size:19px;margin-top:2px;color:#102958}.mpg-fin-welcome-user p{font-size:9px;color:#7a879b;margin-top:3px}.mpg-fin-profile-link{text-decoration:none;background:#eef5ff;color:#0b5fab;border-radius:11px;padding:8px 10px;font-weight:900;font-size:9px}
.mpg-fin-status-visuals{display:grid;grid-template-columns:1fr 1.2fr;gap:9px;margin:10px 0 12px}.mpg-donut-card,.mpg-bars-card{background:#fff;border:1px solid #dce5ef;border-radius:18px;padding:14px}
.mpg-donut-card{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:14px}.mpg-donut{--a:calc(var(--approved)*3.6deg);--p:calc(var(--pending)*3.6deg);width:132px;height:132px;border-radius:50%;background:conic-gradient(#38a865 0 var(--a),#f0b23f var(--a) calc(var(--a) + var(--p)),#eb7f42 calc(var(--a) + var(--p)) 360deg);position:relative;margin:auto}.mpg-donut:after{content:"";position:absolute;inset:18px;background:#fff;border-radius:50%}.mpg-donut>span{position:absolute;inset:0;z-index:2;display:grid;place-content:center;text-align:center}.mpg-donut>span b{font-size:24px;color:#102958}.mpg-donut>span small{font-size:8px;color:#7b879a}
.mpg-donut-legend{display:grid;gap:8px}.mpg-donut-legend span{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px;font-size:10px;color:#2a3f62}.mpg-donut-legend i{width:9px;height:9px;border-radius:50%}.mpg-donut-legend i.approved{background:#38a865}.mpg-donut-legend i.pending{background:#f0b23f}.mpg-donut-legend i.returned{background:#eb7f42}
.mpg-bars-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.mpg-bars-title b,.mpg-bars-title small{display:block}.mpg-bars-title b{font-size:14px}.mpg-bars-title small{font-size:8px;color:#7b879a;margin-top:2px}.mpg-bar-row{display:grid;grid-template-columns:95px 1fr 28px;align-items:center;gap:8px;margin:10px 0}.mpg-bar-row>span{font-size:9px;color:#54647d}.mpg-bar-row>i{height:10px;background:#edf2f8;border-radius:999px;overflow:hidden}.mpg-bar-row>i b{display:block;height:100%;background:#38a865;border-radius:999px}.mpg-bar-row.pending>i b{background:#f0b23f}.mpg-bar-row.returned>i b{background:#eb7f42}.mpg-bar-row strong{font-size:11px;color:#102958}
.mpg-fin-live-strip{grid-template-columns:repeat(4,1fr)!important}

@media(max-width:700px){
 .mpg-fin-welcome{padding:9px 10px;border-radius:14px}.mpg-fin-welcome-avatar{width:46px;height:46px;font-size:18px}.mpg-fin-welcome-user h2{font-size:15px}.mpg-fin-welcome-user p{font-size:7.5px}.mpg-fin-profile-link{padding:7px 8px;font-size:8px}
 .mpg-fin-status-visuals{grid-template-columns:1fr}.mpg-donut-card{grid-template-columns:118px 1fr;padding:10px}.mpg-donut{width:105px;height:105px}.mpg-donut:after{inset:15px}.mpg-donut>span b{font-size:19px}.mpg-bars-card{padding:10px}.mpg-bar-row{grid-template-columns:86px 1fr 24px;margin:8px 0}.mpg-fin-live-strip{grid-template-columns:1fr 1fr!important}
}

/* v0.8.4 — immutable originals + supplementary correction */
.mpg-original-reference{background:#f8fafc;border:1px solid #d8e1ec;border-radius:16px;padding:12px;margin-bottom:13px}
.mpg-original-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.mpg-original-title b,.mpg-original-title small{display:block}.mpg-original-title b{font-size:12px;color:#17345e}.mpg-original-title small{font-size:8px;color:#7b8799;margin-top:2px}.mpg-original-title>span{background:#eef2f6;color:#677589;border-radius:999px;padding:6px 9px;font-size:9px}
.mpg-original-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.mpg-original-grid>div{background:#fff;border:1px solid #e0e7ef;border-radius:11px;padding:9px}.mpg-original-grid small,.mpg-original-grid b{display:block}.mpg-original-grid small{font-size:8px;color:#7c8798}.mpg-original-grid b{font-size:12px;color:#1a3358;margin-top:3px}.mpg-original-reason{background:#fff;border-radius:11px;padding:9px;margin-top:7px}.mpg-original-reason small{font-size:8px;color:#7b8799}.mpg-original-reason p{margin:4px 0 0;font-size:10px}
.mpg-supplement-head{background:#eef6ff;border-radius:12px;padding:10px}.mpg-supplement-head b,.mpg-supplement-head small{display:block}.mpg-supplement-head b{font-size:11px;color:#0c4f99}.mpg-supplement-head small{font-size:8px;color:#6f7f96;margin-top:3px;line-height:1.5}
.mpg-supplement-form input,.mpg-supplement-form textarea{background:#fff}
.mpg-fin-original-banner{margin:12px 0;background:#f1f5f9;color:#5f6f83;border-radius:11px;padding:9px 10px;font-size:9px;font-weight:800}
.mpg-fin-supplement{margin:12px 0;background:#fff9ed;border:1px solid #f0ddb8;border-radius:14px;padding:11px}.mpg-fin-supplement-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.mpg-fin-supplement-grid>div{background:#fff;border-radius:10px;padding:8px}.mpg-fin-supplement-grid small,.mpg-fin-supplement-grid b{display:block}.mpg-fin-supplement-grid small{font-size:8px;color:#8b714a}.mpg-fin-supplement-grid b{font-size:11px;margin-top:3px}.mpg-fin-supplement-note{background:#fff;border-radius:10px;padding:8px;margin-top:7px}.mpg-fin-supplement-note small{font-size:8px;color:#8b714a}.mpg-fin-supplement-note p{margin:4px 0 0;font-size:10px;line-height:1.6}.mpg-fin-supplement-meta{display:block;margin-top:8px;color:#8a744f;font-size:8px}
@media(max-width:700px){
 .mpg-original-grid{grid-template-columns:1fr 1fr}.mpg-fin-supplement-grid{grid-template-columns:1fr}
}

/* v0.8.5 — stable ticket shifts table */
.mpg-shift-table-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
.mpg-shift-table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}
.mpg-shift-table th,.mpg-shift-table td{vertical-align:middle!important;box-sizing:border-box!important;overflow:hidden!important}
.mpg-shift-table th:nth-child(1),.mpg-shift-table td:nth-child(1){width:18%!important}
.mpg-shift-table th:nth-child(2),.mpg-shift-table td:nth-child(2){width:28%!important}
.mpg-shift-table th:nth-child(3),.mpg-shift-table td:nth-child(3){width:20%!important}
.mpg-shift-table th:nth-child(4),.mpg-shift-table td:nth-child(4),
.mpg-shift-table th:nth-child(5),.mpg-shift-table td:nth-child(5){width:17%!important}
.mpg-shift-table td strong,.mpg-shift-table td b,.mpg-shift-table td small{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.mpg-shift-table td:nth-child(2) strong{display:block;white-space:normal;line-height:1.45}
.mpg-shift-table td:nth-child(3) b,.mpg-shift-table td:nth-child(3) small{display:block;white-space:nowrap}
.mpg-shift-table td:nth-child(4),.mpg-shift-table td:nth-child(5){white-space:nowrap}
.mpg-status-cell{text-align:center!important}
.mpg-status-cell .mpg-shift-status{display:inline-flex!important;max-width:100%;white-space:normal!important;line-height:1.35;text-align:center;justify-content:center}
.mpg-desktop-review-result{min-height:17px;margin-top:5px}
.mpg-desktop-review-result small{display:block!important;font-size:8px!important;line-height:1.35!important;color:#557064!important;white-space:normal!important}
.mpg-status-cell .mpg-correct-link{margin:5px auto 0!important;display:inline-flex!important}

@media(max-width:900px){
  .mpg-shift-table-wrap{display:none!important}
  .mpg-shift-mobile-list{display:grid!important;gap:8px!important}
}
@media(min-width:901px){
  .mpg-shift-mobile-list{display:none!important}
}

/* v0.8.6 — report/archive advanced filters */
.mpg-fin-filter{display:grid!important;grid-template-columns:repeat(6,minmax(130px,1fr));gap:8px!important;align-items:end;margin-bottom:12px}
.mpg-filter-field{min-width:0}.mpg-filter-field label{display:block;font-size:8px;font-weight:900;color:#65758d;margin-bottom:4px}
.mpg-fin-filter select,.mpg-fin-filter input{width:100%!important;min-height:42px!important;background:#fff!important;border:1px solid #d6e1ed!important;border-radius:11px!important;padding:8px 9px!important;font-family:inherit!important}
.mpg-filter-field.search{grid-column:span 2}
.mpg-filter-actions{display:flex;gap:6px;align-items:center}
.mpg-filter-actions button,.mpg-filter-actions a{min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:11px;padding:0 13px;font-size:9px;font-weight:900;text-decoration:none}
.mpg-filter-actions button{border:0;background:linear-gradient(90deg,#087fe7,#0a428d);color:#fff;cursor:pointer}.mpg-filter-actions a{border:1px solid #d8e2ed;background:#fff;color:#607089}
.mpg-active-filter-summary{display:flex;flex-wrap:wrap;gap:6px;margin:5px 0 12px}.mpg-active-filter-summary span{background:#f2f6fb;border-radius:999px;padding:6px 9px;font-size:8px;color:#66758b}
.mpg-fin-report-stats{grid-template-columns:repeat(4,1fr)!important}
.mpg-archive-status{display:inline-flex;padding:5px 7px;border-radius:999px;font-size:8px;font-weight:900;white-space:nowrap}
.mpg-archive-status.approved{background:#e7f7ed;color:#26754b}.mpg-archive-status.submitted{background:#fff2d9;color:#93600c}.mpg-archive-status.returned{background:#fff0df;color:#965b0d}.mpg-archive-status.open{background:#e7f1ff;color:#0a62bd}
.mpg-archive-mobile{display:none}
@media(max-width:900px){
 .mpg-fin-filter{grid-template-columns:1fr 1fr!important}.mpg-filter-field.search{grid-column:1/-1}.mpg-filter-actions{grid-column:1/-1}.mpg-filter-actions button,.mpg-filter-actions a{flex:1}
 .mpg-archive-table{display:none!important}.mpg-archive-mobile{display:grid;gap:8px}.mpg-archive-mobile article{background:#fff;border:1px solid #dce5ef;border-radius:13px;padding:10px}.mpg-archive-mobile .top{display:flex;justify-content:space-between;gap:8px;align-items:center}.mpg-archive-mobile>article>small{display:block;color:#7a879b;font-size:8px;margin:5px 0 8px}.mpg-archive-mobile .money{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.mpg-archive-mobile .money span{background:#f5f8fc;border-radius:8px;padding:6px;font-size:7px;color:#7a879b}.mpg-archive-mobile .money b{display:block;color:#152d52;font-size:10px;margin-top:2px}
 .mpg-fin-report-stats{grid-template-columns:1fr 1fr!important}
}
@media(max-width:520px){
 .mpg-fin-filter{grid-template-columns:1fr!important}.mpg-filter-field.search,.mpg-filter-actions{grid-column:1}.mpg-fin-report-stats{grid-template-columns:1fr!important}
}

/* v0.8.7 — admin/finance parity */
.mpg-admin-home{max-width:1200px;margin:0 auto}.mpg-admin-hero{min-height:155px;background:linear-gradient(135deg,#08255e,#0b58a9);border-radius:24px;padding:24px;display:flex;justify-content:space-between;align-items:center;color:#fff;overflow:hidden;position:relative;margin:10px 0 12px}.mpg-admin-hero:before,.mpg-admin-hero:after{content:"";position:absolute;border-radius:50%;border:25px solid rgba(255,255,255,.055)}.mpg-admin-hero:before{width:220px;height:220px;right:25%;top:-130px}.mpg-admin-hero:after{width:160px;height:160px;left:-65px;bottom:-95px}.mpg-admin-hero h2,.mpg-admin-hero p,.mpg-admin-hero .mpg-kicker{color:#fff!important;position:relative;z-index:2}.mpg-admin-hero h2{font-size:30px;margin:5px 0}.mpg-admin-hero p{margin:0;color:#dcecff!important}.mpg-admin-hero-icon{font-size:58px;position:relative;z-index:2}
.mpg-admin-modules{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0}.mpg-admin-module{background:#fff;border:1px solid #dce5ef;border-radius:17px;min-height:100px;padding:13px;text-decoration:none;color:#112c59;display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center}.mpg-admin-module>span{font-size:23px}.mpg-admin-module b,.mpg-admin-module small{display:block}.mpg-admin-module b{font-size:12px}.mpg-admin-module small{font-size:8px;color:#7a879b;margin-top:3px}.mpg-admin-module strong{font-size:18px}.mpg-admin-module.primary{background:linear-gradient(135deg,#0a7ce4,#0a3b84);border:0;color:#fff}.mpg-admin-module.primary small{color:#dcecff}
.mpg-admin-status-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.mpg-admin-status-strip>div{background:#f7fafe;border-radius:13px;padding:10px;display:grid;grid-template-columns:auto 1fr auto;gap:7px;align-items:center}.mpg-admin-status-strip i,.mpg-collector-card .counts i{width:9px;height:9px;border-radius:50%}.mpg-admin-status-strip i.open,.mpg-collector-card .counts i.open{background:#65ad58}.mpg-admin-status-strip i.pending,.mpg-collector-card .counts i.pending{background:#efb441}.mpg-admin-status-strip i.returned,.mpg-collector-card .counts i.returned{background:#e97a3a}.mpg-admin-status-strip i.approved{background:#48a8e7}.mpg-admin-status-strip span{font-size:9px;color:#738198}.mpg-admin-status-strip b{font-size:15px}
.mpg-collector-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.mpg-collector-card{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"avatar id" "counts counts" "open open";gap:8px;background:#fff;border:1px solid #dce5ef;border-radius:16px;padding:12px;text-decoration:none;color:#152f58}.mpg-collector-card.archived{opacity:.62}.mpg-collector-avatar{grid-area:avatar;width:52px;height:52px;border-radius:50%;overflow:hidden;background:#eaf2fc;display:grid;place-items:center;font-weight:900}.mpg-collector-avatar img{width:100%;height:100%;object-fit:cover}.mpg-collector-card .identity{grid-area:id}.mpg-collector-card .identity b,.mpg-collector-card .identity small,.mpg-collector-card .identity em{display:block}.mpg-collector-card .identity small{font-size:8px;color:#7a879b;margin-top:2px}.mpg-collector-card .identity em{font-size:8px;color:#2f8a59;font-style:normal;margin-top:4px}.mpg-collector-card .counts{grid-area:counts;display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.mpg-collector-card .counts span{background:#f5f8fc;border-radius:9px;padding:7px;font-size:8px;display:flex;align-items:center;gap:5px}.mpg-collector-card>strong{grid-area:open;color:#0b65bd;font-size:9px}
.mpg-collector-head{display:flex;align-items:center;gap:12px}.mpg-collector-head>div:nth-child(2){flex:1}.mpg-collector-head h2{margin:4px 0}.mpg-collector-head p{margin:0;color:#748198;font-size:9px}.mpg-collector-active-title{margin:16px 0 8px}.mpg-collector-active-title h3{margin:0}.mpg-collector-active-title p{margin:2px 0;color:#758298;font-size:9px}.mpg-collector-shifts{display:grid;gap:8px}.mpg-collector-shifts article{border:1px solid #dee7f0;border-radius:13px;padding:10px}.mpg-collector-shifts .top{display:flex;justify-content:space-between;align-items:center}.mpg-collector-shifts article>small{display:block;color:#76839a;font-size:8px;margin:5px 0}.mpg-collector-shifts .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.mpg-collector-shifts .stats span{background:#f5f8fc;padding:6px;border-radius:8px;font-size:7px}.mpg-collector-shifts .stats b{display:block;font-size:10px}.mpg-collector-shifts article>a{display:block;margin-top:7px;background:#0b66c3;color:#fff;text-decoration:none;text-align:center;border-radius:9px;padding:8px;font-size:9px;font-weight:900}
.mpg-create-account{border:1px solid #dce5ef;border-radius:14px;margin-bottom:10px;background:#f8fbff}.mpg-create-account summary{cursor:pointer;padding:11px;font-weight:900;color:#0b5fab}.mpg-create-account form{padding:0 11px 11px}.mpg-account-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.mpg-account-cards>article{border:1px solid #dee6ef;border-radius:14px;padding:10px;display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center}.mpg-account-avatar{width:46px;height:46px;border-radius:50%;overflow:hidden;background:#eaf2fc;display:grid;place-items:center}.mpg-account-avatar img{width:100%;height:100%;object-fit:cover}.mpg-account-cards .main b,.mpg-account-cards .main small,.mpg-account-cards .main span{display:block}.mpg-account-cards .main small,.mpg-account-cards .main span{font-size:8px;color:#77849a;margin-top:2px}.mpg-account-cards>article>em{font-style:normal;font-size:8px;border-radius:999px;padding:5px 7px}.mpg-account-cards>article>em.active{background:#e8f7ee;color:#26764b}.mpg-account-cards>article>em.archived{background:#eef1f4;color:#687589}.mpg-account-action{grid-column:1/-1}
.mpg-subpage-actions{max-width:1200px;margin:10px auto 8px;display:flex;gap:7px;justify-content:flex-start}.mpg-subpage-actions a,.mpg-subpage-actions button{border:1px solid #d7e1ec;background:#fff;color:#0b5eae;border-radius:10px;padding:8px 10px;text-decoration:none;font-family:inherit;font-weight:900;font-size:9px;cursor:pointer}.mpg-subpage-actions.bottom{margin-top:10px;margin-bottom:22px}.mpg-avatar-upload{position:relative}.mpg-avatar-upload input[type=file]{position:absolute;opacity:0;width:1px;height:1px}.mpg-avatar-upload>span{display:flex;align-items:center;justify-content:center;min-height:48px;background:#eef6ff;border:1px dashed #9fc3e9;border-radius:11px;color:#0a5dae;font-weight:900;cursor:pointer;margin-top:5px}.mpg-avatar-upload small{display:block;margin-top:4px;font-size:8px;color:#7a879b}
@media(max-width:900px){.mpg-admin-modules{grid-template-columns:1fr 1fr}.mpg-collector-grid,.mpg-account-cards{grid-template-columns:1fr}}
@media(max-width:600px){.mpg-admin-hero{min-height:120px;padding:15px;border-radius:18px}.mpg-admin-hero h2{font-size:21px}.mpg-admin-hero p{font-size:8px}.mpg-admin-hero-icon{font-size:36px}.mpg-admin-modules{grid-template-columns:1fr 1fr;gap:6px}.mpg-admin-module{min-height:74px;padding:8px;border-radius:13px}.mpg-admin-module>span{font-size:18px}.mpg-admin-module b{font-size:9px}.mpg-admin-module small{font-size:7px}.mpg-admin-status-strip{grid-template-columns:1fr 1fr}.mpg-collector-card .counts{grid-template-columns:1fr 1fr 1fr}.mpg-subpage-actions{padding:0 6px}.mpg-subpage-actions a,.mpg-subpage-actions button{flex:1;text-align:center}}

/* v0.8.8 — premium compact chat workspace */
.mpg-chat-toolbar{max-width:1200px;margin:10px auto 8px;display:flex;align-items:center;justify-content:space-between;gap:10px}.mpg-chat-toolbar>div{display:flex;gap:7px}.mpg-chat-toolbar a,.mpg-chat-toolbar button{border:1px solid #d8e2ed;background:#fff;color:#0b5dac;border-radius:10px;padding:8px 11px;text-decoration:none;font:900 9px Cairo,sans-serif;cursor:pointer}.mpg-chat-toolbar>span{font-size:9px;color:#718096}
.mpg-chat-workspace{max-width:1200px;height:calc(100vh - 225px);min-height:520px;margin:0 auto;display:grid;grid-template-columns:300px minmax(0,1fr);direction:rtl;background:#fff;border:1px solid #dbe5ef;border-radius:22px;overflow:hidden;box-shadow:0 14px 40px rgba(14,51,102,.08)}
.mpg-chat-sidebar{min-width:0;background:#fff;border-left:1px solid #e1e9f1;display:flex;flex-direction:column;overflow:hidden}.mpg-chat-sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:15px 15px 10px}.mpg-chat-sidebar-head h2{margin:3px 0 1px;font-size:20px;color:#101f3d}.mpg-chat-sidebar-head p{margin:0;font-size:8px;color:#8190a4}.mpg-chat-side-icon{width:38px;height:38px;border-radius:12px;background:#edf5ff;display:grid;place-items:center}
.mpg-chat-search{margin:0 12px 10px;height:40px;border:1px solid #dce6f0;border-radius:11px;background:#f8fbff;display:flex;align-items:center;gap:6px;padding:0 10px}.mpg-chat-search span{color:#7c8ba0}.mpg-chat-search input{border:0!important;outline:0!important;background:transparent!important;width:100%;height:100%;font-family:Cairo,sans-serif;font-size:9px}
.mpg-chat-contact-list{display:block!important;margin:0!important;max-height:none!important;overflow-y:auto!important;padding:0 8px 10px}.mpg-chat-contact{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;gap:9px!important;align-items:center!important;min-width:0!important;padding:9px!important;margin:2px 0;border:1px solid transparent!important;border-radius:13px!important}.mpg-chat-contact:hover,.mpg-chat-contact.active{background:#eef6ff!important;border-color:#d5e6f8!important}.mpg-chat-avatar{width:44px!important;height:44px!important;border-radius:50%!important;overflow:hidden!important;background:linear-gradient(135deg,#0c8cf3,#073372)!important;color:#fff!important;display:grid!important;place-items:center!important;font-weight:900}.mpg-chat-avatar img{width:100%;height:100%;object-fit:cover}.mpg-chat-contact-main{min-width:0}.mpg-chat-contact-line{display:flex;justify-content:space-between;gap:6px;align-items:center}.mpg-chat-contact-line b{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mpg-chat-contact-line time{font-size:7px;color:#9aa6b5;direction:ltr}.mpg-chat-contact-main small{display:block;font-size:7.5px!important;color:#74849a!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mpg-chat-contact-main em{display:block;font-style:normal;font-size:7.5px;color:#9aa5b5;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mpg-contact-unread{min-width:19px;height:19px;border-radius:999px;background:#e63b45;color:#fff;font-style:normal;font-size:8px;display:grid;place-items:center}
.mpg-chat-thread{min-width:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;background:#f7faff!important;overflow:hidden!important}.mpg-thread-head{flex:0 0 auto;padding:11px 16px!important;background:#fff;border-bottom:1px solid #e0e8f1!important;display:grid!important;grid-template-columns:auto auto 1fr auto!important;gap:9px!important;align-items:center!important}.mpg-thread-avatar{width:43px;height:43px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#0d8bf1,#073573);color:#fff;display:grid;place-items:center;font-weight:900}.mpg-thread-avatar img{width:100%;height:100%;object-fit:cover}.mpg-thread-person{min-width:0}.mpg-thread-person b{display:block;font-size:11px;color:#13284a}.mpg-thread-person small{display:block;font-size:8px;color:#7f8ca0;margin-top:2px}.mpg-online-dot{display:flex!important;align-items:center;gap:5px;color:#30985b!important;font-size:8px!important}.mpg-online-dot i{width:7px;height:7px;border-radius:50%;background:#43b36d}.mpg-chat-mobile-back{display:none;border:0;background:#edf5ff;color:#0a58a8;width:34px;height:34px;border-radius:10px;font-weight:900}
.mpg-thread-messages{flex:1!important;min-height:0!important;overflow-y:auto!important;background:linear-gradient(180deg,#f5f9fe,#f1f6fc)!important;padding:15px 18px!important;display:flex!important;flex-direction:column!important;gap:7px!important;scroll-behavior:smooth}.mpg-thread-msg{max-width:min(72%,540px)!important;padding:9px 11px!important;border-radius:15px!important;box-shadow:0 2px 6px rgba(20,50,90,.03)}.mpg-thread-msg.mine{align-self:flex-start!important;background:#dcecff!important;border:1px solid #c4dcfa!important;border-bottom-left-radius:5px!important}.mpg-thread-msg.theirs{align-self:flex-end!important;background:#fff!important;border:1px solid #dde6ef!important;border-bottom-right-radius:5px!important}.mpg-thread-msg>div{font-size:10px;line-height:1.7;color:#172b4c;word-break:break-word}.mpg-thread-msg small{font-size:7px!important;color:#8491a4!important;margin-top:2px!important;direction:ltr}.mpg-thread-start{margin:auto;text-align:center;color:#748399}.mpg-thread-start>span{display:grid;place-items:center;width:58px;height:58px;border-radius:50%;background:#e8f3ff;margin:0 auto 7px;font-size:25px}.mpg-thread-start b,.mpg-thread-start small{display:block}.mpg-thread-start b{font-size:13px;color:#18355f}.mpg-thread-start small{font-size:8px;margin-top:3px}
.mpg-thread-form{flex:0 0 auto!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding:9px 11px!important;background:#fff!important;border-top:1px solid #dfe7f0!important}.mpg-thread-form textarea{min-height:44px!important;max-height:120px!important;border:1px solid #d4dfeb!important;border-radius:14px!important;padding:11px 12px!important;resize:none!important;outline:none;font-family:Cairo,sans-serif;font-size:10px;line-height:1.6;background:#fafdff}.mpg-thread-form textarea:focus{border-color:#87bced!important;box-shadow:0 0 0 3px rgba(41,137,226,.08)}.mpg-thread-form button{min-width:82px!important;height:44px!important;align-self:end!important;border:0!important;background:linear-gradient(135deg,#0c83e9,#083c85)!important;color:#fff!important;border-radius:13px!important;padding:0 13px!important;font-weight:900!important;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer}.mpg-thread-form button b{font-size:13px;transform:rotate(180deg)}.mpg-thread-form.sending button{opacity:.65;pointer-events:none}.mpg-chat-bottom-home{max-width:1200px;margin:8px auto 20px}.mpg-chat-bottom-home a{display:inline-flex;background:#fff;border:1px solid #d8e2ed;color:#0a5cac;text-decoration:none;border-radius:10px;padding:8px 11px;font-size:9px;font-weight:900}
@media(max-width:800px){
 .mpg-app-nav{margin-bottom:6px!important}.mpg-chat-toolbar{padding:0 6px;margin:7px auto 6px}.mpg-chat-toolbar>span{display:none}.mpg-chat-toolbar a,.mpg-chat-toolbar button{padding:7px 8px;font-size:8px}.mpg-chat-workspace{height:calc(100dvh - 185px)!important;min-height:480px!important;margin:0 7px!important;border-radius:18px!important;display:block!important;position:relative}.mpg-chat-sidebar{height:100%;border:0!important}.mpg-chat-sidebar-head{padding:13px 12px 8px}.mpg-chat-sidebar-head h2{font-size:19px}.mpg-chat-contact-list{padding:0 7px 8px}.mpg-chat-contact{min-width:0!important}.mpg-chat-workspace .mpg-chat-thread{display:none!important;position:absolute;inset:0;z-index:4}.mpg-chat-workspace.has-target .mpg-chat-sidebar{display:none!important}.mpg-chat-workspace.has-target .mpg-chat-thread{display:flex!important}.mpg-chat-mobile-back{display:grid!important;place-items:center!important}.mpg-thread-head{grid-template-columns:auto auto minmax(0,1fr)!important;padding:9px 10px!important}.mpg-online-dot{display:none!important}.mpg-thread-messages{padding:11px 10px!important}.mpg-thread-msg{max-width:88%!important}.mpg-thread-form{padding:8px!important}.mpg-thread-form button{min-width:58px!important;width:58px!important;padding:0!important}.mpg-thread-form button span{display:none}.mpg-thread-form textarea{font-size:11px}.mpg-chat-bottom-home{display:none}
}

/* v0.8.9 — laptop cleanup + richer chat */
.mpg-app-nav{display:none!important}
@media(min-width:901px){
  .mpg-shell{max-width:1500px!important;margin:0 auto!important}
  .mpg-chat-toolbar{margin-top:12px!important}
  .mpg-chat-workspace{height:calc(100vh - 190px)!important;min-height:610px!important;grid-template-columns:285px minmax(0,1fr)!important}
  .mpg-fin-page{max-width:1180px!important}
  .mpg-collector-grid{grid-template-columns:repeat(auto-fit,minmax(330px,1fr))!important}
  .mpg-collector-card{min-height:125px!important}
}
.mpg-thread-msg{position:relative}
.mpg-thread-msg blockquote{margin:0 0 7px!important;padding:7px 9px!important;border-right:3px solid #5ca4e9!important;border-radius:8px!important;background:rgba(255,255,255,.6)!important;display:block!important}
.mpg-thread-msg blockquote b,.mpg-thread-msg blockquote span{display:block!important}.mpg-thread-msg blockquote b{font-size:8px!important;color:#0d5da7!important}.mpg-thread-msg blockquote span{font-size:8px!important;color:#6f7f94!important;margin-top:2px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mpg-thread-msg footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}.mpg-thread-msg footer small{margin:0!important}.mpg-reply-btn{border:0!important;background:transparent!important;color:#66809e!important;font:700 8px Cairo,sans-serif!important;padding:2px 4px!important;cursor:pointer!important;opacity:.8}.mpg-thread-msg:hover .mpg-reply-btn{opacity:1;color:#0a66bf!important}
.mpg-chat-attachment{display:flex!important;gap:7px;align-items:center;margin-top:7px;padding:7px;border-radius:10px;background:rgba(255,255,255,.7);text-decoration:none;color:#16365e;font-size:8px;font-weight:800}.mpg-chat-attachment.image{display:block!important}.mpg-chat-attachment.image img{display:block;width:min(280px,100%);max-height:210px;object-fit:cover;border-radius:9px;margin-bottom:5px}
.mpg-thread-form{grid-template-columns:auto minmax(0,1fr) auto!important;position:relative!important;align-items:end!important}.mpg-compose-tools{display:flex;gap:4px;align-self:end}.mpg-compose-tool{min-width:38px!important;width:38px!important;height:44px!important;padding:0!important;background:#eef5fd!important;color:#164d86!important;border:1px solid #d7e5f3!important;font-size:17px!important}.mpg-send-btn{grid-column:3!important}.mpg-thread-form textarea{grid-column:2!important;grid-row:1!important}.mpg-compose-tools{grid-column:1!important;grid-row:1!important}
.mpg-emoji-panel{position:absolute;bottom:62px;right:10px;left:auto;z-index:10;width:250px;background:#fff;border:1px solid #dce5ef;border-radius:13px;padding:9px;box-shadow:0 12px 32px rgba(12,45,90,.16);font-size:22px;line-height:1.8;cursor:pointer;user-select:none}
.mpg-file-preview,.mpg-reply-preview{grid-column:1/-1!important;display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:10px;padding:7px 9px;margin-bottom:0}.mpg-file-preview{background:#edf6ff;color:#18568f}.mpg-reply-preview{background:#fff5df;border-right:3px solid #e4a536}.mpg-reply-preview>div{min-width:0}.mpg-reply-preview b,.mpg-reply-preview span{display:block}.mpg-reply-preview b{font-size:8px}.mpg-reply-preview span{font-size:8px;color:#75849a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:500px}.mpg-file-preview button,.mpg-reply-preview button{border:0;background:transparent;color:#66768d;font-size:18px;cursor:pointer;padding:0 4px}
[hidden]{display:none!important}
@media(max-width:900px){
 .mpg-thread-form{grid-template-columns:auto minmax(0,1fr) auto!important;padding:7px!important;gap:5px!important}.mpg-compose-tool{width:34px!important;min-width:34px!important;height:42px!important;font-size:15px!important}.mpg-compose-tools{gap:2px}.mpg-thread-form .mpg-send-btn{width:48px!important;min-width:48px!important;height:42px!important}.mpg-emoji-panel{right:6px;bottom:58px;width:220px;font-size:20px}.mpg-chat-attachment.image img{max-height:180px}
}

/* v0.9.0 finance desktop closure: one clean navigation row, no duplicate finance intro headers */
@media (min-width:901px){
  .mpg-fin-home-compact{margin-top:18px}
  .mpg-fin-home-compact .mpg-fin-modules{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  .mpg-fin-home-compact .mpg-fin-module{min-width:0}
}


/* v0.9.1 — final finance closure: breathing space + single desktop module row */
.mpg-fin-home-compact{padding-top:0}
@media (min-width:901px){
  .mpg-fin-home-compact{margin-top:26px!important}
  .mpg-fin-home-compact .mpg-fin-quick{margin-bottom:12px!important}
  .mpg-fin-home-compact .mpg-fin-status-visuals{margin-top:0!important;margin-bottom:12px!important}
  .mpg-fin-home-compact .mpg-fin-modules{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;margin:12px 0!important}
  .mpg-fin-home-compact .mpg-fin-module{width:auto!important;min-width:0!important;min-height:104px!important;margin:0!important}
  .mpg-fin-home-compact .mpg-fin-live-strip{margin-top:12px!important}
}
@media (max-width:900px){
  .mpg-fin-home-compact{margin-top:14px!important}
}

/* v0.9.2 — restore personal profile access on mobile */
@media(max-width:700px){
  .mpg-topbar{
    position:relative!important;
    min-height:118px!important;
    padding-bottom:46px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link{
    display:flex!important;
    position:absolute!important;
    right:14px!important;
    bottom:8px!important;
    width:auto!important;
    max-width:155px!important;
    min-height:34px!important;
    margin:0!important;
    padding:4px 8px!important;
    gap:6px!important;
    border:1px solid rgba(255,255,255,.24)!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.10)!important;
    box-shadow:none!important;
    color:#fff!important;
    z-index:8!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:28px!important;
    height:28px!important;
    min-width:28px!important;
    border-radius:50%!important;
    display:grid!important;
    place-items:center!important;
    overflow:hidden!important;
    background:#fff!important;
    color:#0b3f87!important;
    font-size:12px!important;
    font-weight:900!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link>div{
    display:block!important;
    min-width:0!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link small,
  .mpg-topbar .mpg-account.mpg-account-link b{
    display:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    display:block!important;
    margin:0!important;
    color:#fff!important;
    font-size:9px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }
}

/* v0.9.3 — refined mobile header identity layout */
@media(max-width:700px){
  .mpg-topbar{
    min-height:126px!important;
    padding:12px 14px 48px!important;
    align-items:flex-start!important;
  }

  /* Main title remains centered and visually dominant */
  .mpg-topbar .mpg-brand{
    margin:0 auto!important;
    max-width:62%!important;
    text-align:center!important;
    align-self:flex-start!important;
  }

  .mpg-topbar .mpg-brand h1{
    font-size:22px!important;
    line-height:1.1!important;
    margin:2px 0 2px!important;
  }

  .mpg-topbar .mpg-brand p{
    font-size:8px!important;
    line-height:1.35!important;
    margin:0!important;
    opacity:.92!important;
  }

  /* Compact account identity integrated into the header, not a pill floating in the middle */
  .mpg-topbar .mpg-account.mpg-account-link{
    display:flex!important;
    position:absolute!important;
    right:18px!important;
    bottom:10px!important;
    width:auto!important;
    max-width:190px!important;
    min-height:32px!important;
    margin:0!important;
    padding:0!important;
    gap:7px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#fff!important;
    text-decoration:none!important;
    z-index:8!important;
    align-items:center!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    border:2px solid rgba(255,255,255,.82)!important;
    border-radius:50%!important;
    background:#fff!important;
    overflow:hidden!important;
    display:grid!important;
    place-items:center!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link>div{
    display:block!important;
    min-width:0!important;
    text-align:right!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link b{
    display:block!important;
    color:#fff!important;
    font-size:9px!important;
    line-height:1.2!important;
    font-weight:800!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    max-width:138px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link small{
    display:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    display:block!important;
    color:rgba(255,255,255,.78)!important;
    font-size:7.5px!important;
    line-height:1.2!important;
    margin-top:2px!important;
    white-space:nowrap!important;
  }

  /* logout remains alone at top-left */
  .mpg-topbar .mpg-logout{
    position:absolute!important;
    left:14px!important;
    top:12px!important;
    z-index:9!important;
  }
}

@media(max-width:390px){
  .mpg-topbar{
    min-height:122px!important;
    padding-bottom:46px!important;
  }
  .mpg-topbar .mpg-brand{
    max-width:58%!important;
  }
  .mpg-topbar .mpg-brand h1{
    font-size:20px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link{
    right:14px!important;
    max-width:170px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link b{
    max-width:120px!important;
  }
}

/* v0.9.4 — final compact mobile header */
@media(max-width:700px){
  .mpg-topbar{
    min-height:88px!important;
    height:auto!important;
    padding:10px 12px!important;
    display:grid!important;
    grid-template-columns:88px 1fr 72px!important;
    align-items:center!important;
    gap:8px!important;
    position:relative!important;
  }

  .mpg-topbar .mpg-logout{
    position:static!important;
    grid-column:1!important;
    grid-row:1!important;
    justify-self:start!important;
    align-self:start!important;
    margin:0!important;
    z-index:auto!important;
  }

  .mpg-topbar .mpg-brand{
    grid-column:2!important;
    grid-row:1!important;
    position:static!important;
    margin:0!important;
    max-width:none!important;
    width:100%!important;
    text-align:center!important;
    justify-self:center!important;
    align-self:center!important;
  }

  .mpg-topbar .mpg-brand h1{
    margin:0 0 2px!important;
    font-size:21px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }

  .mpg-topbar .mpg-brand p{
    margin:0!important;
    font-size:7.2px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    opacity:.9!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link{
    grid-column:3!important;
    grid-row:1!important;
    position:static!important;
    width:64px!important;
    max-width:64px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:3px!important;
    align-items:center!important;
    justify-content:center!important;
    justify-self:end!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
    text-decoration:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    border:2px solid rgba(255,255,255,.88)!important;
    border-radius:50%!important;
    background:#fff!important;
    display:grid!important;
    place-items:center!important;
    overflow:hidden!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link>div{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    text-align:center!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link b,
  .mpg-topbar .mpg-account.mpg-account-link small{
    display:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    display:block!important;
    margin:0!important;
    color:rgba(255,255,255,.9)!important;
    font-size:6.9px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    text-align:center!important;
  }
}

@media(max-width:390px){
  .mpg-topbar{
    grid-template-columns:82px 1fr 64px!important;
    gap:5px!important;
    min-height:84px!important;
    padding:9px 10px!important;
  }
  .mpg-topbar .mpg-brand h1{
    font-size:19px!important;
  }
  .mpg-topbar .mpg-brand p{
    font-size:6.6px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link{
    width:58px!important;
    max-width:58px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
  }
}

/* v0.9.5 — exact requested mobile header distribution
   RIGHT: profile image + label
   CENTER: logo/title/system description
   LEFT: logout
*/
@media(max-width:700px){
  .mpg-topbar{
    min-height:100px!important;
    padding:10px 12px!important;
    display:grid!important;
    grid-template-columns:78px minmax(0,1fr) 70px!important;
    grid-template-areas:"logout brand account"!important;
    align-items:center!important;
    column-gap:8px!important;
    direction:ltr!important;
    overflow:hidden!important;
  }

  .mpg-topbar .mpg-logout{
    grid-area:logout!important;
    position:static!important;
    justify-self:start!important;
    align-self:center!important;
    margin:0!important;
    max-width:78px!important;
    white-space:nowrap!important;
    direction:rtl!important;
    z-index:auto!important;
  }

  .mpg-topbar .mpg-brand{
    grid-area:brand!important;
    position:static!important;
    justify-self:center!important;
    align-self:center!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    text-align:center!important;
    direction:rtl!important;
  }

  .mpg-topbar .mpg-brand h1{
    margin:0 0 3px!important;
    font-size:21px!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }

  .mpg-topbar .mpg-brand p{
    margin:0!important;
    font-size:7px!important;
    line-height:1.3!important;
    white-space:normal!important;
    max-width:210px!important;
    margin-inline:auto!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link{
    grid-area:account!important;
    position:static!important;
    justify-self:end!important;
    align-self:center!important;
    width:68px!important;
    max-width:68px!important;
    min-width:68px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    text-decoration:none!important;
    direction:rtl!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:50%!important;
    border:2px solid rgba(255,255,255,.9)!important;
    background:#fff!important;
    display:grid!important;
    place-items:center!important;
    overflow:hidden!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link>div{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    text-align:center!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link b,
  .mpg-topbar .mpg-account.mpg-account-link small{
    display:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    display:block!important;
    margin:0!important;
    color:#fff!important;
    opacity:.9!important;
    font-size:7px!important;
    line-height:1.1!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
}

@media(max-width:390px){
  .mpg-topbar{
    min-height:96px!important;
    grid-template-columns:74px minmax(0,1fr) 62px!important;
    column-gap:5px!important;
    padding:9px 9px!important;
  }
  .mpg-topbar .mpg-logout{
    max-width:74px!important;
  }
  .mpg-topbar .mpg-brand h1{
    font-size:19px!important;
  }
  .mpg-topbar .mpg-brand p{
    font-size:6.3px!important;
    max-width:175px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link{
    width:60px!important;
    min-width:60px!important;
    max-width:60px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:35px!important;
    height:35px!important;
    min-width:35px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link em{
    font-size:6.5px!important;
  }
}

/* v0.9.6 — true geometric centering for mobile header */
@media(max-width:700px){
  .mpg-topbar{
    grid-template-columns:76px minmax(0,1fr) 76px!important;
    column-gap:8px!important;
    min-height:96px!important;
    padding:9px 12px!important;
  }

  /* keep left and right zones equal so the center is mathematically centered */
  .mpg-topbar .mpg-logout{
    width:76px!important;
    max-width:76px!important;
    justify-self:start!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link{
    width:76px!important;
    min-width:76px!important;
    max-width:76px!important;
    justify-self:end!important;
  }

  .mpg-topbar .mpg-brand{
    justify-self:stretch!important;
    text-align:center!important;
    padding:0 2px!important;
  }

  .mpg-topbar .mpg-brand h1{
    font-size:21px!important;
    line-height:1.05!important;
    letter-spacing:0!important;
  }

  .mpg-topbar .mpg-brand p{
    font-size:7.6px!important;
    line-height:1.35!important;
    max-width:220px!important;
    opacity:.96!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    font-size:6.8px!important;
  }
}

@media(max-width:390px){
  .mpg-topbar{
    grid-template-columns:70px minmax(0,1fr) 70px!important;
    column-gap:4px!important;
    min-height:92px!important;
    padding:8px 8px!important;
  }

  .mpg-topbar .mpg-logout{
    width:70px!important;
    max-width:70px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link{
    width:70px!important;
    min-width:70px!important;
    max-width:70px!important;
  }

  .mpg-topbar .mpg-brand h1{
    font-size:19px!important;
  }

  .mpg-topbar .mpg-brand p{
    font-size:6.8px!important;
    max-width:180px!important;
  }
}

/* v0.9.7 — FINAL balanced mobile header, no inner boxes */
@media(max-width:700px){
  .mpg-topbar{
    min-height:92px!important;
    padding:9px 12px!important;
    display:grid!important;
    grid-template-columns:78px minmax(0,1fr) 78px!important;
    grid-template-areas:"logout brand account"!important;
    align-items:center!important;
    gap:6px!important;
    direction:ltr!important;
    overflow:hidden!important;
    background:linear-gradient(100deg,#08255e 0%,#0b3f86 55%,#0b58a9 100%)!important;
  }

  .mpg-topbar .mpg-logout{
    grid-area:logout!important;
    position:static!important;
    width:auto!important;
    max-width:78px!important;
    justify-self:start!important;
    align-self:center!important;
    margin:0!important;
    padding:8px 10px!important;
    white-space:nowrap!important;
    direction:rtl!important;
    background:#fff!important;
    color:#0b2f66!important;
    border:0!important;
    border-radius:12px!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-brand{
    grid-area:brand!important;
    position:static!important;
    justify-self:stretch!important;
    align-self:center!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    direction:rtl!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-brand h1{
    margin:0 0 3px!important;
    padding:0!important;
    font-size:21px!important;
    line-height:1.05!important;
    font-weight:900!important;
    color:#fff!important;
    white-space:nowrap!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-brand p{
    margin:0 auto!important;
    padding:0!important;
    max-width:220px!important;
    font-size:7.5px!important;
    line-height:1.25!important;
    color:rgba(255,255,255,.94)!important;
    white-space:normal!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link{
    grid-area:account!important;
    position:static!important;
    justify-self:end!important;
    align-self:center!important;
    width:78px!important;
    min-width:78px!important;
    max-width:78px!important;
    min-height:0!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    direction:rtl!important;
    text-decoration:none!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:50%!important;
    border:2px solid rgba(255,255,255,.9)!important;
    background:#fff!important;
    box-shadow:0 3px 10px rgba(0,0,0,.12)!important;
    overflow:hidden!important;
    display:grid!important;
    place-items:center!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link>div{
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link b,
  .mpg-topbar .mpg-account.mpg-account-link small{
    display:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    opacity:.9!important;
    font-size:6.8px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    text-align:center!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  /* Neutralize any old mobile header child backgrounds introduced by earlier versions */
  .mpg-topbar .mpg-brand *,
  .mpg-topbar .mpg-account.mpg-account-link>div *{
    box-shadow:none!important;
  }
}

@media(max-width:390px){
  .mpg-topbar{
    min-height:90px!important;
    padding:8px 8px!important;
    grid-template-columns:72px minmax(0,1fr) 72px!important;
    gap:4px!important;
  }

  .mpg-topbar .mpg-logout{
    max-width:72px!important;
    padding:7px 8px!important;
    font-size:8px!important;
  }

  .mpg-topbar .mpg-brand h1{
    font-size:19px!important;
  }

  .mpg-topbar .mpg-brand p{
    font-size:6.6px!important;
    max-width:175px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link{
    width:72px!important;
    min-width:72px!important;
    max-width:72px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    font-size:6.3px!important;
  }
}

/* v0.9.8 — Mobile header: exactly three equal sections
   RTL visual order:
   RIGHT  = account/profile
   CENTER = Marina logo + financial manager title/details
   LEFT   = logout
*/
@media (max-width:700px){
  .mpg-topbar{
    min-height:104px!important;
    padding:8px 10px!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-areas:"logout brand account"!important;
    align-items:stretch!important;
    gap:0!important;
    direction:ltr!important;
    overflow:hidden!important;
  }

  .mpg-topbar .mpg-logout{
    grid-area:logout!important;
    justify-self:start!important;
    align-self:center!important;
    position:static!important;
    margin:0!important;
    width:auto!important;
    max-width:96%!important;
    padding:8px 9px!important;
    font-size:8px!important;
    line-height:1!important;
    white-space:nowrap!important;
    direction:rtl!important;
    z-index:2!important;
  }

  .mpg-topbar .mpg-brand{
    grid-area:brand!important;
    position:static!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:3px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    direction:rtl!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  /* Marina logo is part of the middle third */
  .mpg-topbar .mpg-brand .mpg-logo,
  .mpg-topbar .mpg-brand img{
    position:static!important;
    width:auto!important;
    height:31px!important;
    max-width:52px!important;
    margin:0 auto 2px!important;
    object-fit:contain!important;
    flex:0 0 auto!important;
  }

  .mpg-topbar .mpg-brand h1{
    margin:0!important;
    padding:0!important;
    font-size:17px!important;
    line-height:1.05!important;
    font-weight:900!important;
    white-space:nowrap!important;
    text-align:center!important;
  }

  .mpg-topbar .mpg-brand p{
    margin:2px auto 0!important;
    padding:0!important;
    width:100%!important;
    max-width:180px!important;
    font-size:6.3px!important;
    line-height:1.2!important;
    white-space:normal!important;
    text-align:center!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link{
    grid-area:account!important;
    position:static!important;
    justify-self:stretch!important;
    align-self:stretch!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:3px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    justify-content:center!important;
    gap:3px!important;
    direction:rtl!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    margin:0 5px 0 0!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link>div{
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    padding:0 3px!important;
    text-align:right!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link b,
  .mpg-topbar .mpg-account.mpg-account-link small{
    display:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    display:block!important;
    margin:0!important;
    padding:0!important;
    font-size:6.7px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    text-align:right!important;
  }
}

@media (max-width:390px){
  .mpg-topbar{
    min-height:100px!important;
    padding:7px 7px!important;
  }
  .mpg-topbar .mpg-brand .mpg-logo,
  .mpg-topbar .mpg-brand img{
    height:28px!important;
    max-width:46px!important;
  }
  .mpg-topbar .mpg-brand h1{font-size:15px!important;}
  .mpg-topbar .mpg-brand p{font-size:5.8px!important;max-width:145px!important;}
  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:35px!important;height:35px!important;min-width:35px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link em{font-size:6.1px!important;}
  .mpg-topbar .mpg-logout{font-size:7.5px!important;padding:7px 8px!important;}
}

/* v0.9.9 — definitive mobile header architecture */
.mpg-mobile-logout{display:none}

/*
  IMPORTANT:
  On mobile the header itself owns exactly THREE equal columns:
  LEFT   = mobile logout
  CENTER = Marina logo + title + subtitle
  RIGHT  = account image + profile label

  The old external logout form is hidden on mobile only.
*/
@media (max-width:900px){
  .mpg-shell > .mpg-logout{
    display:none!important;
  }

  .mpg-topbar{
    box-sizing:border-box!important;
    min-height:104px!important;
    padding:8px 10px!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-areas:"logout brand account"!important;
    align-items:center!important;
    gap:0!important;
    direction:ltr!important;
    overflow:hidden!important;
  }

  /* LEFT THIRD */
  .mpg-topbar .mpg-mobile-logout{
    grid-area:logout!important;
    display:flex!important;
    position:static!important;
    width:100%!important;
    height:100%!important;
    margin:0!important;
    padding:0!important;
    align-items:center!important;
    justify-content:flex-start!important;
    direction:rtl!important;
  }

  .mpg-topbar .mpg-mobile-logout input[type=hidden]{
    display:none!important;
  }

  .mpg-topbar .mpg-mobile-logout button{
    margin:0!important;
    padding:8px 9px!important;
    border:0!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#0b2f66!important;
    font-family:inherit!important;
    font-size:8px!important;
    line-height:1!important;
    font-weight:900!important;
    white-space:nowrap!important;
    box-shadow:none!important;
  }

  /* CENTER THIRD: logo BESIDE title; subtitle under them */
  .mpg-topbar .mpg-brand{
    grid-area:brand!important;
    position:static!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0 3px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    grid-template-areas:
      "logo copy"
      "subtitle subtitle"!important;
    align-content:center!important;
    align-items:center!important;
    justify-content:center!important;
    column-gap:5px!important;
    row-gap:1px!important;
    direction:rtl!important;
    text-align:center!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-brand .mpg-logo-wrap{
    grid-area:logo!important;
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    background:transparent!important;
    border:0!important;
  }

  .mpg-topbar .mpg-brand .mpg-logo-wrap img{
    width:34px!important;
    height:34px!important;
    max-width:34px!important;
    object-fit:contain!important;
    margin:0!important;
  }

  .mpg-topbar .mpg-brand .mpg-brand-copy{
    display:contents!important;
  }

  .mpg-topbar .mpg-brand h1{
    grid-area:copy!important;
    align-self:end!important;
    margin:0!important;
    padding:0!important;
    font-size:16px!important;
    line-height:1.05!important;
    font-weight:900!important;
    color:#fff!important;
    white-space:nowrap!important;
    text-align:center!important;
  }

  .mpg-topbar .mpg-brand p{
    grid-area:subtitle!important;
    margin:2px auto 0!important;
    padding:0!important;
    width:100%!important;
    max-width:190px!important;
    font-size:6.1px!important;
    line-height:1.25!important;
    color:rgba(255,255,255,.95)!important;
    white-space:normal!important;
    text-align:center!important;
  }

  .mpg-topbar .mpg-topmeta{
    display:none!important;
  }

  /* RIGHT THIRD */
  .mpg-topbar .mpg-account.mpg-account-link{
    grid-area:account!important;
    position:static!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-end!important;
    justify-content:center!important;
    gap:3px!important;
    direction:rtl!important;
    text-decoration:none!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    margin:0 5px 0 0!important;
    border:2px solid rgba(255,255,255,.92)!important;
    border-radius:50%!important;
    background:#fff!important;
    overflow:hidden!important;
    display:grid!important;
    place-items:center!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link>div{
    width:auto!important;
    max-width:100%!important;
    margin:0!important;
    padding:0 3px!important;
    text-align:right!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link b,
  .mpg-topbar .mpg-account.mpg-account-link small{
    display:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    font-size:6.7px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    text-align:right!important;
  }
}

@media (max-width:390px){
  .mpg-topbar{
    min-height:100px!important;
    padding:7px 7px!important;
  }
  .mpg-topbar .mpg-mobile-logout button{
    padding:7px 7px!important;
    font-size:7.2px!important;
  }
  .mpg-topbar .mpg-brand{
    column-gap:3px!important;
    padding:0 1px!important;
  }
  .mpg-topbar .mpg-brand .mpg-logo-wrap,
  .mpg-topbar .mpg-brand .mpg-logo-wrap img{
    width:29px!important;
    height:29px!important;
    min-width:29px!important;
    max-width:29px!important;
  }
  .mpg-topbar .mpg-brand h1{
    font-size:14px!important;
  }
  .mpg-topbar .mpg-brand p{
    font-size:5.5px!important;
    max-width:150px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:35px!important;
    height:35px!important;
    min-width:35px!important;
  }
  .mpg-topbar .mpg-account.mpg-account-link em{
    font-size:6px!important;
  }
}


/* v0.9.10 — final mobile header breakpoint + true edge thirds */
@media (max-width:900px){
  .mpg-topbar{
    width:100%!important;
    max-width:none!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)!important;
    grid-template-areas:"logout brand account"!important;
  }
  .mpg-topbar .mpg-mobile-logout{justify-self:stretch!important;justify-content:flex-start!important;}
  .mpg-topbar .mpg-brand{justify-self:stretch!important;}
  .mpg-topbar .mpg-account.mpg-account-link{justify-self:stretch!important;align-items:flex-end!important;}
}

/* v0.9.11 — TRUE THREE THIRDS, fixes RTL flex-start/flex-end inversion */
@media (max-width:900px){

  /* The old outer logout must not participate on mobile/tablet. */
  .mpg-shell > .mpg-logout{
    display:none!important;
  }

  .mpg-topbar{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    min-height:102px!important;
    padding:8px 10px!important;

    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-areas:"logout brand account"!important;
    align-items:center!important;
    gap:0!important;

    /* IMPORTANT: physical left-to-right grid placement. */
    direction:ltr!important;
  }

  /* LEFT 33.33% */
  .mpg-topbar .mpg-mobile-logout{
    grid-area:logout!important;
    display:flex!important;
    width:100%!important;
    height:100%!important;
    position:static!important;
    margin:0!important;
    padding:0!important;

    /* LTR here is intentional: flex-start = physical far left. */
    direction:ltr!important;
    justify-content:flex-start!important;
    align-items:center!important;
    justify-self:stretch!important;
  }

  .mpg-topbar .mpg-mobile-logout button{
    direction:rtl!important;
    margin:0!important;
    padding:8px 10px!important;
    border:0!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#0b2f66!important;
    font-family:inherit!important;
    font-weight:900!important;
    font-size:8px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }

  /* CENTER 33.33% */
  .mpg-topbar .mpg-brand{
    grid-area:brand!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    justify-self:stretch!important;

    width:100%!important;
    height:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0 4px!important;
    gap:6px!important;

    direction:rtl!important;
    text-align:center!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-brand .mpg-logo-wrap{
    flex:0 0 36px!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    margin:0!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
  }

  .mpg-topbar .mpg-brand .mpg-logo-wrap img{
    width:36px!important;
    height:36px!important;
    max-width:36px!important;
    max-height:36px!important;
    margin:0!important;
    object-fit:contain!important;
  }

  /* Cancel the previous display:contents rule. */
  .mpg-topbar .mpg-brand .mpg-brand-copy{
    display:block!important;
    flex:0 1 auto!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    text-align:center!important;
  }

  .mpg-topbar .mpg-brand h1{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    font-size:16px!important;
    line-height:1.08!important;
    font-weight:900!important;
    white-space:nowrap!important;
    text-align:center!important;
  }

  .mpg-topbar .mpg-brand p{
    display:block!important;
    margin:3px 0 0!important;
    padding:0!important;
    max-width:170px!important;
    color:rgba(255,255,255,.95)!important;
    font-size:6.1px!important;
    line-height:1.25!important;
    white-space:normal!important;
    text-align:center!important;
  }

  .mpg-topbar .mpg-topmeta{
    display:none!important;
  }

  /* RIGHT 33.33% */
  .mpg-topbar .mpg-account.mpg-account-link{
    grid-area:account!important;
    display:flex!important;
    flex-direction:column!important;

    width:100%!important;
    height:100%!important;
    min-width:0!important;
    max-width:none!important;
    position:static!important;
    margin:0!important;
    padding:0!important;

    /* LTR here is intentional: flex-end = physical far right. */
    direction:ltr!important;
    align-items:flex-end!important;
    justify-content:center!important;
    justify-self:stretch!important;
    gap:3px!important;

    text-decoration:none!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    margin:0!important;
    border:2px solid rgba(255,255,255,.92)!important;
    border-radius:50%!important;
    background:#fff!important;
    overflow:hidden!important;
    display:grid!important;
    place-items:center!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link>div{
    width:52px!important;
    margin:0 -7px 0 0!important;
    padding:0!important;
    text-align:center!important;
    direction:rtl!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link b,
  .mpg-topbar .mpg-account.mpg-account-link small{
    display:none!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#fff!important;
    font-size:6.6px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    text-align:center!important;
  }
}

@media (max-width:390px){
  .mpg-topbar{
    min-height:98px!important;
    padding:7px 7px!important;
  }

  .mpg-topbar .mpg-mobile-logout button{
    padding:7px 7px!important;
    font-size:7px!important;
  }

  .mpg-topbar .mpg-brand{
    gap:3px!important;
    padding:0 1px!important;
  }

  .mpg-topbar .mpg-brand .mpg-logo-wrap,
  .mpg-topbar .mpg-brand .mpg-logo-wrap img{
    flex-basis:30px!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    max-width:30px!important;
    max-height:30px!important;
  }

  .mpg-topbar .mpg-brand h1{
    font-size:14px!important;
  }

  .mpg-topbar .mpg-brand p{
    font-size:5.4px!important;
    max-width:130px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link .mpg-avatar{
    width:35px!important;
    height:35px!important;
    min-width:35px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link>div{
    width:48px!important;
    margin-right:-6px!important;
  }

  .mpg-topbar .mpg-account.mpg-account-link em{
    font-size:5.9px!important;
  }
}

/* v0.9.12 — ADMIN = FINANCE VISUAL PARITY + ADMIN CAPABILITIES */
@media (min-width:1201px){
  .mpg-fin-home-compact.mpg-admin-parity .mpg-fin-modules.admin-modules{
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:10px!important;
  }
  .mpg-fin-home-compact.mpg-admin-parity .mpg-fin-modules.admin-modules .mpg-fin-module{
    min-width:0!important;
  }
}

@media (min-width:701px) and (max-width:1200px){
  .mpg-fin-home-compact.mpg-admin-parity .mpg-fin-modules.admin-modules{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:9px!important;
  }
}

@media (max-width:700px){
  .mpg-fin-home-compact.mpg-admin-parity .mpg-fin-modules.admin-modules{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
}

/* accounts card remains visually consistent with the manager cards */
.mpg-fin-module.accounts{
  background:#fff!important;
  color:#102958!important;
}
.mpg-fin-module.accounts small{
  color:#7a879c!important;
}

/* v0.9.13 — account creation & finance-manager linkage */
.mpg-account-create-form .mpg-finance-link-field[hidden]{display:none!important}
.mpg-account-create-form .mpg-finance-link-field small{
  display:block;margin-top:6px;color:#7788a5;font-size:11px
}
.mpg-account-warning{
  grid-column:1/-1;
  padding:12px 14px;
  border:1px solid #f3c76b;
  border-radius:12px;
  background:#fff8e9;
  color:#815900;
  font-weight:700
}
.mpg-account-success{
  margin:0 0 14px;
  padding:11px 14px;
  border-radius:12px;
  background:#eaf8ef;
  color:#167842;
  font-weight:800
}
.mpg-linked-finance{
  display:block!important;
  margin-top:6px!important;
  color:#416184!important;
  font-size:12px!important
}
.mpg-linked-finance strong{color:#123e78}

/* v0.9.14 — separate create-account screen */
.mpg-account-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.mpg-new-account-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:12px;background:linear-gradient(135deg,#1488ee,#0d4da4);color:#fff!important;font-weight:900;text-decoration:none!important}
.mpg-account-create-back{max-width:1240px;margin:0 auto 12px;direction:rtl}
.mpg-account-create-back a,.mpg-account-cancel-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border:1px solid #d4dfec;border-radius:12px;background:#fff;color:#0c5eae!important;font-weight:800;text-decoration:none!important}
.mpg-admin-account-new-page{max-width:980px!important}
.mpg-account-create-standalone{margin-top:18px}
.mpg-account-create-actions{grid-column:1/-1;display:flex;justify-content:flex-start;gap:10px;padding-top:8px}
.mpg-account-create-actions .primary{min-width:180px}
@media(max-width:700px){.mpg-account-head-actions{width:100%;justify-content:space-between}.mpg-new-account-btn{flex:1}.mpg-account-create-actions{display:grid;grid-template-columns:1fr 1fr}.mpg-account-create-actions .primary,.mpg-account-cancel-btn{width:100%;min-width:0}}

/* v0.9.16 — action/emoji/filter polish */
.mpg-ticket-actions{max-width:1200px;margin:12px auto -2px;display:flex;justify-content:flex-start;gap:9px}
.mpg-ticket-chat-btn,.mpg-notify-enable{height:44px;border-radius:13px;border:1px solid #d6e3f1;background:#fff;color:#103d75;text-decoration:none;padding:0 14px;display:inline-flex;align-items:center;gap:7px;font:800 11px Cairo,sans-serif;box-shadow:0 5px 18px rgba(22,63,112,.06);position:relative;cursor:pointer}
.mpg-ticket-chat-btn:hover,.mpg-notify-enable:hover{transform:translateY(-1px);border-color:#9fc7ee}.mpg-notify-enable.enabled{background:#eaf8f0;border-color:#b9e4c9;color:#14713a}
.mpg-ticket-chat-btn i{position:absolute;top:-7px;left:-7px;min-width:21px;height:21px;padding:0 5px;border-radius:11px;background:#e63838;color:#fff;display:grid;place-items:center;font-style:normal;font-size:9px}
.mpg-emoji-panel{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;cursor:default}
.mpg-emoji-panel[hidden]{display:none!important}.mpg-emoji-panel button{min-width:0!important;width:100%!important;height:34px!important;padding:0!important;border:0!important;border-radius:8px!important;background:#f5f8fc!important;color:initial!important;font-size:20px!important;display:grid!important;place-items:center!important}
.mpg-emoji-panel button:hover{background:#e8f2fd!important;transform:scale(1.08)}
.mpg-filter-actions{display:flex;gap:7px;align-items:stretch}.mpg-filter-actions button,.mpg-filter-actions a{min-height:42px;border-radius:11px!important;display:inline-flex;align-items:center;justify-content:center;padding:0 14px!important;text-decoration:none;font-weight:900}.mpg-filter-actions a{border:1px solid #d7e2ee;background:#fff;color:#506985}
@media(max-width:900px){.mpg-ticket-actions{margin:9px 7px 0}.mpg-ticket-chat-btn,.mpg-notify-enable{flex:1;justify-content:center;padding:0 8px;font-size:10px}.mpg-emoji-panel{grid-template-columns:repeat(6,1fr)!important;width:230px!important}}

/* v0.9.17 — notification readiness */
.mpg-notify-enable.enabled{background:#e8f7ef!important;border-color:#a8ddbc!important;color:#116d38!important}
