/* ═══════════════════════════════════════════════════════════════════════════
   PropertyDesk — Maintenance Triage Dashboard   (pd-mp-*)
   Visual identity matches pd-ul-* (units page) exactly.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper ──────────────────────────────────────────────────────────────── */
.pd-mp-wrap { max-width: 100%; margin: 0 0 40px; font-family: inherit; }

/* ── Sub-header ───────────────────────────────────────────────────────────── */
.pd-mp-subhdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 8px;
}
.pd-mp-subhdr__meta { font-size: 13px; color: #64748b; font-weight: 500; }
.pd-mp-subhdr__acts { display: flex; gap: 8px; align-items: center; }

/* Export buttons */
.pd-mp-btn-csv {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; background: #f0faf4; color: #166534 !important;
  border: 1px solid #bbf7d0; border-radius: 5px; font-size: 12px; font-weight: 500;
  text-decoration: none !important; white-space: nowrap; transition: background .15s;
}
.pd-mp-btn-csv:hover { background: #dcfce7; border-color: #86efac; }
.pd-mp-btn-new {
  display: inline-flex; align-items: center; gap: 6px;
  background: #2e8b57; color: #fff !important;
  padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 500;
  text-decoration: none !important; white-space: nowrap; transition: background .15s;
}
.pd-mp-btn-new:hover { background: #267a4c; color: #fff !important; }

/* ── KPI strip (4 cards, top stripe accent) ──────────────────────────────── */
.pd-mp-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin-bottom: 18px;
}
@media (max-width: 1100px) { .pd-mp-kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .pd-mp-kpis { grid-template-columns: repeat(2, 1fr); } }

.pd-mp-kpi {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  padding: 16px 18px; border-top: 3px solid #cbd5e1;
  transition: transform .12s, box-shadow .15s;
}
.pd-mp-kpi--neutral { border-top-color: #94a3b8; }
.pd-mp-kpi--good    { border-top-color: #22c55e; }
.pd-mp-kpi--warn    { border-top-color: #f59e0b; }
.pd-mp-kpi--bad     { border-top-color: #ef4444; }
.pd-mp-kpi--info    { border-top-color: #0d9488; }
.pd-mp-kpi--amber   { border-top-color: #f59e0b; background: linear-gradient(150deg, #fffbeb, #fff 70%); }

.pd-mp-kpi--clickable { cursor: pointer; }
.pd-mp-kpi--clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46,139,87,.08);
}
.pd-mp-kpi--bad.pd-mp-kpi--clickable:hover  { box-shadow: 0 4px 12px rgba(239,68,68,.10); }
.pd-mp-kpi--warn.pd-mp-kpi--clickable:hover { box-shadow: 0 4px 12px rgba(245,158,11,.10); }

.pd-mp-kpi__lbl  { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin-bottom: 6px; }
.pd-mp-kpi__val  { font-size: 22px; font-weight: 700; color: #0f172a; line-height: 1; font-variant-numeric: tabular-nums; }
.pd-mp-kpi__sub  { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.pd-mp-kpi__alert { color: #ef4444; font-size: 13px; margin-left: 4px; }

@keyframes pd-mp-kpi-pulse {
  0%, 100% { border-top-color: #f59e0b; }
  50%       { border-top-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
}
.pd-mp-kpi--pulse { animation: pd-mp-kpi-pulse 2s ease-in-out infinite; }

/* ── Intelligence row: Needs Attention (left 60%) + Status Breakdown (40%) ── */
.pd-mp-intel {
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 14px; margin-bottom: 18px; align-items: start;
}
@media (max-width: 900px) { .pd-mp-intel { grid-template-columns: 1fr; } }

/* Generic panel shell */
.pd-mp-panel {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden;
}
.pd-mp-panel__hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #475569;
}

/* Needs Attention list */
.pd-mp-needs { max-height: 260px; overflow-y: auto; }
.pd-mp-needs__row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr auto auto;
  align-items: center; gap: 10px;
  padding: 7px 14px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
  text-decoration: none !important;
  color: #374151;
  transition: background .12s;
}
.pd-mp-needs__row:last-child { border-bottom: none; }
.pd-mp-needs__row:hover { background: #f0fdf4; }
.pd-mp-needs__id    { font-weight: 700; color: #2e8b57; font-size: 12px; }
.pd-mp-needs__unit  { color: #475569; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-mp-needs__issue { color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-mp-needs__empty { padding: 18px 14px; font-size: 12px; color: #94a3b8; font-style: italic; text-align: center; }

/* Status Breakdown bars */
.pd-mp-bars { padding: 12px 14px; }
.pd-mp-bar-row {
  display: grid; grid-template-columns: 100px 1fr 30px;
  align-items: center; gap: 10px; padding: 4px 0;
  font-size: 12px;
}
.pd-mp-bar-lbl { color: #475569; }
.pd-mp-bar-track {
  background: #f1f5f9; height: 10px; border-radius: 3px; overflow: hidden;
}
.pd-mp-bar { height: 100%; border-radius: 3px; transition: width .3s; }
.pd-mp-bar--new         { background: #0d9488; }
.pd-mp-bar--assigned    { background: #2e8b57; }
.pd-mp-bar--in_progress { background: #f59e0b; }
.pd-mp-bar--done        { background: #22c55e; }
.pd-mp-bar--closed      { background: #94a3b8; }
.pd-mp-bar-cnt { text-align: right; font-weight: 600; color: #0f172a; font-variant-numeric: tabular-nums; }
.pd-mp-bars__total {
  padding: 8px 14px; border-top: 1px solid #f3f4f6;
  font-size: 11px; color: #94a3b8;
}
.pd-mp-bars__total strong { color: #0f172a; font-weight: 700; }

/* ── Main panel (tabs + filters + table + pager) ──────────────────────────── */
.pd-mp-main { border: 1px solid #dee2e6; border-radius: 6px; overflow: hidden; background: #fff; }

/* ── Status tabs — pdc-tabn / pd-ul-tabs pattern ──────────────────────────── */
.pd-mp-tabs {
  display: flex; gap: 0; border-bottom: 1px solid #dee2e6;
  background: #f1f3f5; overflow: hidden;
}
.pd-mp-tab {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 16px; font-size: 13px; font-weight: 500; color: #2e8b57;
  cursor: pointer; border: none; border-bottom: 3px solid transparent;
  border-right: 1px solid #dee2e6; background: #f1f3f5; white-space: nowrap;
  transition: background .12s, color .12s;
}
.pd-mp-tab:last-child { border-right: none; }
.pd-mp-tab:hover { color: #267a4c; background: #e9ecef; }
.pd-mp-tab--active,
.pd-mp-tab--active:hover {
  color: #2e8b57 !important; background: #fff !important;
  border-bottom-color: #2e8b57 !important; font-weight: 700 !important;
}
.pd-mp-tab__cnt {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
  background: #e2e8f0; color: #475569;
}
.pd-mp-tab--active .pd-mp-tab__cnt { background: #dcfce7; color: #166534; }
.pd-mp-tab__icon { font-size: 11px; }

/* ── Filter bar ───────────────────────────────────────────────────────────── */
.pd-mp-filters {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
  padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #e5e7eb;
}
.pd-mp-fg { display: flex; flex-direction: column; gap: 3px; }
.pd-mp-fg label { font-size: 11px; color: #6b7280; font-weight: 500; }

.pd-mp-fsel, .pd-mp-finput {
  padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 5px;
  font-size: 13px; background: #fff; color: #374151; min-width: 130px;
}
.pd-mp-fsel:focus, .pd-mp-finput:focus {
  outline: none; border-color: #2e8b57; box-shadow: 0 0 0 2px rgba(46,139,87,.12);
}

/* Autocomplete dropdown */
.pd-mp-ac-wrap { position: relative; }
.pd-mp-ac-results {
  display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 1000;
  background: #fff; border: 1px solid #d1d5db; border-top: none;
  border-radius: 0 0 5px 5px; max-height: 220px; overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.pd-mp-ac-item {
  display: block; padding: 8px 10px; font-size: 13px; color: #374151;
  cursor: pointer; border-bottom: 1px solid #f3f4f6;
  text-decoration: none !important;
}
.pd-mp-ac-item:hover { background: #f0fdf4; color: #2e8b57; }
.pd-mp-ac-item:last-child { border-bottom: none; }
.pd-mp-ac-type {
  display: inline-block; font-size: 9.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: #94a3b8; margin-right: 6px;
}

/* Reset button */
.pd-mp-reset-btn {
  display: none; padding: 7px 14px; border-radius: 5px; font-size: 13px;
  font-weight: 500; cursor: pointer; border: 1px solid #d1d5db;
  background: #fff; color: #374151; white-space: nowrap; align-self: flex-end;
}
.pd-mp-reset-btn:hover { background: #f3f4f6; }
.pd-mp-reset-btn--visible { display: inline-flex; }

/* ── Table — pdc-tbl / pd-ul-tbl pattern ──────────────────────────────────── */
.pd-mp-tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }

.pd-mp-tbl thead th {
  background: #2e8b57; color: #fff; padding: 10px 12px;
  text-align: left; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: .5px; white-space: nowrap;
}
.pd-mp-th[data-col] { cursor: pointer; user-select: none; }
.pd-mp-th[data-col]:hover { background: #267a4c; }
.pd-mp-th--sorted { background: #1f7248 !important; }
.pd-mp-sort-arrow { font-size: 10px; opacity: .7; margin-left: 3px; }

.pd-mp-tbl tbody td {
  padding: 11px 12px; border-bottom: 1px solid #e5e7eb;
  vertical-align: middle; color: #374151; font-size: 14px;
}
.pd-mp-tbl tbody td                    { text-align: left; }
.pd-mp-tbl tbody tr:nth-child(odd) td  { background: #ffffff !important; }
.pd-mp-tbl tbody tr:nth-child(even) td { background: #f0f9f3 !important; }
.pd-mp-tbl tbody tr:last-child td      { border-bottom: none; }
.pd-mp-tbl tbody tr:hover td           { background: #e2f0e6 !important; }
.pd-mp-tbl tbody tr[data-href] { cursor: pointer; }
.pd-mp-tbl tbody td a { color: #2e8b57; text-decoration: none; }
.pd-mp-tbl tbody td a:hover { text-decoration: underline; }

/* Row left-border status tint */
.pd-mp-tbl tbody tr { border-left: 3px solid transparent; }
.pd-mp-tr--new         { border-left-color: #0d9488 !important; }
.pd-mp-tr--assigned    { border-left-color: #2e8b57 !important; }
.pd-mp-tr--in_progress { border-left-color: #f59e0b !important; }
.pd-mp-tr--done        { border-left-color: #22c55e !important; }
.pd-mp-tr--closed      { border-left-color: #94a3b8 !important; }

/* ── Priority pills ───────────────────────────────────────────────────────── */
.pd-mp-pri {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600;
  text-transform: capitalize; white-space: nowrap;
}
.pd-mp-pri__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pd-mp-pri--emergency { background: #fee2e2; color: #991b1b; }
.pd-mp-pri--emergency .pd-mp-pri__dot { background: #ef4444; }
.pd-mp-pri--high      { background: #ffedd5; color: #9a3412; }
.pd-mp-pri--high      .pd-mp-pri__dot { background: #f97316; }
.pd-mp-pri--normal    { background: #e0e7ff; color: #3730a3; }
.pd-mp-pri--normal    .pd-mp-pri__dot { background: #6366f1; }
.pd-mp-pri--low       { background: #f3f4f6; color: #6b7280; }
.pd-mp-pri--low       .pd-mp-pri__dot { background: #9ca3af; }

/* ── Status pills ─────────────────────────────────────────────────────────── */
.pd-mp-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600;
  text-transform: capitalize; white-space: nowrap;
}
.pd-mp-pill__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pd-mp-pill--new         { background: #ccfbf1; color: #115e59; }
.pd-mp-pill--new         .pd-mp-pill__dot { background: #14b8a6; }
.pd-mp-pill--assigned    { background: #dcfce7; color: #166534; }
.pd-mp-pill--assigned    .pd-mp-pill__dot { background: #22c55e; }
.pd-mp-pill--in_progress { background: #fef3c7; color: #92400e; }
.pd-mp-pill--in_progress .pd-mp-pill__dot { background: #f59e0b; }
.pd-mp-pill--done        { background: #dbeafe; color: #1e40af; }
.pd-mp-pill--done        .pd-mp-pill__dot { background: #3b82f6; }
.pd-mp-pill--closed      { background: #f3f4f6; color: #6b7280; }
.pd-mp-pill--closed      .pd-mp-pill__dot { background: #9ca3af; }

/* ── SLA pill (Phase 8) ───────────────────────────────────────────────────── */
.pd-mp-sla {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 3px;
}
.pd-mp-sla--ok       { background: #dcfce7; color: #166534; }
.pd-mp-sla--warn     { background: #fef3c7; color: #92400e; }
.pd-mp-sla--breach   { background: #fee2e2; color: #991b1b; }
.pd-mp-sla--resolved { background: #dbeafe; color: #1e40af; }

/* ── Days Open + Next date inline tints ───────────────────────────────────── */
.pd-mp-days--cold { color: #6b7280; font-weight: 500; }
.pd-mp-days--warm { color: #b45309; font-weight: 600; }
.pd-mp-days--hot  { color: #b91c1c; font-weight: 700; }
.pd-mp-needs__days {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 11px; font-weight: 700;
}
.pd-mp-needs__days--cold { background: #f3f4f6; color: #6b7280; }
.pd-mp-needs__days--warm { background: #fef3c7; color: #92400e; }
.pd-mp-needs__days--hot  { background: #fee2e2; color: #991b1b; }
.pd-mp-overdue-date { color: #b91c1c; font-weight: 700; }
.pd-mp-muted { color: #94a3b8; }

/* ── Empty / Loading states ───────────────────────────────────────────────── */
.pd-mp-empty   { padding: 28px; text-align: center; color: #6b7280; font-size: 14px; background: #f9fafb; }
.pd-mp-loading { padding: 28px; text-align: center; color: #9ca3af; font-size: 13px; }
.pd-mp-empty__icon { font-size: 28px; opacity: .55; margin-bottom: 4px; }
.pd-mp-empty__msg  { margin-bottom: 10px; font-size: 14px; }
.pd-mp-clear-filters {
  display: inline-block; padding: 7px 16px; background: #2e8b57; color: #fff !important;
  border: none; border-radius: 5px; font-size: 13px; font-weight: 500; cursor: pointer;
  text-decoration: none !important;
}
.pd-mp-clear-filters:hover { background: #267a4c; }

/* ── Pager — pdc-pgb pattern ──────────────────────────────────────────────── */
.pd-mp-pager {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-top: 1px solid #e5e7eb;
  flex-wrap: wrap; gap: 8px;
}
.pd-mp-pager__info { font-size: 13px; color: #6b7280; font-weight: 500; }
.pd-mp-pager__btns { display: flex; gap: 4px; }
.pd-mp-pg-btn {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0 10px; border-radius: 5px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1px solid #d1d5db; background: #fff; color: #374151;
}
.pd-mp-pg-btn:hover:not(:disabled) { background: #f3f4f6; }
.pd-mp-pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pd-mp-pg-curr { font-weight: 700; color: #2e8b57; padding: 0 6px; align-self: center; font-size: 13px; }

/* ── Loading dim ──────────────────────────────────────────────────────────── */
.pd-mp-wrap.pd-mp-busy .pd-mp-main { opacity: .55; pointer-events: none; transition: opacity .15s; }

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pd-mp-subhdr  { flex-direction: column; align-items: flex-start; }
  .pd-mp-filters { flex-direction: column; align-items: stretch; }
  .pd-mp-fsel, .pd-mp-finput { min-width: unset; width: 100%; }
  .pd-mp-pager   { flex-direction: column; }
  .pd-mp-needs__row { grid-template-columns: 60px 1fr auto auto; gap: 6px; }
  .pd-mp-needs__issue { display: none; }
  .pd-mp-tbl thead th:nth-child(3),
  .pd-mp-tbl tbody td:nth-child(3),
  .pd-mp-tbl thead th:nth-child(8),
  .pd-mp-tbl tbody td:nth-child(8) { display: none; }
}

/* ── RTL ──────────────────────────────────────────────────────────────────── */
[dir="rtl"] .pd-mp-tbl tbody tr,
[dir="rtl"] .pd-mp-tbl thead th { text-align: right; }

/* ── Phase 11 — Bulk actions ─────────────────────────────────────────────── */
.pd-mp-th-cb,
.pd-mp-td-cb {
  width: 36px;
  text-align: center;
  padding: 6px 4px;
}
.pd-mp-th-cb input[type="checkbox"],
.pd-mp-td-cb input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
  accent-color: #0f5132;
}
.pd-mp-tbl--bulk tbody tr { cursor: default; }
.pd-mp-tbl--bulk tbody tr td:not(.pd-mp-td-cb) { cursor: pointer; }

.pd-mp-bulk-bar {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #0f172a;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid #d9e8df;
  box-shadow: 0 14px 32px rgba(15, 81, 50, .18), 0 4px 12px rgba(15, 81, 50, .10);
  font-size: .9em;
  max-width: calc(100vw - 32px);
  flex-wrap: wrap;
  justify-content: center;
  white-space: nowrap;
}
.pd-mp-bulk-bar[hidden] { display: none; }
.pd-mp-bulk-bar__count {
  font-weight: 600;
  color: #334155;
  padding-right: 10px;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
  font-size: .9em;
}
[dir="rtl"] .pd-mp-bulk-bar__count {
  padding-right: 0;
  padding-left: 10px;
  border-right: 0;
  border-left: 1px solid #e2e8f0;
}
.pd-mp-bulk-bar__count #pd-mp-bulk-count {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  background: #0f5132;
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
  margin-right: 6px;
  font-size: .9em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
[dir="rtl"] .pd-mp-bulk-bar__count #pd-mp-bulk-count {
  margin-right: 0;
  margin-left: 6px;
}
.pd-mp-bulk-bar__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  align-items: center;
}
.pd-mp-bulk-btn {
  background: #ffffff;
  border: 1px solid #cfd9d2;
  color: #0f5132;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: .85em;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease, transform .08s ease;
  white-space: nowrap;
}
.pd-mp-bulk-btn:hover {
  background: #ecf6f0;
  border-color: #0f5132;
  color: #0f5132;
}
.pd-mp-bulk-btn:active { transform: translateY(1px); }
.pd-mp-bulk-btn--accent {
  background: #0f5132;
  border-color: #0f5132;
  color: #ffffff;
}
.pd-mp-bulk-btn--accent:hover {
  background: #0c4128;
  border-color: #0c4128;
  color: #ffffff;
}
.pd-mp-bulk-clear {
  background: transparent;
  border: 0;
  color: #64748b;
  padding: 5px 6px;
  cursor: pointer;
  font-size: .82em;
  text-decoration: underline;
  font-weight: 500;
  white-space: nowrap;
}
.pd-mp-bulk-clear:hover { color: #0f172a; }

/* Modal */
.pd-mp-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-mp-modal[hidden] { display: none; }
.pd-mp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}
.pd-mp-modal__panel {
  position: relative;
  width: 440px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
.pd-mp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.pd-mp-modal__head h3 { margin: 0; font-size: 1.05em; color: #0f172a; }
.pd-mp-modal__close {
  background: transparent;
  border: 0;
  font-size: 1.5em;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}
.pd-mp-modal__body { padding: 18px 20px; }
.pd-mp-modal__body label {
  display: block;
  font-size: .9em;
  color: #475569;
  margin-bottom: 6px;
  font-weight: 600;
}
.pd-mp-modal__body input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: .95em;
  box-sizing: border-box;
}
.pd-mp-modal__body input[type="text"]:focus {
  outline: 0;
  border-color: #0f5132;
  box-shadow: 0 0 0 3px rgba(15, 81, 50, .15);
}
.pd-mp-modal__hint {
  margin: 12px 0 0 0;
  font-size: .85em;
  color: #64748b;
  line-height: 1.5;
}
.pd-mp-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.pd-mp-modal__foot .pd-mp-bulk-btn--accent { background: #0f5132; border-color: #0f5132; color: #fff; }
.pd-mp-modal__foot .pd-mp-bulk-btn--accent:hover { background: #0c4128; border-color: #0c4128; }
.pd-mp-modal__foot .pd-mp-bulk-clear { color: #475569; }

.pd-mp-vendor-suggest {
  margin-top: 6px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.pd-mp-vendor-suggest:empty { display: none; }
.pd-mp-vendor-suggest__item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: .92em;
  border-bottom: 1px solid #f1f5f9;
}
.pd-mp-vendor-suggest__item:last-child { border-bottom: 0; }
.pd-mp-vendor-suggest__item:hover { background: #ecf6f0; color: #0f5132; }
.pd-mp-vendor-suggest__empty {
  padding: 10px 12px;
  font-size: .85em;
  color: #94a3b8;
  text-align: center;
}

/* Toast */
.pd-mp-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translate(-50%, 12px);
  z-index: 1200;
  padding: 10px 18px;
  border-radius: 8px;
  background: #0f5132;
  color: #fff;
  font-size: .9em;
  box-shadow: 0 8px 24px rgba(15, 81, 50, .25);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.pd-mp-toast--show { opacity: 1; transform: translate(-50%, 0); }
.pd-mp-toast--warn { background: #d97706; }
.pd-mp-toast--err  { background: #b91c1c; }

@media (max-width: 768px) {
  .pd-mp-bulk-bar { bottom: 12px; padding: 10px 14px; gap: 10px; font-size: .85em; }
  .pd-mp-bulk-btn { padding: 5px 10px; font-size: .85em; }
}
