/* Month-End Close command centre — Elinom, not a Sage clone. */
.mec-header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; align-items:flex-end; }
.mec-header h1 { margin:0 0 6px; font-size:1.55rem; }
.mec-period-picker label { display:block; font-size:.8rem; margin-bottom:4px; }
.mec-period-picker select { min-height:44px; min-width:220px; border-radius:10px; padding:0 12px; }
.mec-banner { border-radius:12px; padding:12px 14px; margin:0 0 16px; }
.mec-banner-muted { background:#f1f5f9; color:#334155; }
.mec-hero {
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; align-items:center;
  border-radius:18px; padding:24px 28px; color:#fff;
  background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 55%, #4f46e5 100%);
  margin-bottom:18px;
}
.mec-kicker { margin:0; opacity:.85; letter-spacing:.04em; text-transform:uppercase; font-size:.75rem; }
.mec-score { margin:4px 0; font-size:2.1rem; font-weight:700; }
.mec-status { margin:0; font-weight:600; }
.mec-hero-actions { display:flex; flex-wrap:wrap; gap:8px; }
.mec-stats { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); margin-bottom:18px; }
.mec-stat { background:#fff; border:1px solid #e2e8f0; border-radius:14px; padding:14px 16px; }
.mec-stat span { display:block; font-size:.78rem; color:#64748b; }
.mec-stat strong { font-size:1.15rem; }
.mec-grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); }
.mec-card { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:16px 18px; }
.mec-card h2 { margin:0 0 10px; font-size:1.05rem; }
.mec-wide { margin-top:14px; }
.mec-list { list-style:none; margin:0; padding:0; }
.mec-list li { display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px solid #f1f5f9; }
.mec-list a, .mec-link { color:#0f766e; font-weight:600; }
.mec-severity { font-size:.72rem; font-weight:700; text-transform:uppercase; padding:2px 8px; border-radius:999px; }
.mec-severity-critical { background:#fee2e2; color:#991b1b; }
.mec-severity-review { background:#fef3c7; color:#92400e; }
.mec-severity-informational, .mec-severity-info { background:#e0f2fe; color:#075985; }
.mec-note { color:#64748b; font-size:.88rem; }
.mec-steps { margin:0; padding-left:20px; }
.mec-steps li { margin:8px 0; }
.mec-drawer {
  position:fixed; right:160px; bottom:88px; width:min(420px, calc(100vw - 32px));
  background:#0f172a; color:#e2e8f0; border-radius:16px; padding:16px;
  z-index:1090; isolation:isolate;
  box-shadow:0 18px 40px rgba(15,23,42,.45);
  max-height:min(70vh, 520px); overflow:auto;
}
.mec-drawer[hidden] { display:none !important; }
.mec-drawer-head { display:flex; justify-content:space-between; align-items:center; }
.mec-chips { display:flex; flex-wrap:wrap; gap:8px; }
.mec-chips button { min-height:40px; border-radius:999px; border:1px solid #334155; background:#1e293b; color:#fff; padding:0 12px; }
.mec-fab {
  position:fixed; right:160px; bottom:20px; min-height:44px; border-radius:999px;
  border:0; background:#0f766e; color:#fff; padding:0 16px; z-index:1091;
}
@media (max-width: 720px) {
  .mec-hero, .mec-card { padding:16px; }
  .mec-score { font-size:1.7rem; }
  .mec-drawer, .mec-fab { right:12px; left:12px; width:auto; }
  .mec-drawer { bottom:76px; }
  .mec-fab { bottom:16px; }
}
[dir="rtl"] .mec-header, [dir="rtl"] .mec-hero { text-align:right; }
