/**
 * Melgab Media Customer Portal
 * File: mm-css-v1.1.txt
 * Version: 1.0
 *
 * Notes:
 * - Central styling for portal UI elements used by mm-portal-* snippets.
 * - Paste as a full overwrite in your central CSS file.
 */

/* ---------- Layout helpers ---------- */
.mm-card,
.mm-login-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.mm-card h2,
.mm-login-card h2,
.mm-login-card__title {
  margin: 0 0 12px 0;
  font-size: 22px;
  line-height: 1.2;
}

.mm-login-card {
  max-width: 520px;
  margin: 0 auto;
}

.mm-input,
#mm-portal-loginform input[type="text"],
#mm-portal-loginform input[type="password"]{
  width: 100%;
  max-width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  box-sizing: border-box;
  font-size: 16px;
}

#mm-portal-loginform label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

#mm-portal-loginform p {
  margin: 0 0 14px 0;
}

.mm-btn,
#mm-portal-loginform input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.mm-btn:hover,
#mm-portal-loginform input[type="submit"]:hover {
  filter: brightness(0.97);
}

.mm-login-links {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.mm-login-links a {
  text-decoration: underline;
}

/* ---------- Messages ---------- */
.mm-msg {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(0,0,0,.03);
}

.mm-msg--error {
  border-color: rgba(220, 38, 38, .25);
  background: rgba(220, 38, 38, .07);
}

/* ---------- Portal nav ---------- */
.mm-portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px 0;
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(8px);
}

.mm-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.mm-nav-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.mm-nav-btn.active {
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.mm-portal-nav__spacer {
  flex: 1 1 auto;
}

.mm-logout-link {
  font-weight: 800;
  text-decoration: underline;
  padding: 10px 6px;
  display: inline-block;
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .mm-nav-label { display: none; }
  .mm-nav-btn { padding: 10px 10px; }
  .mm-login-card { padding: 16px; }
}




/* --- Stage header spacing --- */
.mm-onboarding-stage-row td {
    padding-top: 18px !important;
    border-top: 2px solid #e5e5e5;
    background: #f7f7f7;
    font-weight: 600;
}

/* Add visual gap above stage block */
.mm-onboarding-stage-row:first-child td {
    border-top: none;
}

/* --- Long description full-width row --- */
.mm-onboarding-longdesc-row td {
    background: #fafafa;
    border-bottom: 1px solid #dcdcdc;
    padding: 15px 20px !important;
}

/* Code block styling */
.mm-onboarding-longdesc-row pre {
    background: #f1f1f1;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
}

