/* Moptera brand treatment for the operations UI: clear, energetic and practical. */
:root {
  --moptera-green: #86ad43;
  --moptera-navy: #143f69;
  --moptera-ink: #0b2742;
  --moptera-sand: #f5f8ef;
}

body { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }

/* Unfold renders the site logo at h-8 by default. The Moptera mark needs a
   little more room to remain legible in the 64px sidebar header. */
img[alt="Start"] { height: 48px !important; margin-right: .25rem !important; width: auto !important; }

.sidebar-title {
  color: var(--moptera-navy);
  font-weight: 700;
  letter-spacing: .02em;
}

.moptera-dashboard-hero {
  background:
    radial-gradient(circle at 88% 12%, rgb(134 173 67 / 33%), transparent 26%),
    radial-gradient(circle at 6% 100%, rgb(25 94 149 / 26%), transparent 37%),
    linear-gradient(135deg, #0b2742 0%, #143f69 58%, #195e95 100%);
  box-shadow: 0 20px 44px rgb(11 39 66 / 20%);
}

.moptera-dashboard-hero::after {
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 8%));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.moptera-dashboard-hero > div {
  display: flex;
  flex-direction: column;
}

.moptera-logo-panel {
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 12px 32px rgb(0 0 0 / 15%);
}

.moptera-logo-panel img { display: block; margin: auto; }

@media (min-width: 1024px) {
  .moptera-dashboard-hero > div {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .moptera-logo-panel {
    flex: 0 0 235px;
  }
}

.moptera-workflow-card {
  box-shadow: 0 8px 20px rgb(15 23 42 / 5%);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.moptera-workflow-card:hover {
  box-shadow: 0 14px 28px rgb(20 63 105 / 14%);
  transform: translateY(-3px);
}

.moptera-metric-card {
  background: linear-gradient(145deg, #fff, #f8fafc);
  box-shadow: 0 5px 16px rgb(15 23 42 / 4%);
}

.dark .moptera-metric-card {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: 0 5px 16px rgb(0 0 0 / 18%);
  color: #f8fafc;
}

@media (min-width: 1280px) {
  .moptera-metrics-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.moptera-docs-nav { position: sticky; top: 5rem; }
.moptera-docs-nav-link { color: var(--moptera-navy); display: block; line-height: 1.45; padding: .25rem 0; }
.moptera-docs-nav-link:hover { color: var(--moptera-green); text-decoration: underline; }
.moptera-docs-section { scroll-margin-top: 6rem; }
.moptera-docs-note { background: rgb(232 240 218 / 72%); border-left: 4px solid var(--moptera-green); color: var(--moptera-ink); line-height: 1.6; }
.moptera-docs-step { align-items: flex-start; display: flex; gap: 1rem; list-style: none; }
.moptera-docs-step > span { align-items: center; background: var(--moptera-navy); border-radius: 9999px; color: white; display: inline-flex; flex: 0 0 2rem; font-weight: 700; height: 2rem; justify-content: center; margin-top: .15rem; width: 2rem; }
.moptera-docs-step p { color: #475569; line-height: 1.65; margin-top: .3rem; }
.dark .moptera-docs-nav-link { color: #d1e1b5; }
.dark .moptera-docs-note { background: rgb(30 41 59 / 80%); color: #e2e8f0; }
.dark .moptera-docs-step p { color: #cbd5e1; }

.moptera-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: radial-gradient(circle at 50% -18%, #dce9cb 0%, transparent 42%), #f6f8f4;
}

.moptera-login-wrap { width: min(100%, 440px); }
.moptera-login-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.moptera-login-brand img { width: 154px; height: auto; }
.moptera-login-brand span { color: #49647d; font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.moptera-login-card {
  background: #fff;
  border: 1px solid #dfe7dc;
  border-radius: 20px;
  box-shadow: 0 18px 48px rgb(16 45 34 / 10%);
  padding: 2.5rem;
}
.moptera-login-kicker { color: #658535; font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.moptera-login-card-head h1 { color: #142e3f; font-size: 2rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.15; margin-top: .55rem; }
.moptera-login-card-head > p:last-child { color: #607183; font-size: .94rem; line-height: 1.55; margin-top: .65rem; }
.moptera-login-form { margin-top: 2rem; }
.moptera-login-form > div + div { margin-top: 1rem; }
.moptera-login-submit { margin-top: 1.6rem !important; }
.moptera-login-submit button { min-height: 46px; width: 100%; }
.moptera-login-errors { margin-top: 1.4rem; }
.moptera-login-footnote { color: #81908b; font-size: .75rem; margin-top: 1.35rem; text-align: center; }
.dark .moptera-login-shell { background: #111d24; }
.dark .moptera-login-card { background: #1d2a34; border-color: #34444c; }
.dark .moptera-login-card-head h1 { color: #f2f7f3; }

@media (max-width: 480px) {
  .moptera-login-brand { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .moptera-login-card { padding: 1.7rem; }
}

.moptera-product-detail { display: grid; gap: 1.5rem; align-items: start; }
.moptera-product-photo-panel { background: #fff; border: 1px solid #e3e9e3; border-radius: 16px; overflow: hidden; }
.moptera-product-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; color: #213d50; }
.moptera-product-photo-eyebrow { color: #607183; font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.moptera-product-photo-heading strong { font-size: .83rem; font-weight: 700; }
.moptera-product-photo-link { display: grid; place-items: center; min-height: 270px; padding: 1rem; background: #f7f9f6; }
.moptera-product-photo { display: block; max-height: 330px; max-width: 100%; width: auto; object-fit: contain; }
.moptera-product-photo-caption { color: #64748b; font-size: .78rem; padding: .9rem 1.2rem; }
.moptera-product-summary { border-top: 1px solid #e3e9e3; padding: 1.1rem 1.2rem 1.2rem; }
.moptera-product-summary h2 { color: #183448; font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 0 0 .95rem; }
.moptera-product-summary dl { display: grid; gap: .45rem; margin: 0; }
.moptera-product-summary dl > div { display: flex; gap: .5rem; justify-content: space-between; }
.moptera-product-summary dt { color: #64748b; font-size: .78rem; }
.moptera-product-summary dd { color: #263e50; font-size: .8rem; font-weight: 600; margin: 0; text-align: right; }
.moptera-product-odoo-link { align-items: center; border: 1px solid #b9ca9e; border-radius: 8px; color: #526e29; display: flex; font-size: .84rem; font-weight: 700; justify-content: center; margin-top: 1rem; min-height: 38px; padding: .5rem .8rem; text-decoration: none; }
.moptera-product-odoo-link:hover { background: #f1f6e9; color: #3f5c1e; }
.moptera-product-photo-upload { border-top: 1px solid #e3e9e3; display: grid; gap: .65rem; padding: 1.2rem; }
.moptera-product-photo-upload label { color: #213d50; font-size: .88rem; font-weight: 700; }
.moptera-product-photo-upload input { color: #475569; font-size: .82rem; max-width: 100%; }
.moptera-product-photo-warning { background: #fff8e6; border-left: 3px solid #cf9a35; color: #6f521c; font-size: .79rem; line-height: 1.5; padding: .65rem .8rem; }
.moptera-product-photo-upload button { background: #789a42; border-radius: 8px; color: #fff; font-size: .85rem; font-weight: 700; min-height: 40px; padding: .5rem 1rem; }
.moptera-product-photo-upload button:hover { background: #658536; }
.moptera-product-photo-empty { display: grid; min-height: 340px; place-items: center; color: #64748b; background: #f7f9f6; padding: 1.5rem; text-align: center; }
.moptera-product-fields { min-width: 0; }
.dark .moptera-product-photo-panel { background: #1f2937; border-color: #374151; }
.dark .moptera-product-photo-link, .dark .moptera-product-photo-empty { background: #18222c; }
.dark .moptera-product-photo-heading { color: #f8fafc; }
.dark .moptera-product-photo-upload { border-color: #374151; }
.dark .moptera-product-photo-upload label { color: #f8fafc; }
.dark .moptera-product-summary { border-color: #374151; }
.dark .moptera-product-summary h2, .dark .moptera-product-summary dd { color: #f8fafc; }
@media (min-width: 1100px) {
  .moptera-product-detail { grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); }
  .moptera-product-photo-panel { position: sticky; top: 5.75rem; }
}

/* Shared full-width layout for admin workflow forms. */
.moptera-action-page { width: 100%; max-width: none; }
.moptera-action-card { width: 100%; overflow: hidden; background: #fff; border: 1px solid #dfe7e2; border-radius: 18px; box-shadow: 0 14px 38px rgb(11 39 66 / 7%); }
.moptera-action-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding: 2rem 2.25rem; background: linear-gradient(115deg, #f5f9ef, #f7fafc 62%, #edf3f8); border-bottom: 1px solid #e0e9e1; }
.moptera-action-heading { max-width: 850px; }
.moptera-action-kicker { display: block; color: #638436; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .55rem; }
.moptera-action-heading h1 { color: #14344f; font-size: clamp(1.45rem, 2vw, 2rem); font-weight: 750; letter-spacing: -.025em; line-height: 1.2; margin: 0; }
.moptera-action-heading p { color: #53697a; font-size: .94rem; line-height: 1.6; margin: .7rem 0 0; }
.moptera-action-icon { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: #4f762a; background: #e5efd9; font-size: 27px; }
.moptera-action-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 3rem; min-height: 360px; padding: 2.25rem; }
.moptera-action-fields { min-width: 0; max-width: 850px; }
.moptera-action-field-group { padding-top: 1.3rem; margin-top: 1.4rem; border-top: 1px solid #e3ebe6; }
.moptera-action-field-group h2 { color: #23445c; font-size: .92rem; font-weight: 750; margin: 0 0 1.35rem; }
.moptera-action-aside { align-self: start; padding: 1.4rem; color: #526b7c; background: #f5f8f4; border: 1px solid #e2ebdd; border-radius: 13px; font-size: .85rem; line-height: 1.65; }
.moptera-action-aside h2 { color: #23445c; font-size: .9rem; font-weight: 750; margin: 0 0 .55rem; }
.moptera-action-aside p { margin: 0; }
.moptera-action-footer { display: flex; align-items: center; gap: .8rem; padding: 1.25rem 2.25rem; border-top: 1px solid #e6ece9; background: #fbfcfb; }
.moptera-action-progress { color: #476276; font-size: .86rem; font-weight: 600; margin-left: .4rem; }
.moptera-action-spinner { animation: moptera-action-spin .75s linear infinite; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; height: 1em; margin-right: .55em; vertical-align: -.15em; width: 1em; }
@keyframes moptera-action-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .moptera-action-spinner { animation: none; border-right-color: currentColor; } }
.moptera-action-notice { color: #77560e; background: #fff9e7; border: 1px solid #efd999; border-radius: 10px; padding: 1rem 1.15rem; margin-bottom: 1.5rem; line-height: 1.55; }
.moptera-action-notice a { display: inline-block; font-weight: 700; text-decoration: underline; }
.moptera-action-errors:not(.hidden) { padding: 1rem; margin-bottom: 1.5rem; border-radius: 10px; color: #8b2828; background: #fff1f1; border: 1px solid #efc4c4; }
.moptera-action-page [hidden] { display: none !important; }
.dark .moptera-action-card { background: #1f2937; border-color: #394553; box-shadow: 0 14px 38px rgb(0 0 0 / 16%); }
.dark .moptera-action-header { background: linear-gradient(115deg, #24382f, #202e3d 65%, #24384b); border-color: #394b4a; }
.dark .moptera-action-heading h1, .dark .moptera-action-field-group h2, .dark .moptera-action-aside h2 { color: #f1f7f2; }
.dark .moptera-action-heading p, .dark .moptera-action-aside { color: #d1dce3; }
.dark .moptera-action-kicker { color: #b3d67c; }
.dark .moptera-action-icon { color: #cbe6a6; background: #35543a; }
.dark .moptera-action-field-group, .dark .moptera-action-footer { border-color: #394553; }
.dark .moptera-action-aside { background: #253443; border-color: #3a4e5b; }
.dark .moptera-action-footer { background: #1b2531; }
.dark .moptera-action-progress { color: #cbd5e1; }
.dark .moptera-action-notice { color: #f5dd9b; background: #433818; border-color: #746227; }
.dark .moptera-action-errors:not(.hidden) { color: #fecaca; background: #4d262b; border-color: #86454a; }
@media (max-width: 900px) {
  .moptera-action-body { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .moptera-action-fields { max-width: none; }
}
@media (max-width: 600px) {
  .moptera-action-header, .moptera-action-body { padding: 1.35rem; }
  .moptera-action-footer { padding: 1rem 1.35rem; flex-wrap: wrap; }
  .moptera-action-icon { display: none; }
}
