.cp-reviews-v2 .rv2-toolbar {
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cp-reviews-v2 .rv2-btn-bulk {
  background: #0f5bd8;
  color: #fff;
  font-weight: 700;
  border: none;
}

.cp-reviews-v2 .rv2-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.cp-reviews-v2 .rv2-queue {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cp-reviews-v2 .rv2-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.cp-reviews-v2 .rv2-card--candidate {
  border-color: #fcd34d;
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}

.cp-reviews-v2 .rv2-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.cp-reviews-v2 .rv2-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem;
}

.cp-reviews-v2 .rv2-card-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

.cp-reviews-v2 .rv2-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cp-reviews-v2 .rv2-pill--receipt {
  background: #ffedd5;
  color: #c2410c;
}

.cp-reviews-v2 .rv2-pill--telegram {
  background: #dbeafe;
  color: #1d4ed8;
}

.cp-reviews-v2 .rv2-pill--warn {
  background: #fef3c7;
  color: #b45309;
}

.cp-reviews-v2 .rv2-pill--ok {
  background: #dcfce7;
  color: #15803d;
}

.cp-reviews-v2 .rv2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
  margin: 0.75rem 0;
}

.cp-reviews-v2 .rv2-field {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
}

.cp-reviews-v2 .rv2-field-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.cp-reviews-v2 .rv2-field-value {
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
}

.cp-reviews-v2 .rv2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.cp-reviews-v2 .rv2-btn {
  border-radius: 0.65rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.cp-reviews-v2 .rv2-btn--approve {
  background: #16a34a;
  color: #fff;
}

.cp-reviews-v2 .rv2-btn--reject {
  background: #fff;
  border-color: #fecaca;
  color: #b91c1c;
}

.cp-reviews-v2 .rv2-btn--catalog {
  background: #fff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.cp-reviews-v2 .rv2-empty {
  text-align: center;
  color: #64748b;
  padding: 2rem 1rem;
}

.cp-reviews-v2 .rv2-meta {
  margin-left: auto;
  font-size: 0.72rem;
  color: #94a3b8;
}

.cp-unified .bo-tab-pane[hidden] {
  display: none !important;
}

.cp-unified .cp-unified-tabs {
  gap: 0.5rem;
}

.cp-unified button.cp-nav-pill {
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.cp-unified .bo-tab-btn.active {
  background: #fff;
  color: #0f172a;
  border-color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.cp-unified .cp-unified-auth {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
}

.cp-unified .ops-checklist {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
}

.cp-unified .ops-checklist summary {
  cursor: pointer;
  font-weight: 800;
}

.cp-unified .ops-checklist ol {
  margin: 0.75rem 0 0;
  padding-left: 1.3rem;
  color: #475569;
  line-height: 1.65;
}

.cp-unified .cp-btn-link {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 0.55rem 0.9rem;
}

.cp-unified .cp-unified-main {
  margin-top: 1.25rem;
}

.cp-unified .cp-unified-details {
  margin-top: 1rem;
  padding: 1rem;
}

.cp-unified .cp-unified-details summary {
  cursor: pointer;
  font-weight: 800;
}

.receipt-status-line {
  margin: -0.3rem 0 1rem;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.receipt-status-line[data-type="error"] {
  color: #b91c1c;
}

.receipt-status-line[data-type="ok"] {
  color: #166534;
}

.receipt-workspace-shell {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.receipt-queue-panel,
.receipt-workspace {
  padding: 1rem;
  border-radius: 1rem;
}

.receipt-panel-head,
.receipt-workspace-header,
.receipt-line-head,
.receipt-line-actions,
.receipt-workspace-meta,
.receipt-line-meta {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.receipt-panel-head,
.receipt-workspace-header {
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.receipt-panel-head h2,
.receipt-workspace-header h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.receipt-panel-head span,
.receipt-workspace-meta,
.receipt-line p,
.receipt-queue-main span,
.receipt-line-meta {
  color: #64748b;
  font-size: 0.78rem;
}

.receipt-queue-list {
  display: grid;
  gap: 0.55rem;
  max-height: min(76vh, 760px);
  overflow: auto;
  padding-right: 0.15rem;
}

.receipt-queue-item {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.65rem;
  text-align: left;
  border: 1px solid rgba(226, 232, 240, 0.94);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.8rem;
  padding: 0.65rem;
  cursor: pointer;
}

.receipt-queue-item.is-active {
  border-color: rgba(15, 91, 216, 0.42);
  box-shadow: inset 3px 0 0 var(--cp-primary);
}

.receipt-queue-thumb {
  width: 44px;
  height: 52px;
  border-radius: 0.55rem;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 900;
}

.receipt-queue-thumb.is-empty {
  background: #f1f5f9;
  color: #64748b;
}

.receipt-queue-main {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.receipt-queue-main strong {
  color: #0f172a;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.receipt-queue-main .is-low-trust {
  color: #b45309;
  font-weight: 800;
}

.receipt-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 1rem;
  align-items: start;
}

.receipt-image-panel {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 0.9rem;
  background: #0f172a;
  min-height: 520px;
  overflow: hidden;
  position: sticky;
  top: 1rem;
}

.receipt-image-toolbar {
  min-height: 44px;
  padding: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  position: sticky;
  top: 0;
  z-index: 2;
}

.receipt-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 0.55rem;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.receipt-image-scroll {
  height: 520px;
  overflow: auto;
  display: grid;
  place-items: start center;
  padding: 0.75rem;
}

.receipt-image {
  max-width: none;
  width: 100%;
  transform-origin: top center;
  transition: transform 0.16s ease;
}

.receipt-image-placeholder,
.receipt-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.38);
  border-radius: 0.8rem;
  padding: 1rem;
}

.receipt-image-placeholder[data-state="loading"] {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.56);
  border-color: rgba(191, 219, 254, 0.34);
}

.receipt-image-placeholder[data-state="loading"]::after {
  content: "";
  width: 24px;
  height: 24px;
  margin-top: 0.75rem;
  border: 3px solid rgba(219, 234, 254, 0.28);
  border-top-color: #dbeafe;
  border-radius: 999px;
  animation: cp-spin 0.8s linear infinite;
}

.receipt-lines {
  display: grid;
  gap: 0.8rem;
}

.receipt-line {
  border: 1px solid rgba(226, 232, 240, 0.94);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.9rem;
  padding: 0.9rem;
}

.receipt-line.is-candidate {
  border-color: rgba(245, 158, 11, 0.36);
  box-shadow: inset 3px 0 0 #f59e0b;
}

.receipt-line.is-high {
  border-color: rgba(239, 68, 68, 0.28);
}

.receipt-line.is-resolved {
  opacity: 0.72;
}

.receipt-line-head {
  justify-content: space-between;
  align-items: flex-start;
}

.receipt-line h3 {
  margin: 0 0 0.2rem;
  color: #0f172a;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.receipt-ocr-raw {
  max-width: 56ch;
  color: #64748b !important;
  font-size: 0.75rem !important;
}

.receipt-line-price {
  font-weight: 900;
  color: #0f172a;
  white-space: nowrap;
}

.receipt-line-meta {
  margin: 0.65rem 0;
}

.receipt-line-meta span,
.receipt-trust {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 800;
}

.receipt-trust--low {
  background: #fef3c7;
  color: #92400e;
}

.receipt-trust--ok {
  background: #dcfce7;
  color: #166534;
}

.receipt-product-search {
  position: relative;
  display: grid;
  gap: 0.5rem;
}

.receipt-product-input {
  width: 100%;
  padding: 0.7rem 0.8rem;
}

.receipt-suggestions {
  position: absolute;
  z-index: 9999;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  display: grid;
  max-height: 260px;
  overflow: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  box-shadow: var(--cp-shadow-1);
}

.receipt-suggestions:empty {
  display: none;
}

.receipt-suggestion-label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.receipt-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 32px;
}

.receipt-suggestion-chips .receipt-suggestion-empty {
  min-height: 0;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: default;
}

.receipt-suggestion-chip {
  min-height: 34px;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #fff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.65rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.receipt-suggestion-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-suggestion-chip small {
  color: #64748b;
  font-size: 0.68rem;
  white-space: nowrap;
}

.receipt-suggestion-chip--high,
.receipt-suggestion-chip.is-selected {
  border-color: rgba(22, 163, 74, 0.34);
  background: #dcfce7;
  color: #166534;
}

.receipt-suggestion-chip--medium {
  border-color: rgba(245, 158, 11, 0.34);
  background: #fef3c7;
  color: #92400e;
}

.receipt-suggestion-chip--low {
  border-color: rgba(148, 163, 184, 0.28);
  background: #f8fafc;
  color: #475569;
}

.receipt-suggestion,
.receipt-suggestion-empty {
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  color: #0f172a;
}

.receipt-suggestion small {
  color: #64748b;
  white-space: nowrap;
}

.receipt-line-actions {
  margin-top: 0.65rem;
}

.receipt-workspace-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.receipt-back-btn {
  display: none;
}

@media (max-width: 1060px) {
  .receipt-workspace-shell,
  .receipt-split,
  .cp-unified .cp-unified-auth {
    grid-template-columns: 1fr;
  }

  .receipt-image-panel {
    position: static;
    min-height: 360px;
  }

  .receipt-image-scroll {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .cp-reviews-v2 .rv2-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .receipt-status-line {
    margin-bottom: 0.75rem;
  }

  .receipt-workspace-shell {
    display: block;
  }

  .receipt-workspace-shell:not(.is-mobile-detail) .receipt-workspace {
    display: none;
  }

  .receipt-workspace-shell.is-mobile-detail .receipt-queue-panel {
    display: none;
  }

  .receipt-workspace-shell.is-mobile-detail .receipt-workspace {
    position: fixed;
    inset: 0;
    z-index: 3000;
    overflow: auto;
    border-radius: 0;
    padding: calc(0.8rem + env(safe-area-inset-top, 0px)) 0.85rem calc(1rem + env(safe-area-inset-bottom, 0px));
    background: #f8fafc;
  }

  .receipt-workspace-header {
    position: sticky;
    top: 0;
    z-index: 3;
    align-items: flex-start;
    padding-bottom: 0.7rem;
    background: rgba(248, 250, 252, 0.96);
    backdrop-filter: blur(12px);
  }

  .receipt-back-btn {
    display: inline-flex;
  }

  .receipt-workspace-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .receipt-image-panel {
    min-height: 280px;
    margin-bottom: 0.85rem;
  }

  .receipt-image-scroll {
    height: 280px;
  }

  .receipt-line-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .receipt-line-price {
    white-space: normal;
  }

  .receipt-suggestion-chip {
    width: 100%;
    justify-content: space-between;
  }
}
