/* RepairLane Trade Portal: scoped to .rlp so it sits inside any WordPress theme */
.rlp {
  --rlp-accent: #3a2f94;
  --rlp-text: #1d1d24;
  --rlp-muted: #6b6b78;
  --rlp-line: #dcdce4;
  --rlp-soft: #f5f5fa;
  --rlp-good: #157a3c;
  --rlp-bad: #b3261e;
  --rlp-amber: #9a5b00;
  color: var(--rlp-text);
  font-size: 16px;
  line-height: 1.45;
  max-width: 920px;
  margin: 0 auto;
}
.rlp *, .rlp *::before, .rlp *::after { box-sizing: border-box; }
.rlp h2 { margin: 0 0 4px; font-size: 1.5em; }
.rlp h3 { margin: 22px 0 8px; font-size: 1.1em; }
.rlp-muted { color: var(--rlp-muted); }
.rlp-small { font-size: 0.85em; }
.rlp-mono { font-family: Consolas, "SF Mono", Menlo, monospace; }
.rlp-good { color: var(--rlp-good); }
.rlp-due { color: var(--rlp-bad); font-weight: 600; }
.rlp-card { border: 1px solid var(--rlp-line); border-radius: 12px; padding: 22px; background: #fff; }
.rlp-narrow { max-width: 420px; margin: 0 auto; }
.rlp label { display: block; font-weight: 600; font-size: 0.9em; margin: 0 0 12px; }
.rlp input:not([type="radio"]):not([type="checkbox"]), .rlp textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-weight: 400;
  border: 1px solid var(--rlp-line); border-radius: 8px; background: #fff; color: var(--rlp-text);
}
.rlp input:focus, .rlp textarea:focus { outline: 2px solid var(--rlp-accent); outline-offset: 0; border-color: transparent; }
.rlp input:disabled { background: var(--rlp-soft); }
.rlp-btn {
  display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--rlp-line); background: #fff;
  color: var(--rlp-text); font: inherit; font-weight: 600; cursor: pointer; line-height: 1.2;
}
.rlp-btn:hover { border-color: var(--rlp-accent); }
.rlp-primary { background: var(--rlp-accent); border-color: var(--rlp-accent); color: #fff; }
.rlp-primary:hover { filter: brightness(1.1); }
.rlp-btn:disabled { opacity: 0.6; cursor: wait; }
.rlp-link { background: none; border: 0; padding: 0; color: var(--rlp-accent); font: inherit; cursor: pointer; text-decoration: underline; }
.rlp-error { color: var(--rlp-bad); margin: 0 0 12px; }
.rlp-note { background: #eef0ff; border: 1px solid #cfd3ff; padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; }
.rlp-note .rlp-btn { margin-left: 8px; padding: 5px 10px; }
.rlp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.rlp-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--rlp-line); margin-bottom: 16px; }
.rlp-tabs button {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; font-weight: 600;
  color: var(--rlp-muted); cursor: pointer; margin-bottom: -1px;
}
.rlp-tabs button.on { color: var(--rlp-accent); border-bottom-color: var(--rlp-accent); }
.rlp-search { margin-bottom: 6px; }
.rlp-count { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--rlp-soft); color: var(--rlp-muted); font-size: 0.8em; text-align: center; }
.rlp-job { border: 1px solid var(--rlp-line); border-left: 4px solid var(--rlp-accent); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.rlp-pending { border-left-color: #8b8fb5; background: var(--rlp-soft); }
.rlp-job-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.rlp-device { font-weight: 600; }
.rlp-right { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.rlp-job-body { margin-top: 8px; display: grid; gap: 3px; font-size: 0.95em; }
.rlp-label { display: inline-block; min-width: 110px; color: var(--rlp-muted); }
.rlp-status, .rlp-badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 0.8em; font-weight: 700; background: var(--rlp-soft); white-space: nowrap; }
.rlp-s-awaiting_device { background: #e8ebf5; color: #4e5f8c; }
.rlp-s-received, .rlp-s-diagnosing, .rlp-s-in_repair { background: #e6f0fb; color: #1f5f9e; }
.rlp-s-awaiting_customer { background: #f1e9fb; color: #6b3fa0; }
.rlp-s-awaiting_parts { background: #fdf0de; color: var(--rlp-amber); }
.rlp-s-ready { background: #e3f5e9; color: var(--rlp-good); }
.rlp-s-collected { background: #eceff1; color: #455a64; }
.rlp-s-cancelled, .rlp-s-recycled, .rlp-s-bought { background: #f3e9e7; color: #8a4f47; }
.rlp-successful { background: #e3f5e9; color: var(--rlp-good); }
.rlp-not_successful { background: #fbe9e7; color: var(--rlp-bad); }
.rlp-diagnosed { background: #e6f0fb; color: #1f5f9e; }
.rlp-item { border: 1px solid var(--rlp-line); border-radius: 10px; padding: 12px 14px 2px; margin: 0 0 12px; position: relative; }
.rlp-item legend { font-weight: 700; padding: 0 6px; }
.rlp-remove { position: absolute; top: 8px; right: 14px; font-size: 0.9em; }
.rlp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rlp-picks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rlp-chip { border: 1px solid var(--rlp-line); background: #fff; border-radius: 14px; padding: 3px 10px; font: inherit; font-size: 0.85em; font-weight: 500; cursor: pointer; }
.rlp-chip.on { background: var(--rlp-accent); border-color: var(--rlp-accent); color: #fff; }
.rlp-choice { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.rlp-choice label { font-weight: 500; display: flex; align-items: center; gap: 6px; margin: 0; }
.rlp-foot { margin-top: 18px; }
/* Website themes style every <button> (e.g. white text until hovered): the portal's own buttons keep their look */
.rlp button { text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; text-shadow: none !important;
  min-height: 0 !important; width: auto; }
.rlp .rlp-btn, .rlp .rlp-btn:hover, .rlp .rlp-btn:focus, .rlp .rlp-btn:active {
  background: #fff !important; color: var(--rlp-text) !important; border: 1px solid var(--rlp-line) !important; }
.rlp .rlp-btn:hover { border-color: var(--rlp-accent) !important; }
.rlp .rlp-primary, .rlp .rlp-primary:hover, .rlp .rlp-primary:focus, .rlp .rlp-primary:active {
  background: var(--rlp-accent) !important; color: #fff !important; border-color: var(--rlp-accent) !important; }
.rlp .rlp-chip, .rlp .rlp-chip:hover, .rlp .rlp-chip:focus, .rlp .rlp-chip:active {
  background: #fff !important; color: var(--rlp-text) !important; border: 1px solid var(--rlp-line) !important; }
.rlp .rlp-chip:hover { border-color: var(--rlp-accent) !important; }
.rlp .rlp-chip.on, .rlp .rlp-chip.on:hover, .rlp .rlp-chip.on:focus {
  background: var(--rlp-accent) !important; color: #fff !important; border-color: var(--rlp-accent) !important; }
.rlp .rlp-link, .rlp .rlp-link:hover, .rlp .rlp-link:focus, .rlp .rlp-link:active {
  background: none !important; color: var(--rlp-accent) !important; border: 0 !important; padding: 0 !important; }
.rlp .rlp-tabs button, .rlp .rlp-tabs button:hover, .rlp .rlp-tabs button:focus {
  background: none !important; color: var(--rlp-muted) !important; border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0 !important; }
.rlp .rlp-tabs button.on, .rlp .rlp-tabs button.on:hover { color: var(--rlp-accent) !important; border-bottom-color: var(--rlp-accent) !important; }
.rlp input::placeholder, .rlp textarea::placeholder { color: #9a9aa6 !important; opacity: 1; }
.rlp input, .rlp textarea { color: var(--rlp-text) !important; background: #fff !important; }
.rlp input:disabled { background: var(--rlp-soft) !important; }

.rlp select { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-weight: 400;
  border: 1px solid var(--rlp-line); border-radius: 8px; background: #fff !important; color: var(--rlp-text) !important; }
.rlp-warn { display: block; margin-top: 6px; padding: 6px 9px; border-radius: 6px; background: #fff6e5; color: var(--rlp-amber);
  font-size: 0.85em; font-weight: 500; }
.rlp-pop-back { position: fixed; inset: 0; background: rgba(20, 20, 30, 0.45); display: flex; align-items: center;
  justify-content: center; padding: 16px; z-index: 99999; max-width: none; }
.rlp-pop { background: #fff; color: var(--rlp-text); border-radius: 12px; padding: 20px 22px; max-width: 460px; width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25); }
.rlp-pop h3 { margin: 0 0 8px; }
.rlp-pop p { margin: 0 0 10px; }
.rlp-pop-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 14px; }

.rlp-wide { max-width: 680px; margin: 0 auto; }
.rlp-signup { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rlp-line); display: flex; flex-wrap: wrap;
  align-items: center; gap: 8px 12px; color: var(--rlp-muted); font-size: 0.92em; }
.rlp-check { display: flex !important; align-items: flex-start; gap: 8px; font-weight: 500 !important; margin: 10px 0 !important; }
.rlp-check input { margin-top: 4px; }
.rlp-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rlp-meter { height: 6px; border-radius: 3px; background: var(--rlp-soft); overflow: hidden; margin: -6px 0 4px; }
.rlp-meter span { display: block; height: 100%; width: 0; transition: width 0.2s; }
.rlp-meter .rlp-s1 { background: var(--rlp-bad); }
.rlp-meter .rlp-s2 { background: var(--rlp-amber); }
.rlp-meter .rlp-s3 { background: #4c9a2a; }
.rlp-meter .rlp-s4 { background: var(--rlp-good); }
.rlp-meter-text { margin: 0 0 6px; }

@media (max-width: 640px) {
  .rlp-grid { grid-template-columns: 1fr; }
  .rlp-job-top { flex-direction: column; }
  .rlp-right { justify-content: flex-start; }
  .rlp-label { min-width: 0; display: block; font-size: 0.85em; }
  .rlp-card { padding: 16px; }
}
