@import url('colors_and_type.css');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body, #root { height: 100%; background: #F8F8F8; }
body { font-family: var(--font-sans); color: #333333; -webkit-font-smoothing: antialiased; }

/* ---------- Shell ---------- */
.mp-app { display: grid; grid-template-columns: 240px 1fr; height: 100vh; }
.mp-content { display: flex; flex-direction: column; overflow: hidden; }
.mp-scroll { flex: 1; overflow-y: auto; padding: 28px 36px 48px; background: #F8F8F8; }

/* ---------- Sidebar ---------- */
.mp-sidebar {
  background: #fff;
  border-right: 1px solid #E6E6E6;
  display: flex; flex-direction: column;
  padding: 20px 14px;
}
.mp-sidebar__brand { padding: 6px 10px 22px; }
.mp-sidebar__brand img { height: 44px; width: auto; display: block; }
.mp-sidebar__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mp-sidebar__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: #333333;
  background: transparent; border: none; cursor: pointer; text-align: left;
  transition: background 120ms cubic-bezier(0.2,0,0.2,1), color 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-sidebar__item svg { width: 18px; height: 18px; stroke-width: 1.75; flex-shrink: 0; color: #666666; }
.mp-sidebar__item:hover { background: #F5F5F5; }
.mp-sidebar__item.is-active { background: #E6F3F3; color: #004F4C; font-weight: 700; }
.mp-sidebar__item.is-active svg { color: #004F4C; }
.mp-sidebar__footer { padding-top: 12px; border-top: 1px solid #E6E6E6; display: flex; flex-direction: column; gap: 10px; }
.mp-sidebar__pro {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #faf4e3 0%, #f1e2b0 100%);
  border: 1px solid #e6ce7c;
}
.mp-sidebar__pro-badge {
  background: #C9A43E; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 4px;
  flex-shrink: 0;
}
.mp-sidebar__pro-title { font-size: 12px; font-weight: 700; color: #5A4A1A; line-height: 1.3; }
.mp-sidebar__pro-sub { font-size: 11px; color: #7A6A2E; margin-top: 3px; line-height: 1.4; }
.mp-sidebar__pro-cta {
  margin-top: 8px;
  background: transparent; border: none; padding: 0;
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  color: #5A4A1A; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.mp-sidebar__pro-cta:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */
.mp-topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 36px;
  background: #fff; border-bottom: 1px solid #E6E6E6; gap: 20px;
  flex-shrink: 0;
}
.mp-topbar__title { font-size: 22px; font-weight: 700; color: #333333; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.mp-topbar > div:first-child { min-width: 0; flex: 1; }
.mp-topbar__sub { font-size: 13px; color: #666666; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 460px; }
.mp-topbar__right { display: flex; align-items: center; gap: 12px; }
.mp-search {
  display: flex; align-items: center; gap: 8px;
  background: #F5F5F5; border-radius: 8px; padding: 9px 12px; width: 320px;
  border: 1px solid transparent;
  transition: border-color 120ms, background 120ms;
}
.mp-search:focus-within { background: #fff; border-color: #00807B; box-shadow: 0 0 0 3px rgba(0,128,123,0.20); }
.mp-search svg { width: 16px; height: 16px; color: #8C8C8C; stroke-width: 1.75; }
.mp-search input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--font-sans); font-size: 13px; color: #333333; }
.mp-search input::placeholder { color: #8C8C8C; }
.mp-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px;
  background: transparent; border: none; cursor: pointer; color: #333333; position: relative;
  transition: background 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-icon-btn:hover { background: #F5F5F5; }
.mp-icon-btn svg { width: 20px; height: 20px; stroke-width: 1.75; }
.mp-notif-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 9999px; background: #00807B; border: 2px solid #fff; }
.mp-avatar {
  width: 36px; height: 36px; border-radius: 9999px;
  background: #00807B; color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
}
.mp-avatar--xs { width: 22px; height: 22px; font-size: 10px; font-weight: 600; }

/* ---------- Buttons ---------- */
.mp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 8px;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background 120ms cubic-bezier(0.2,0,0.2,1), border-color 120ms cubic-bezier(0.2,0,0.2,1), color 120ms;
  white-space: nowrap;
}
.mp-btn svg { width: 16px; height: 16px; stroke-width: 2; }
.mp-btn--primary { background: #00807B; color: #fff; }
.mp-btn--primary:hover { background: #006B67; }
.mp-btn--primary:active { background: #004F4C; }
.mp-btn--secondary { background: #fff; color: #333333; border-color: #D1D1D1; }
.mp-btn--secondary:hover { background: #F5F5F5; }
.mp-btn--ghost { background: transparent; color: #00807B; padding: 8px 12px; }
.mp-btn--ghost:hover { background: #E6F3F3; color: #006B67; }
.mp-btn--ghost svg { stroke-width: 1.75; }

/* ---------- Card ---------- */
.mp-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E6E6E6;
  padding: 24px;
  margin-bottom: 20px;
}
.mp-card--padded-sm { padding: 20px 24px; }
.mp-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 18px; gap: 16px;
}
.mp-card__title { font-size: 16px; font-weight: 700; color: #333333; line-height: 1.3; }
.mp-card__sub { font-size: 13px; color: #666666; margin-top: 3px; }
.mp-eyebrow-teal { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #00807B; }

/* ---------- KPIs ---------- */
.mp-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.mp-kpi {
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 12px;
  padding: 22px;
  transition: border-color 120ms cubic-bezier(0.2,0,0.2,1), box-shadow 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-kpi:hover { border-color: #D1D1D1; }
.mp-kpi__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px; gap: 12px;
}
.mp-kpi__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #E6F3F3; color: #00807B;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mp-kpi__icon svg { width: 18px; height: 18px; stroke-width: 1.75; }
.mp-kpi__value {
  font-size: 28px; font-weight: 700; color: #333333;
  letter-spacing: -0.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.mp-kpi__value-sub {
  font-size: 14px; font-weight: 600; color: #666666;
  margin-left: 4px; letter-spacing: 0;
}
.mp-kpi__delta {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px; font-size: 12px; font-weight: 600;
}
.mp-kpi__delta.is-up { color: #1E9E78; }
.mp-kpi__delta.is-down { color: #C0392B; }
.mp-kpi__delta.is-neutral { color: #666666; }
.mp-kpi__delta-arrow {
  font-size: 13px; line-height: 1; font-weight: 700;
}

/* ---------- Badges ---------- */
.mp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.mp-badge__dot { width: 6px; height: 6px; border-radius: 9999px; flex-shrink: 0; }
.mp-badge--teal    { background: #E6F3F3; color: #005a57; } .mp-badge--teal    .mp-badge__dot { background: #00807B; }
.mp-badge--success { background: #E6F5EF; color: #156a52; } .mp-badge--success .mp-badge__dot { background: #1E9E78; }
.mp-badge--warn    { background: #FBF2D5; color: #6f5a1f; } .mp-badge--warn    .mp-badge__dot { background: #C9A43E; }
.mp-badge--danger  { background: #FBE7E4; color: #8a2a20; } .mp-badge--danger  .mp-badge__dot { background: #C0392B; }
.mp-badge--info    { background: #E0EEF2; color: #1d5968; } .mp-badge--info    .mp-badge__dot { background: #2B7A8C; }

/* ---------- Table ---------- */
.mp-table { width: 100%; border-collapse: collapse; }
.mp-table th {
  text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #666666;
  padding: 10px 12px; border-bottom: 1px solid #E6E6E6;
}
.mp-table th.mp-th-right { text-align: right; }
.mp-table td {
  padding: 14px 12px; border-bottom: 1px solid #E6E6E6;
  font-size: 14px; color: #333333;
  vertical-align: middle;
}
.mp-table tbody tr {
  cursor: pointer;
  transition: background 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-table tbody tr:hover { background: #F5F5F5; }
.mp-table tbody tr:last-child td { border-bottom: none; }
.mp-mono { font-family: var(--font-mono); font-size: 12.5px; color: #666666; font-weight: 500; }
.mp-client-cell { font-weight: 600; color: #333333; }
.mp-money { font-variant-numeric: tabular-nums; font-weight: 600; color: #333333; text-align: right; }
.mp-muted { color: #666666; font-size: 13px; }
.mp-row-action { color: #8C8C8C; text-align: right; width: 32px; }
.mp-row-action svg { width: 16px; height: 16px; stroke-width: 1.75; }
.mp-table tbody tr:hover .mp-row-action { color: #00807B; }

/* ---------- Filters ---------- */
.mp-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-chip {
  padding: 6px 14px; border-radius: 9999px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  background: transparent; color: #666666;
  border: 1px solid transparent; cursor: pointer;
  transition: background 120ms cubic-bezier(0.2,0,0.2,1), color 120ms;
}
.mp-chip:hover { background: #F5F5F5; color: #333333; }
.mp-chip.is-active { background: #00807B; color: #fff; }
.mp-chip.is-active:hover { background: #006B67; }

/* ---------- Kanban ---------- */
.mp-kanban {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.mp-kanban__col {
  background: #F8F8F8;
  border-radius: 10px;
  padding: 14px;
  min-height: 120px;
}
.mp-kanban__title {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 2px 12px;
  font-size: 13px; font-weight: 700; color: #333333;
  letter-spacing: 0;
}
.mp-kanban__count {
  background: #E6E6E6; color: #666666;
  border-radius: 9999px; padding: 2px 8px; font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mp-kanban__card {
  background: #fff; border-radius: 8px;
  border: 1px solid #E6E6E6;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: grab;
  transition: border-color 120ms cubic-bezier(0.2,0,0.2,1), box-shadow 120ms;
  position: relative;
}
.mp-kanban__card:last-child { margin-bottom: 0; }
.mp-kanban__card:hover {
  border-color: #D1D1D1;
  box-shadow: 0 1px 3px rgba(51,51,51,0.08), 0 1px 2px rgba(51,51,51,0.04);
}
.mp-kanban__card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.mp-kanban__code {
  font-family: var(--font-mono); font-size: 11.5px;
  color: #8C8C8C; font-weight: 500; letter-spacing: 0.01em;
}
.mp-urgency-dot {
  width: 7px; height: 7px; border-radius: 9999px;
  background: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
  flex-shrink: 0;
}
.mp-kanban__name {
  font-size: 14px; font-weight: 700; color: #333333;
  margin-bottom: 10px;
  line-height: 1.35;
}
.mp-kanban__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: #666666;
}
.mp-kanban__due {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 500;
}
.mp-kanban__due svg { width: 13px; height: 13px; stroke-width: 1.75; color: #8C8C8C; }
.mp-kanban__due.is-urgent { color: #C0392B; font-weight: 600; }
.mp-kanban__due.is-urgent svg { color: #C0392B; }

/* ---------- Summary row (Orçamentos) ---------- */
.mp-summary {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  background: #fff; border: 1px solid #E6E6E6; border-radius: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.mp-summary__item { display: inline-flex; align-items: baseline; gap: 6px; }
.mp-summary__num { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mp-summary__num--teal    { color: #00807B; }
.mp-summary__num--success { color: #1E9E78; }
.mp-summary__num--danger  { color: #C0392B; }
.mp-summary__label { color: #666666; font-weight: 500; }
.mp-summary__sep { color: #D1D1D1; font-weight: 400; user-select: none; }

/* ---------- Pipeline ---------- */
.mp-pipeline-scroll {
  margin: 0 -36px 20px;
  padding: 0 36px 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.mp-pipeline {
  display: grid;
  grid-template-columns: repeat(6, 300px);
  gap: 14px;
}
.mp-pipe-col {
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 12px;
  border-top: 3px solid #E6E6E6;
  display: flex; flex-direction: column;
  min-height: 560px;
  overflow: hidden;
}
.mp-pipe-col--teal    { border-top-color: #00807B; }
.mp-pipe-col--info    { border-top-color: #2B7A8C; }
.mp-pipe-col--warn    { border-top-color: #C9A43E; }
.mp-pipe-col--success { border-top-color: #1E9E78; }
.mp-pipe-col--danger  { border-top-color: #C0392B; }

.mp-pipe-col__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 10px;
}
.mp-pipe-col__title {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: #333333;
}
.mp-pipe-col__count {
  background: #F5F5F5; color: #666666;
  border-radius: 9999px; padding: 1px 8px;
  font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mp-icon-btn--sm { width: 28px; height: 28px; }
.mp-icon-btn--sm svg { width: 16px; height: 16px; }

.mp-pipe-col__body {
  flex: 1;
  padding: 4px 10px 12px;
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto;
}

/* Card */
.mp-pipe-card {
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: grab;
  transition: border-color 120ms cubic-bezier(0.2,0,0.2,1), box-shadow 120ms cubic-bezier(0.2,0,0.2,1), transform 120ms;
}
.mp-pipe-card:hover {
  border-color: #D1D1D1;
  box-shadow: 0 4px 8px rgba(51,51,51,0.08), 0 2px 4px rgba(51,51,51,0.04);
}
.mp-pipe-card.is-lost { background: #FAFAFA; opacity: 0.78; }
.mp-pipe-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.mp-pipe-card__who {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0;
}
.mp-pipe-card__name {
  font-size: 13.5px; font-weight: 700; color: #333333;
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mp-avatar--sm { width: 26px; height: 26px; font-size: 10.5px; font-weight: 700; flex-shrink: 0; }
.mp-avatar--muted { background: #B3B3B3; }
.mp-pipe-check {
  width: 22px; height: 22px; border-radius: 9999px;
  background: #E6F5EF; color: #1E9E78;
  display: grid; place-items: center; flex-shrink: 0;
}
.mp-pipe-check svg { width: 13px; height: 13px; stroke-width: 2.5; }

.mp-pipe-card__desc {
  font-size: 13px; color: #666666; font-weight: 500;
  line-height: 1.4; margin-bottom: 10px;
}
.mp-pipe-card.is-lost .mp-pipe-card__desc { color: #8C8C8C; }
.mp-pipe-card__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; flex-wrap: wrap;
}
.mp-pipe-card__date {
  font-size: 11.5px; color: #8C8C8C; font-weight: 500;
}
.mp-pipe-card__date.is-muted { color: #B3B3B3; }

.mp-pipe-col__add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px dashed #E6E6E6;
  border-radius: 10px;
  color: #8C8C8C;
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 600;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.mp-pipe-col__add:hover { background: #F5F5F5; color: #00807B; border-color: #00807B; }
.mp-pipe-col__add svg { width: 14px; height: 14px; stroke-width: 2; }

/* ---------- Conversion funnel ---------- */
.mp-funnel {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 4px;
}
.mp-funnel__step { flex: 1; min-width: 0; }
.mp-funnel__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.mp-funnel__label { font-size: 12px; font-weight: 600; color: #333333; }
.mp-funnel__count { font-size: 11px; color: #8C8C8C; font-variant-numeric: tabular-nums; font-weight: 600; }
.mp-funnel__bar-wrap {
  height: 32px;
  background: #F5F5F5;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}
.mp-funnel__bar {
  height: 100%;
  background: linear-gradient(90deg, #00807B, #006B67);
  border-radius: 6px;
  transition: width 320ms cubic-bezier(0.2,0,0.2,1);
}
.mp-funnel__pct {
  font-size: 16px; font-weight: 700; color: #00807B;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.mp-funnel__drop {
  display: inline-flex; flex-direction: column; align-items: center;
  gap: 2px;
  padding: 0 4px;
  color: #C0392B;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.mp-funnel__drop svg { width: 14px; height: 14px; stroke-width: 2; color: #B3B3B3; }

/* ---------- Client profile ---------- */
.mp-col-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mp-col-main { display: flex; flex-direction: column; min-width: 0; }
.mp-col-side { display: flex; flex-direction: column; min-width: 0; }

.mp-avatar--xl { width: 56px; height: 56px; font-size: 18px; font-weight: 700; flex-shrink: 0; }

.mp-client-header { padding: 24px 28px; }
.mp-client-header__top { display: flex; gap: 16px; align-items: flex-start; }
.mp-client-header__info { flex: 1; min-width: 0; }
.mp-client-header__name { font-size: 22px; font-weight: 700; color: #333333; letter-spacing: -0.01em; line-height: 1.2; }
.mp-client-header__cnpj { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.mp-client-header__tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: #666666; text-transform: uppercase;
  padding: 2px 6px; background: #F5F5F5; border-radius: 4px;
}
.mp-client-contacts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }
.mp-client-contacts__item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #666666; font-weight: 500;
}
.mp-client-contacts__item svg { width: 14px; height: 14px; stroke-width: 1.75; color: #8C8C8C; }
.mp-client-header__actions { display: flex; gap: 8px; flex-shrink: 0; }

.mp-client-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 20px; padding-top: 18px;
  border-top: 1px solid #E6E6E6;
}
.mp-client-stat { }
.mp-client-stat__value {
  font-size: 18px; font-weight: 700; color: #333333;
  letter-spacing: -0.01em; line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.mp-client-stat__label { font-size: 12px; color: #666666; margin-top: 4px; }

/* Projects history */
.mp-history { display: flex; flex-direction: column; }
.mp-history-row {
  display: grid;
  grid-template-columns: 8px 1fr auto auto 16px;
  align-items: center; gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid #E6E6E6;
  cursor: pointer;
  transition: background 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-history-row:hover { background: #F8F8F8; }
.mp-history-row:last-child { border-bottom: none; }
.mp-history-row__dot {
  width: 8px; height: 8px; border-radius: 9999px; justify-self: center;
}
.mp-history-row__dot--teal    { background: #00807B; box-shadow: 0 0 0 3px rgba(0,128,123,0.12); }
.mp-history-row__dot--success { background: #1E9E78; }
.mp-history-row__main { min-width: 0; }
.mp-history-row__name { font-size: 14px; font-weight: 600; color: #333333; }
.mp-history-row__meta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: #8C8C8C; margin-top: 3px;
}
.mp-history-row__sep { color: #D1D1D1; }
.mp-history-row__value {
  font-variant-numeric: tabular-nums; font-weight: 600;
  color: #333333; font-size: 14px;
}
.mp-history-row__chev { width: 16px; height: 16px; color: #B3B3B3; }
.mp-history-row:hover .mp-history-row__chev { color: #00807B; }
.mp-history__more { margin-top: 14px; }

/* Briefings */
.mp-briefings { display: flex; flex-direction: column; gap: 12px; }
.mp-briefing {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px; border: 1px solid #E6E6E6; border-radius: 10px;
}
.mp-briefing__icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #E6F3F3; color: #00807B;
  display: grid; place-items: center; flex-shrink: 0;
}
.mp-briefing__icon svg { width: 18px; height: 18px; stroke-width: 1.75; }
.mp-briefing__main { flex: 1; min-width: 0; }
.mp-briefing__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 10px; flex-wrap: wrap;
}
.mp-briefing__room { font-size: 14px; font-weight: 700; color: #333333; }
.mp-briefing__date { font-size: 11px; color: #8C8C8C; font-weight: 500; }
.mp-briefing__dims {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 12.5px;
  color: #666666;
}
.mp-briefing__dims svg { width: 13px; height: 13px; color: #8C8C8C; }
.mp-briefing__photos { display: flex; gap: 6px; flex-shrink: 0; }
.mp-photo-thumb {
  width: 44px; height: 44px; border-radius: 6px;
  display: grid; place-items: center;
  color: rgba(51,51,51,0.45);
  overflow: hidden;
}
.mp-photo-thumb svg { width: 16px; height: 16px; stroke-width: 1.5; }
.mp-photo-thumb--more {
  background: #F5F5F5; color: #666666;
  font-size: 12px; font-weight: 700;
}
.mp-briefings__hint {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 11px; color: #8C8C8C;
}
.mp-briefings__hint svg { width: 12px; height: 12px; stroke-width: 1.75; }

/* Side column cards */
.mp-card__head--compact { margin-bottom: 14px; }
.mp-btn--ghost-xs { padding: 4px 8px; font-size: 12px; }

.mp-props { display: flex; flex-direction: column; }
.mp-prop-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid #E6E6E6;
  cursor: pointer;
}
.mp-prop-row:last-child { border-bottom: none; }
.mp-prop-row:hover .mp-prop-row__title { color: #00807B; }
.mp-prop-row__main { flex: 1; min-width: 0; }
.mp-prop-row__title { font-size: 13.5px; font-weight: 600; color: #333333; line-height: 1.3; transition: color 120ms; }
.mp-prop-row__meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: #8C8C8C; margin-top: 4px;
}
.mp-prop-row__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.mp-prop-row__value {
  font-size: 13.5px; font-weight: 700; color: #333333;
  font-variant-numeric: tabular-nums;
}

.mp-notes-textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: 13px;
  color: #333333; line-height: 1.55;
  padding: 12px 14px;
  background: #FAFAFA;
  border: 1px solid #E6E6E6;
  border-radius: 8px;
  resize: vertical;
  transition: border-color 120ms, background 120ms, box-shadow 120ms;
}
.mp-notes-textarea:focus {
  outline: none; background: #fff;
  border-color: #00807B;
  box-shadow: 0 0 0 3px rgba(0,128,123,0.20);
}

.mp-files { display: flex; flex-direction: column; gap: 8px; }
.mp-file-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid #E6E6E6; border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 120ms, background 120ms;
}
.mp-file-row:hover { border-color: #00807B; background: #FAFAFA; }
.mp-file-row__icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: #FBE7E4; color: #C0392B;
  display: grid; place-items: center; flex-shrink: 0;
}
.mp-file-row__icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
.mp-file-row__main { flex: 1; min-width: 0; }
.mp-file-row__name {
  font-size: 13px; font-weight: 600; color: #333333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mp-file-row__meta { font-size: 11px; color: #8C8C8C; margin-top: 2px; }

/* ---------- Project detail ---------- */
.mp-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: #00807B; font-size: 13px; font-weight: 600;
  text-decoration: none;
}
.mp-link:hover { color: #006B67; text-decoration: underline; }
.mp-link svg { width: 13px; height: 13px; stroke-width: 2; }

.mp-btn--sm { padding: 7px 12px; font-size: 12.5px; }
.mp-btn--sm svg { width: 14px; height: 14px; }

/* Stages */
.mp-stages-card { padding: 24px 32px; }
.mp-stages-bar {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
}
.mp-stage-col { text-align: center; min-width: 90px; }
.mp-stage-dot {
  width: 36px; height: 36px; border-radius: 9999px;
  display: grid; place-items: center;
  margin: 0 auto 10px;
  font-weight: 700; font-size: 13px;
  background: #fff;
  border: 2px solid #D1D1D1;
  color: #8C8C8C;
  transition: all 200ms cubic-bezier(0.2,0,0.2,1);
}
.mp-stage-dot svg { width: 16px; height: 16px; stroke-width: 2.5; }
.mp-stage-col--done .mp-stage-dot {
  background: #00807B; border-color: #00807B; color: #fff;
}
.mp-stage-col--current .mp-stage-dot {
  background: #fff; border-color: #00807B; color: #00807B;
  box-shadow: 0 0 0 4px rgba(0,128,123,0.20);
}
.mp-stage-dot__inner {
  width: 12px; height: 12px; border-radius: 9999px;
  background: #00807B;
}
.mp-stage-col__label { font-size: 13px; font-weight: 700; color: #333333; }
.mp-stage-col--todo .mp-stage-col__label { color: #8C8C8C; }
.mp-stage-col__date { font-size: 11px; color: #666666; margin-top: 3px; }
.mp-stage-col--todo .mp-stage-col__date { color: #B3B3B3; }

.mp-stage-line {
  height: 2px;
  background: #E6E6E6;
  margin: 0 8px;
  margin-top: -30px;
  align-self: flex-start;
  position: relative;
  top: 17px;
}
.mp-stage-line.is-active { background: #00807B; }
.mp-stage-line.is-half {
  background: linear-gradient(90deg, #00807B 50%, #E6E6E6 50%);
}

/* Grid */
.mp-proj-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.mp-proj-main { display: flex; flex-direction: column; min-width: 0; }
.mp-proj-side { display: flex; flex-direction: column; min-width: 0; }

.mp-table--tight td { padding: 10px 12px; }
.mp-table--tight th { padding: 8px 12px; }

.mp-materials-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid #E6E6E6;
  font-size: 13px; color: #666666;
}
.mp-materials-footer__warn { color: #C9A43E; font-weight: 700; }

/* QC */
.mp-qc-card { opacity: 0.75; }
.mp-qc { display: flex; flex-direction: column; gap: 10px; }
.mp-qc-row {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 14px;
  background: #FAFAFA;
  border: 1px solid #E6E6E6; border-radius: 8px;
}
.mp-qc-box {
  width: 18px; height: 18px; border-radius: 4px;
  border: 2px solid #D1D1D1; background: #fff;
  flex-shrink: 0;
}
.mp-qc-text { font-size: 13.5px; color: #666666; font-weight: 500; }
.mp-qc-hint {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 12px; color: #8C8C8C;
  font-style: italic;
}
.mp-qc-hint svg { width: 13px; height: 13px; }

/* Project info */
.mp-info-list { display: flex; flex-direction: column; }
.mp-info-row {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 14px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #E6E6E6;
}
.mp-info-row:last-child { border-bottom: none; }
.mp-info-row__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #8C8C8C;
  padding-top: 2px;
}
.mp-info-row__main { display: flex; align-items: center; gap: 10px; }
.mp-info-row__value { font-size: 14px; font-weight: 600; color: #333333; }
.mp-info-row__sub { font-size: 12px; color: #8C8C8C; margin-top: 2px; }
.mp-info-row__sub.is-good { color: #1E9E78; font-weight: 600; }

.mp-info-financials {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid #E6E6E6;
}
.mp-info-financials__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: #8C8C8C;
}
.mp-info-financials__value {
  font-size: 20px; font-weight: 700; color: #333333;
  letter-spacing: -0.01em; margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.mp-info-financials__value--teal { color: #00807B; }

/* Subs */
.mp-subs { display: flex; flex-direction: column; gap: 10px; }
.mp-sub-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border: 1px solid #E6E6E6; border-radius: 8px;
}
.mp-sub-row__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #E6F3F3; color: #00807B;
  display: grid; place-items: center; flex-shrink: 0;
}
.mp-sub-row__icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
.mp-sub-row__main { flex: 1; min-width: 0; }
.mp-sub-row__name { font-size: 13.5px; font-weight: 700; color: #333333; }
.mp-sub-row__meta { font-size: 11.5px; color: #8C8C8C; margin-top: 2px; }

/* Upload button */
.mp-upload-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px dashed #D1D1D1;
  border-radius: 8px;
  background: transparent;
  color: #666666;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: all 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-upload-btn:hover { border-color: #00807B; color: #00807B; background: #FAFAFA; }
.mp-upload-btn svg { width: 15px; height: 15px; stroke-width: 1.75; }

/* Topbar action group (secondary actions) */
.mp-topbar__actions-group { display: inline-flex; gap: 4px; align-items: center; margin-right: 4px; }

/* ---------- Estoque ---------- */
.mp-alert {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.mp-alert--warn {
  background: #FBF2D5;
  border: 1px solid #E6CE7C;
  color: #6F5A1F;
}
.mp-alert__icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(201,164,62,0.20);
  color: #8A6F28;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mp-alert__icon svg { width: 18px; height: 18px; stroke-width: 2; }
.mp-alert__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mp-alert__main strong { font-size: 14px; font-weight: 700; color: #6F5A1F; }
.mp-alert__sub { font-size: 12.5px; color: #8A6F28; font-weight: 500; }
.mp-alert__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: #6F5A1F;
  text-decoration: none; flex-shrink: 0;
}
.mp-alert__link:hover { color: #5A4A1A; text-decoration: underline; }
.mp-alert__link svg { width: 14px; height: 14px; stroke-width: 2; }

.mp-stock-filters {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 18px; flex-wrap: wrap;
}
.mp-search--lg { width: 280px; padding: 10px 12px; }
.mp-select {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: #fff; border: 1px solid #D1D1D1; border-radius: 8px;
  font-size: 13px; color: #333333; font-weight: 500;
  cursor: pointer;
  transition: border-color 120ms;
}
.mp-select:hover { border-color: #00807B; }
.mp-select__label { color: #666666; }
.mp-select__value { font-weight: 600; }
.mp-select svg { width: 14px; height: 14px; color: #8C8C8C; }

.mp-toggle-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: #fff; border: 1px solid #D1D1D1; border-radius: 8px;
  font-family: var(--font-sans); font-size: 13px; color: #333333; font-weight: 500;
  cursor: pointer;
  transition: all 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-toggle-chip:hover { border-color: #00807B; }
.mp-toggle-chip__switch {
  width: 28px; height: 16px; border-radius: 9999px;
  background: #D1D1D1; position: relative;
  transition: background 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-toggle-chip__knob {
  position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 9999px;
  background: #fff;
  transition: left 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-toggle-chip.is-active { background: #E6F3F3; border-color: #00807B; color: #004F4C; font-weight: 700; }
.mp-toggle-chip.is-active .mp-toggle-chip__switch { background: #00807B; }
.mp-toggle-chip.is-active .mp-toggle-chip__knob { left: 14px; }

.mp-estoque-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px; align-items: start;
}
.mp-estoque-grid.is-collapsed { grid-template-columns: minmax(0, 1fr); }
.mp-estoque-main { min-width: 0; }
.mp-estoque-side { min-width: 0; }

@media (max-width: 1280px) {
  .mp-estoque-grid { grid-template-columns: minmax(0, 1fr); }
  .mp-estoque-side { order: -1; }
}

.mp-card--no-pad { padding: 0; overflow: hidden; }
.mp-stock-scroll { overflow-x: auto; }
.mp-stock-table { min-width: 880px; }
.mp-stock-table th { padding: 14px 14px; white-space: nowrap; }
.mp-stock-table th:first-child, .mp-stock-table td:first-child { padding-left: 22px; }
.mp-stock-table th:last-child, .mp-stock-table td:last-child { padding-right: 22px; }
.mp-stock-table td { padding: 14px 14px; vertical-align: middle; }
.mp-stock-table tr.is-critical { background: #FFFBF0; }
.mp-stock-table tr.is-critical:hover { background: #FFF6E0; }
.mp-stock-table .mp-soft { color: #8C8C8C; font-weight: 500; }
.mp-stock-table .mp-unit { color: #8C8C8C; font-size: 12px; font-weight: 500; margin-left: 2px; }
.mp-stock-table .mp-free-neg {
  color: #C0392B; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mp-table-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  border-top: 1px solid #E6E6E6;
  font-size: 13px; color: #666666;
}
.mp-pagination { display: inline-flex; align-items: center; gap: 6px; }
.mp-pagination__page {
  font-size: 12.5px; color: #333333; font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
}

/* Reserves panel */
.mp-reserves { padding: 0; overflow: hidden; }
.mp-reserves__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #E6E6E6;
  background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
}
.mp-reserves__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #00807B;
  margin-bottom: 4px;
}
.mp-reserves__eyebrow svg { width: 13px; height: 13px; stroke-width: 2; }
.mp-reserves__body {
  padding: 6px 0;
  max-height: 540px; overflow-y: auto;
}
.mp-reserve-block {
  padding: 14px 20px;
  border-bottom: 1px solid #F0F0F0;
}
.mp-reserve-block:last-child { border-bottom: none; }
.mp-reserve-block__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.mp-reserve-block__info { flex: 1; min-width: 0; }
.mp-reserve-block__name { font-size: 13.5px; font-weight: 700; color: #333333; }
.mp-reserve-block__meta {
  display: inline-flex; gap: 6px; align-items: center;
  font-size: 11.5px; color: #8C8C8C; margin-top: 2px;
}
.mp-reserve-block__items {
  display: flex; flex-direction: column; gap: 4px;
  padding-left: 36px;
}
.mp-reserve-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: #FAFAFA;
  border-radius: 6px;
  font-size: 12.5px;
}
.mp-reserve-item.is-critical { background: #FFF6E0; }
.mp-reserve-item__name { flex: 1; min-width: 0; color: #333333; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-reserve-item__qty { color: #666666; font-weight: 700; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mp-reserve-item__warn { width: 13px; height: 13px; color: #C9A43E; flex-shrink: 0; }
.mp-reserves__footer {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 14px 20px;
  border-top: 1px solid #E6E6E6;
  background: #FAFAFA;
  font-size: 11.5px; color: #8C8C8C; line-height: 1.45;
}
.mp-reserves__footer svg { width: 14px; height: 14px; color: #00807B; flex-shrink: 0; margin-top: 1px; }

/* ---------- Logística / Montagem ---------- */
.mp-asm-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: #8C8C8C;
  margin-bottom: 8px;
}
.mp-asm-header { padding: 22px 28px; }
.mp-asm-header__row {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
@media (max-width: 1180px) {
  .mp-asm-header__row { grid-template-columns: 1fr; gap: 20px; }
  .mp-asm-grid { grid-template-columns: 1fr; }
}
.mp-asm-header__col { min-width: 0; }
.mp-asm-header__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mp-asm-code {
  background: #F5F5F5; padding: 3px 8px; border-radius: 6px;
  color: #00807B; font-weight: 600;
  white-space: nowrap;
}
.mp-asm-mont__phone, .mp-asm-header__meta span { white-space: nowrap; }
.mp-asm-name { font-size: 18px; font-weight: 700; color: #333333; }
.mp-asm-header__meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 13px; color: #666666; margin-top: 8px;
  align-items: center;
}
.mp-asm-header__meta strong { color: #333333; font-weight: 700; }
.mp-asm-header__meta svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; color: #8C8C8C; }
.mp-asm-sep { color: #D1D1D1; }
.mp-asm-address { font-size: 14px; color: #333333; font-weight: 600; line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
.mp-asm-address span { color: #666666; font-weight: 500; font-size: 13px; }
.mp-asm-address a { margin-top: 6px; }
.mp-link--sm { font-size: 12px; }

.mp-avatar--md { width: 40px; height: 40px; font-size: 14px; }
.mp-asm-mont { display: flex; align-items: center; gap: 12px; }
.mp-asm-mont__name { font-size: 14px; font-weight: 700; color: #333333; }
.mp-asm-mont__phone { font-size: 12px; color: #666666; margin-top: 2px; }
.mp-asm-time {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  padding: 6px 10px;
  background: #E6F3F3; border-radius: 6px;
  font-size: 12.5px; color: #004F4C; font-weight: 600;
}
.mp-asm-time svg { width: 14px; height: 14px; }
.mp-asm-time strong { font-weight: 700; }

.mp-asm-grid {
  display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: 20px; align-items: start;
}
.mp-asm-main { min-width: 0; }
.mp-asm-side { min-width: 0; display: flex; flex-direction: column; }

/* Checklist */
.mp-chk-progress { text-align: right; }
.mp-chk-progress__num {
  font-size: 22px; font-weight: 700; color: #00807B;
  letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  line-height: 1;
}
.mp-chk-progress__label { font-size: 11.5px; color: #666666; margin-top: 4px; font-weight: 500; }
.mp-chk-bar {
  height: 8px; background: #F5F5F5; border-radius: 9999px;
  overflow: hidden; margin-bottom: 22px;
}
.mp-chk-bar__fill {
  height: 100%; background: #00807B; border-radius: 9999px;
  transition: width 320ms cubic-bezier(0.2,0,0.2,1);
}

.mp-chk-group {
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.mp-chk-group.is-complete { border-color: #C7E8DA; background: #FAFFFC; }
.mp-chk-group__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: #FAFAFA;
  border-bottom: 1px solid #F0F0F0;
}
.mp-chk-group.is-complete .mp-chk-group__head { background: #F0F9F4; border-bottom-color: #DDF0E5; }
.mp-chk-group__title { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: #333333; }
.mp-chk-group__icon {
  width: 22px; height: 22px; border-radius: 9999px;
  background: #1E9E78; color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.mp-chk-group__icon svg { width: 12px; height: 12px; stroke-width: 3; }
.mp-chk-group__icon--pending { background: #FBF2D5; color: #8A6F28; }
.mp-chk-group__count {
  font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 10px; border-radius: 9999px;
}
.mp-chk-group__count.is-complete { background: #E6F5EF; color: #1E9E78; }
.mp-chk-group__count.is-pending  { background: #FBE7E4; color: #C0392B; }
.mp-chk-group__body { padding: 6px 0; }
.mp-chk-group__more { padding: 6px 16px 12px; }

.mp-chk-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px;
}
.mp-chk-row.is-pending {
  background: #FBE7E4;
  border-top: 1px solid #F5D2CC;
  border-bottom: 1px solid #F5D2CC;
  margin: 1px 0;
}
.mp-chk-box {
  width: 18px; height: 18px; border-radius: 5px;
  border: 2px solid #D1D1D1; background: #fff;
  flex-shrink: 0;
  display: grid; place-items: center;
}
.mp-chk-box svg { width: 12px; height: 12px; stroke-width: 3; color: #fff; }
.mp-chk-row.is-checked .mp-chk-box { background: #1E9E78; border-color: #1E9E78; }
.mp-chk-row.is-pending .mp-chk-box { border-color: #C0392B; border-width: 2.5px; }
.mp-chk-label { flex: 1; font-size: 13.5px; color: #333333; font-weight: 500; }
.mp-chk-row.is-pending .mp-chk-label { color: #8A2A20; font-weight: 600; }
.mp-chk-qty {
  font-size: 12.5px; color: #666666; font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #F5F5F5; padding: 2px 8px; border-radius: 4px;
}
.mp-chk-row.is-pending .mp-chk-qty { background: #fff; color: #8A2A20; }
.mp-chk-note {
  font-size: 11px; font-weight: 700;
  color: #C0392B; background: #fff;
  padding: 3px 8px; border-radius: 4px;
  text-transform: lowercase; letter-spacing: 0.02em;
  border: 1px solid #F5D2CC;
}

.mp-chk-final {
  margin-top: 6px;
  padding: 16px;
  background: #F8F8F8;
  border: 1px dashed #D1D1D1;
  border-radius: 10px;
}
.mp-chk-final__title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #666666;
  margin-bottom: 10px;
}
.mp-chk-final .mp-chk-row { padding: 8px 0; }
.mp-chk-sign { margin-top: 10px; padding-top: 12px; border-top: 1px solid #E6E6E6; }
.mp-chk-sign__label { font-size: 12px; color: #666666; font-weight: 600; margin-bottom: 6px; }
.mp-chk-sign__field {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px;
  background: #fff; border: 1.5px dashed #D1D1D1; border-radius: 8px;
  cursor: pointer;
  transition: all 120ms cubic-bezier(0.2,0,0.2,1);
}
.mp-chk-sign__field:hover { border-color: #00807B; background: #FAFCFC; }
.mp-chk-sign__placeholder { font-size: 13px; color: #8C8C8C; font-style: italic; }
.mp-chk-sign__field svg { width: 16px; height: 16px; color: #00807B; }

/* Right column */
.mp-doc-preview {
  border: 1px solid #E6E6E6;
  border-radius: 10px;
  padding: 16px 18px;
  background: #FAFAFA;
  margin-bottom: 14px;
}
.mp-doc-preview__head {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: #00807B;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px dashed #D1D1D1;
}
.mp-doc-preview__head svg { width: 14px; height: 14px; }
.mp-doc-preview__rows { display: grid; gap: 8px; margin-bottom: 14px; }
.mp-doc-preview__rows > div {
  display: grid; grid-template-columns: 80px 1fr; gap: 12px;
  font-size: 13px;
}
.mp-doc-preview__rows span { color: #8C8C8C; font-weight: 500; }
.mp-doc-preview__rows strong { color: #333333; font-weight: 700; }
.mp-doc-preview__items {
  font-size: 12.5px; color: #666666;
  padding-top: 12px; border-top: 1px dashed #D1D1D1;
  display: flex; flex-direction: column; gap: 4px;
}
.mp-doc-preview__items-head {
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: #8C8C8C;
  margin-bottom: 6px;
}
.mp-doc-preview__sign { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #D1D1D1; }
.mp-doc-preview__sign-line { height: 1px; background: #B3B3B3; margin-bottom: 4px; }
.mp-doc-preview__sign span { font-size: 11px; color: #8C8C8C; font-style: italic; }

.mp-btn--block { width: 100%; justify-content: center; }
.mp-btn--lg { padding: 12px 22px; font-size: 14.5px; }
.mp-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.mp-btn[disabled]:hover { background: #00807B; }

.mp-asm-note {
  display: inline-flex; align-items: flex-start; gap: 6px;
  margin-top: 10px;
  font-size: 11.5px; color: #8C8C8C; line-height: 1.45;
}
.mp-asm-note svg { width: 13px; height: 13px; color: #00807B; flex-shrink: 0; margin-top: 1px; }

/* Manual card */
.mp-manual { display: flex; gap: 18px; align-items: center; }
.mp-manual__pages {
  position: relative;
  width: 80px; height: 100px;
  flex-shrink: 0;
}
.mp-manual__page {
  position: absolute; inset: 0;
  background: #fff; border: 1px solid #D1D1D1;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(51,51,51,0.06);
}
.mp-manual__page--3 { transform: rotate(-3deg) translate(-4px, -2px); background: #F5F5F5; }
.mp-manual__page--2 { transform: rotate(2deg) translate(2px, 1px); }
.mp-manual__page--1 { padding: 10px; }
.mp-manual__page-bar {
  height: 4px; border-radius: 2px;
  background: #00807B; margin-bottom: 6px;
  width: 60%;
}
.mp-manual__page-bar--2 { background: #D1D1D1; width: 80%; }
.mp-manual__page-bar--3 { background: #D1D1D1; width: 50%; }
.mp-manual__info { flex: 1; min-width: 0; }
.mp-manual__name {
  font-family: var(--font-mono); font-size: 12.5px;
  color: #333333; font-weight: 600;
}
.mp-manual__meta { font-size: 12px; color: #8C8C8C; margin-top: 2px; }
.mp-manual__actions { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }

/* Action bar */
.mp-action-spacer { height: 80px; }
.mp-action-bar {
  position: sticky; bottom: 0;
  margin: 24px -36px -48px;
  padding: 16px 36px;
  background: #fff;
  border-top: 1px solid #E6E6E6;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 -4px 12px rgba(51,51,51,0.06);
  z-index: 10;
}
.mp-action-bar__left {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: #C0392B; font-weight: 600;
}
.mp-action-bar__left strong { font-weight: 800; }
.mp-action-bar__left svg { width: 16px; height: 16px; }
.mp-action-bar__right { display: inline-flex; align-items: center; gap: 14px; }
.mp-action-bar__hint { font-size: 12px; color: #8C8C8C; font-style: italic; }

/* ---------- Empty state — first run ---------- */
.mp-empty-wrap {
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px;
}
.mp-empty-hero {
  text-align: center;
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 12px;
  padding: 56px 32px;
  width: 100%; max-width: 720px;
  margin-bottom: 28px;
}
.mp-empty-hero__icon {
  width: 56px; height: 56px;
  background: #E6F3F3;
  border-radius: 12px;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  color: #00807B;
}
.mp-empty-hero__icon svg { width: 28px; height: 28px; stroke-width: 1.75; }
.mp-empty-hero__title {
  font-size: 18px; font-weight: 700; color: #333333;
  letter-spacing: -0.01em;
}
.mp-empty-hero__desc {
  font-size: 13px; color: #666666;
  line-height: 1.65;
  max-width: 380px;
  margin: 8px auto 24px;
}
.mp-empty-hero__actions {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.mp-empty-hero__link {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: #00807B;
}
.mp-empty-hero__link:hover { color: #006B67; text-decoration: underline; }

.mp-howto-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: #8C8C8C;
  text-align: center; margin-bottom: 16px;
}
.mp-howto {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%; max-width: 920px;
}
.mp-howto-card {
  position: relative;
  background: #fff;
  border: 1px solid #E6E6E6;
  border-radius: 12px;
  padding: 22px 22px 20px;
}
.mp-howto-card__num {
  position: absolute; top: -12px; left: 22px;
  width: 28px; height: 28px; border-radius: 9999px;
  background: #00807B; color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 3px solid #F8F8F8;
}
.mp-howto-card__icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: #E6F3F3; color: #00807B;
  display: grid; place-items: center;
  margin: 6px 0 14px;
}
.mp-howto-card__icon svg { width: 18px; height: 18px; stroke-width: 1.75; }
.mp-howto-card__heading {
  font-size: 14.5px; font-weight: 700; color: #333333;
  margin-bottom: 6px;
}
.mp-howto-card__desc {
  font-size: 12.5px; color: #666666;
  line-height: 1.55;
}

/* Toast */
.mp-toast {
  position: fixed; right: 28px; bottom: 28px;
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1px solid #E6E6E6;
  border-radius: 8px;
  padding: 14px 16px 14px 14px;
  box-shadow: 0 10px 24px rgba(51,51,51,0.10), 0 4px 8px rgba(51,51,51,0.04);
  max-width: 360px;
  z-index: 50;
}
.mp-toast__icon {
  width: 24px; height: 24px; border-radius: 9999px;
  background: #1E9E78; color: #fff;
  display: grid; place-items: center;
  flex-shrink: 0; margin-top: 1px;
}
.mp-toast__icon svg { width: 14px; height: 14px; stroke-width: 3; }
.mp-toast__title { font-size: 13px; font-weight: 700; color: #333333; }
.mp-toast__msg { font-size: 12.5px; color: #666666; margin-top: 2px; line-height: 1.45; }
.mp-toast__close {
  background: transparent; border: none; cursor: pointer;
  color: #8C8C8C; padding: 0; margin-left: 4px;
  display: grid; place-items: center;
  width: 20px; height: 20px;
}
.mp-toast__close svg { width: 14px; height: 14px; }
.mp-toast__close:hover { color: #333333; }

/* ---------- Focus rings (accessibility) ---------- */
:where(.mp-app button, .mp-app a, .mp-app input):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,128,123,0.35);
  border-radius: 8px;
}
