/* ============================================================================
 * ECHO demo — Package Review (Assignment rail)
 * ============================================================================
 * The page is its own design (see "package Review.png"), so every rule here is
 * scoped under .pr-page and this sheet loads last: names it shares with the
 * captured panes (.container, table, td, button) cannot leak in, and its own
 * names cannot leak out.
 * ========================================================================= */

#demoPaneHost .container.pr-container {
  padding: 0;
  overflow: hidden;
  background: #f4f7fb;
}

.pr-page {
  --pr-brand: #0d61f8;
  --pr-brand-dark: #1d4ed8;
  --pr-ink: #0f172a;
  --pr-ink2: #334155;
  --pr-ink3: #64748b;
  --pr-label: #55637a;
  --pr-line: #e8ecf2;
  --pr-line2: #eef1f6;
  --pr-soft: #f7f9fc;
  height: 100%;
  box-sizing: border-box;
  /* pkg-review.js scales the page to the pane instead of scrolling it. */
  overflow: hidden;
  padding: 14px 16px 18px;
  background: #f4f7fb;
  color: var(--pr-ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.pr-page * {
  box-sizing: border-box;
}

.pr-page p,
.pr-page ul,
.pr-page li {
  margin: 0;
  padding: 0;
}

.pr-page ul {
  list-style: none;
}

/* :where() keeps this reset at one class of weight, so a control's own colour,
 * weight and size (below) still win — written as `.pr-page button` it outranked
 * every one of them and flattened the lot back to the page's ink. */
.pr-page :where(button) {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.pr-page svg {
  display: block;
}

/* ── header ─────────────────────────────────────────────────────────────── */

.pr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pr-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pr-title h1 {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.pr-badge {
  background: #fbe2af;
  color: #a06a14;
  border-radius: 7px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
}

.pr-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
  color: #6b7788;
  font-size: 12.5px;
}

.pr-meta .sep {
  width: 1px;
  height: 12px;
  background: #d7dde6;
}

.pr-acts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.pr-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #c7d9f5;
  border-radius: 9px;
  background: #fff;
  color: var(--pr-brand);
  font-size: 13px;
  font-weight: 600;
}

.pr-btn:hover {
  background: #f5f9ff;
  border-color: #a9c6f2;
}

.pr-btn--primary {
  background: var(--pr-brand);
  border-color: var(--pr-brand);
  color: #fff;
}

.pr-btn--primary:hover {
  background: #0b55dd;
  border-color: #0b55dd;
}

/* ── the seven review steps ─────────────────────────────────────────────── */

.pr-steps {
  display: flex;
  gap: 7px;
  margin-top: 21px;
  padding: 3px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 36, 64, .06);
}

.pr-step {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 41px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #eef2f7;
  color: #3b4a5f;
  font-size: 11px;
  text-align: left;
}

.pr-step .n {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #c7ced9;
  color: #1e2637;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.pr-step .t {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pr-step:hover {
  background: #e6ecf4;
}

.pr-step.is-on,
.pr-step.is-on:hover {
  background: var(--pr-brand);
  color: #fff;
  font-weight: 600;
}

.pr-step.is-on .n {
  background: #fff;
  color: var(--pr-brand);
}

/* ── the page body ──────────────────────────────────────────────────────── */

.pr-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 15px;
}

.pr-row {
  display: grid;
  gap: 14px;
}

.pr-row--main {
  grid-template-columns: 2.07fr 1fr;
}

.pr-row--split {
  grid-template-columns: 1fr 1fr;
}

.pr-side {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pr-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--pr-line);
  border-radius: 12px;
  padding: 13px;
  box-shadow: 0 1px 2px rgba(16, 36, 64, .04);
}

/* The row's own height is the title's, so an Edit button taller than it climbs
 * into the padding rather than pushing the card open. */
.pr-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 22px;
  margin-bottom: 10px;
}

.pr-card-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.pr-card-head h3 .soft {
  font-weight: 600;
  color: #3b4a5f;
}

.pr-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
  color: var(--pr-brand);
  font-size: 12.5px;
  font-weight: 600;
}

.pr-edit:hover {
  border-color: #b9cde9;
  background: #f7fbff;
}

/* ── label / value grids ────────────────────────────────────────────────── */

.pr-box {
  border: 1px solid var(--pr-line);
  border-radius: 10px;
  overflow: hidden;
}

.pr-page table {
  border-collapse: separate;
  border-spacing: 0;
}

.pr-fields-wrap {
  display: grid;
  grid-template-columns: 1.109fr 1fr;
  gap: 13px;
}

.pr-fields {
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
}

.pr-fields td {
  height: 32px;
  padding: 0;
  border-bottom: 1px solid var(--pr-line2);
  vertical-align: middle;
}

.pr-fields tr:last-child td {
  border-bottom: 0;
}

.pr-fields td.k {
  background: var(--pr-soft);
  border-right: 1px solid var(--pr-line2);
  color: var(--pr-label);
  padding: 0 6px 0 16px;
  white-space: nowrap;
}

.pr-fields td.v {
  background: #fff;
  color: #1f2937;
  padding: 0 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-fields td.v.is-key {
  font-weight: 600;
}

.pr-pill {
  display: inline-block;
  background: #fbe2af;
  color: #97631a;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
}

/* ── product image ──────────────────────────────────────────────────────── */

.pr-photo {
  height: 155px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef1f5;
}

.pr-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── key contacts ───────────────────────────────────────────────────────── */

.pr-contacts {
  width: 100%;
  table-layout: fixed;
  font-size: 12px;
}

.pr-contacts td {
  height: 30px;
  border-bottom: 1px solid var(--pr-line2);
  vertical-align: middle;
}

.pr-contacts tr:last-child td {
  border-bottom: 0;
}

.pr-contacts td.k {
  background: var(--pr-soft);
  border-right: 1px solid var(--pr-line2);
  color: var(--pr-label);
  padding: 0 10px 0 16px;
}

.pr-contacts td.v {
  color: #1f2937;
  padding: 0 14px;
}

.pr-contacts td.a {
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
}

.pr-ico-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--pr-brand);
}

.pr-ico-btn:hover {
  background: #f1f6ff;
}

.pr-ico-btn + .pr-ico-btn {
  margin-left: 6px;
}

/* ── quick overview ─────────────────────────────────────────────────────── */

.pr-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 11px;
}

.pr-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 79px;
  padding: 9px 8px 9px 10px;
  border: 1px solid var(--pr-line);
  border-radius: 10px;
  background: #fff;
  text-align: left;
}

.pr-tile:hover {
  border-color: #cfdcee;
  box-shadow: 0 2px 8px rgba(16, 36, 64, .06);
}

.pr-tile .ico {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
}

.pr-tile .ico--blue {
  background: linear-gradient(180deg, #2b7bfb, #0d5ce8);
}

.pr-tile .ico--green {
  background: linear-gradient(180deg, #22a35f, #158a4c);
}

.pr-tile .ico--orange {
  background: linear-gradient(180deg, #fbab27, #f68b12);
}

.pr-tile .ico--red {
  background: linear-gradient(180deg, #f04438, #dc2626);
}

.pr-tile .ico--violet {
  background: linear-gradient(180deg, #b573f9, #a253f5);
}

.pr-tile .ico--slate {
  background: linear-gradient(180deg, #7d90a8, #64748b);
}

.pr-tile .main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pr-tile .lbl {
  color: #475569;
  font-size: 10px;
  line-height: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-tile .num {
  font-size: 22px;
  line-height: 26px;
  font-weight: 700;
  color: var(--pr-ink);
}

.pr-tile .num.ok {
  color: #0b7a3c;
}

.pr-tile .num.hot {
  color: #d92d20;
}

.pr-tile .sub {
  font-size: 10px;
  line-height: 15px;
  color: var(--pr-ink3);
}

.pr-tile .sub.blue {
  color: #1d4ed8;
}

.pr-tile .sub.ok {
  color: #15803d;
}

.pr-tile .sub.hot {
  color: #dc2626;
}

.pr-tile .sub.violet {
  color: #6d28d9;
}

.pr-tile .ring-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1px;
}

.pr-ring {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.pr-ring .track {
  stroke: #e2e8f0;
}

.pr-ring .arc {
  stroke: var(--pr-brand);
  stroke-linecap: round;
}

.pr-ring .val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--pr-ink);
}

/* The tile's own height is the label line above it, so the chevron is pinned to
 * the card's edge rather than given a column of its own — the longest label
 * (Special Requirements) then still reads in full. */
.pr-tile .chev {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pr-brand-dark);
}

/* ── scope summary ──────────────────────────────────────────────────────── */

.pr-scope {
  color: var(--pr-ink2);
  font-size: 13px;
  line-height: 21px;
}

/* ── latest updates ─────────────────────────────────────────────────────── */

.pr-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--pr-brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.pr-link:hover {
  text-decoration: underline;
}

/* The list reset above is `.pr-page ul` (class + type), which outranks a bare
 * `.pr-timeline` — the gutter has to be spelled with .pr-page too or it is
 * cleared to 0 and the negative-offset dots land outside the card. */
.pr-page .pr-timeline {
  position: relative;
  padding-left: 26px;
}

.pr-timeline::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: #cfe0f7;
}

.pr-timeline li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 26px;
  border-bottom: 1px solid var(--pr-line2);
}

.pr-timeline li:last-child {
  border-bottom: 0;
}

.pr-timeline .dot {
  position: absolute;
  left: -26px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--pr-brand);
}

.pr-timeline li:first-child .dot {
  left: -28px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
}

.pr-timeline .tm {
  flex: 0 0 auto;
  width: 118px;
  color: #94a3b8;
  font-size: 12px;
}

.pr-timeline .tx {
  flex: 1;
  min-width: 0;
  color: var(--pr-ink2);
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pr-timeline .by {
  flex: 0 0 auto;
  color: var(--pr-ink3);
  font-size: 12px;
}

/* Reference alignment -------------------------------------------------------
 * The package-review capture is a desktop view with a deliberately generous
 * reading scale.  Keep the grid and markup above, but bring its type, rows,
 * controls, and cards up to the proportions of that reference. */
.pr-page {
  padding: 22px 22px 24px;
  font-size: 16px;
  background: #f4f7fb;
}

.pr-title {
  gap: 16px;
}

.pr-title h1 {
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0;
}

.pr-badge {
  padding: 8px 13px;
  border: 1px solid #f6ca6b;
  border-radius: 8px;
  background: #fff3d7;
  color: #9a6414;
  font-size: 16px;
  line-height: 24px;
}

.pr-meta {
  gap: 12px;
  margin-top: 14px;
  color: #53627a;
  font-size: 17px;
}

.pr-meta .sep {
  height: 16px;
  background: #d5dde8;
}

.pr-acts {
  gap: 12px;
}

.pr-btn {
  height: 50px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 16px;
}

.pr-btn svg {
  width: 20px;
  height: 20px;
}

.pr-steps {
  gap: 7px;
  margin-top: 29px;
  padding: 4px;
  border-radius: 10px;
}

.pr-step {
  gap: 12px;
  height: 58px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 16px;
}

.pr-step .n {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.pr-body {
  gap: 16px;
  margin-top: 29px;
}

.pr-row {
  gap: 16px;
}

.pr-side {
  gap: 14px;
}

.pr-card {
  border-color: #e1e8f1;
  border-radius: 10px;
  padding: 20px;
}

.pr-card-head {
  height: 29px;
  margin-bottom: 14px;
}

.pr-card-head h3 {
  font-size: 20px;
  line-height: 29px;
}

.pr-card-head h3 .soft {
  color: #3b4a5f;
}

.pr-edit {
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 16px;
}

.pr-edit svg {
  width: 18px;
  height: 18px;
}

.pr-fields-wrap {
  gap: 20px;
}

.pr-box {
  border-color: #e1e8f1;
  border-radius: 9px;
}

.pr-fields {
  font-size: 16px;
}

.pr-fields col:first-child {
  width: 223px !important;
}

.pr-fields td {
  height: 48px;
  border-bottom-color: #e4ebf2;
}

.pr-fields td.k {
  background: #f3f6f9;
  border-right-color: #e4ebf2;
  padding: 0 10px 0 22px;
}

.pr-fields td.v {
  padding: 0 20px;
}

.pr-pill {
  padding: 6px 12px;
  border: 1px solid #f6ca6b;
  border-radius: 7px;
  background: #fff3d7;
  color: #9a6414;
  font-size: 16px;
}

.pr-photo {
  height: 229px;
  border-radius: 8px;
}

.pr-contacts {
  font-size: 16px;
}

.pr-contacts td {
  height: 45px;
  border-bottom-color: #e4ebf2;
}

.pr-contacts td.k {
  background: #f3f6f9;
  border-right-color: #e4ebf2;
  padding: 0 14px 0 22px;
}

.pr-contacts td.v {
  padding: 0 18px;
}

.pr-contacts td.a {
  padding-right: 14px;
}

.pr-ico-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.pr-ico-btn svg {
  width: 20px;
  height: 20px;
}

.pr-tiles {
  gap: 16px;
}

.pr-tile {
  gap: 14px;
  min-height: 124px;
  padding: 14px 14px 14px 16px;
  border-color: #e1e8f1;
  border-radius: 8px;
}

.pr-tile .ico {
  width: 58px;
  height: 58px;
  border-radius: 10px;
}

.pr-tile .ico svg {
  width: 28px;
  height: 28px;
}

.pr-tile .lbl {
  font-size: 16px;
  line-height: 22px;
}

.pr-tile .num {
  font-size: 30px;
  line-height: 35px;
}

.pr-tile .sub {
  font-size: 15px;
  line-height: 22px;
}

.pr-tile .ring-row {
  gap: 10px;
}

.pr-ring,
.pr-ring svg {
  width: 64px;
  height: 64px;
}

.pr-ring .val {
  font-size: 16px;
}

.pr-tile .chev {
  right: 10px;
  width: 20px;
  height: 20px;
}

.pr-scope {
  color: #334155;
  font-size: 17px;
  line-height: 30px;
}

.pr-link {
  font-size: 16px;
}

.pr-page .pr-timeline {
  padding-left: 36px;
}

.pr-timeline::before {
  left: 3px;
  top: 16px;
  bottom: 16px;
}

.pr-timeline li {
  gap: 20px;
  min-height: 38px;
}

.pr-timeline .dot {
  left: -36px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
}

.pr-timeline li:first-child .dot {
  left: -40px;
  width: 12px;
  height: 12px;
  margin-top: -6px;
}

.pr-timeline .tm,
.pr-timeline .tx,
.pr-timeline .by {
  font-size: 15px;
}

.pr-timeline .tm {
  width: 168px;
}
