/* ==========================================================================
   MojoMakes skin for the portal template (Rep Portal / Dealer Portal layout).
   Loaded AFTER styles.css and portal.css. Brand: Brand/BRAND_GUIDE.md.
   Fairway #1E4332 · Pine #2A6F4D · Gold #DA941B · Deep Gold #9A6410 · Ink #15231D
   Linen #FAF8F5 · Sand #F1EEEA · Rule #DAE2DE · Stone #596961
   ========================================================================== */
:root {
  --primary: #1E4332;
  --primary-foreground: #FAF8F5;
  --brand: #DA941B;
  --background: #FAF8F5;
  --card: #FFFFFF;
  --border: #DAE2DE;
  --muted: #F1EEEA;
  --muted-foreground: #596961;
  --mono: #15231D;
  --foreground: #15231D;
  --success: #2A6F4D;
  --success-soft: #E6F1EB;
  --warning: #9A6410;
  --warning-soft: #FBF1DD;
}
.dark {
  --primary: #DA941B;
  --primary-foreground: #15231D;
  --success: #6FC19A;
  --warning: #E8B45A;
}
body { font-family: "Manrope", system-ui, sans-serif; }
.mm-serif, h1#dp_page_title { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.02em; }
h1#dp_page_title { font-size: 1.625rem; }

/* 4px top bar on every page (brand rule) */
body::before {
  content: ''; position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60;
  background: linear-gradient(90deg, #1E4332, #2A6F4D, #DA941B);
}

/* ---- Sidebar: Fairway green, the Mojo script logo on top, links underneath ---- */
.dp-sidebar {
  background: #1E4332 !important;
  border-color: #173628 !important;
  --primary: #DA941B;
}
.dp-sidebar .kt-menu-item.active > .kt-menu-link { background: rgb(250 248 245 / .12); }
.dp-sidebar .kt-menu-link:hover { background: rgb(250 248 245 / .08); }
.dp-sidebar .kt-menu-title { font-size: .9375rem; }
.mm-side-logo { height: auto; padding: 1.75rem 1.5rem .75rem; justify-content: center; }
.mm-side-logo img { width: 9.5rem; height: auto; display: block; }
.mm-side-tag {
  text-align: center; font: 700 .6875rem/1 "Manrope", sans-serif; letter-spacing: .2em; text-transform: uppercase;
  color: rgb(250 248 245 / .6); padding-bottom: .5rem; margin-top: .75rem;
}
.mm-mark { height: 1.75rem; width: auto; display: block; }
.mm-count {
  margin-inline-start: auto; min-width: 1.5rem; padding: .125rem .5rem; border-radius: 999px; text-align: center;
  background: #DA941B; color: #15231D; font-size: .75rem; font-weight: 700; line-height: 1.25rem;
}

/* ---- Login: Fairway page, white card, the Mojo script ---- */
.sp-login.mm-login { background: #1E4332; }
.mm-login .sp-login__card { border-color: #1E4332; box-shadow: 0 8px 40px rgb(0 0 0 / .35); border-radius: 1.25rem; }
.mm-login .sp-login__logo { width: 10rem; }

/* ---- Buttons: pill-shaped (brand rule) ---- */
.kt-btn { border-radius: 999px; }
.kt-btn-primary { background: #1E4332; color: #FAF8F5; }
.kt-btn-primary:hover { background: #173628; }
.mm-btn-gold { background: #DA941B !important; color: #15231D !important; border-color: #DA941B !important; }
.mm-btn-gold:hover { background: #C8861A !important; }
.kt-card { border-radius: 1rem; }

/* ---- Status pills ---- */
.mm-pill {
  display: inline-flex; align-items: center; gap: .3rem; padding: .1875rem .625rem; border-radius: 999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
}
.mm-pill--unfulfilled { background: var(--warning-soft); color: var(--warning); }
.mm-pill--fulfilled { background: var(--success-soft); color: var(--success); }
.mm-pill--test { background: color-mix(in oklch, var(--destructive) 12%, transparent); color: var(--destructive); }
.mm-pill--label { background: var(--muted); color: var(--mono); }

/* ---- Order rows ---- */
.mm-order { padding: 1.125rem 1.25rem; border-bottom: 1px solid var(--border); }
.mm-order:last-child { border-bottom: 0; }
.mm-order__top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.mm-order__who { flex: 1 1 16rem; min-width: 0; }
.mm-order__name { font: 600 1.0625rem/1.3 "Fraunces", Georgia, serif; color: var(--mono); }
.mm-order__meta { font-size: .8125rem; color: var(--muted-foreground); margin-top: .125rem; }
.mm-order__items { font-size: .8125rem; color: var(--secondary-foreground); margin-top: .375rem; }
.mm-order__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.mm-review {
  margin-top: 1rem; padding: 1rem 1.125rem; border: 1px solid var(--border); border-radius: .875rem; background: var(--background);
}
.mm-grid { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.mm-k { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: .3rem; }
.mm-v { font-size: .875rem; color: var(--mono); line-height: 1.45; }
.mm-cost { font: 600 1.75rem/1 "Fraunces", Georgia, serif; color: var(--primary); }
.mm-note { margin-top: .875rem; padding: .625rem .875rem; border-radius: .625rem; font-size: .8125rem; line-height: 1.45; }
.mm-note--ok { background: var(--success-soft); color: var(--success); }
.mm-note--warn { background: var(--warning-soft); color: var(--warning); }
.mm-note--err { background: color-mix(in oklch, var(--destructive) 10%, transparent); color: var(--destructive); }
.mm-confirm {
  margin-top: 1rem; padding: 1rem; border: 2px solid #DA941B; border-radius: .875rem; background: #FFFBF2; font-size: .875rem;
}
.dark .mm-confirm { background: color-mix(in oklch, #DA941B 10%, transparent); }
.mm-check { display: flex; align-items: center; gap: .5rem; margin: .75rem 0; font-size: .875rem; }
.mm-track { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; color: var(--mono); }
.mm-spin { display: inline-block; width: .875rem; height: .875rem; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: mm-spin .7s linear infinite; vertical-align: -2px; margin-inline-end: .375rem; }
@keyframes mm-spin { to { transform: rotate(360deg); } }
.mm-hidden { display: none !important; }
