/* ═══════════════════════════════════════════════════════════════════════════
   PERFORMANCE REVIEWS MODULE — styles
   Brand: dark UI, neon pink (--rr-pink #F239F7) / cyan (--rr-cyan #58F9F4).
   Reuses the shared .rr-* primitives (card/field/input/btn/pill) from styles.css;
   this file only adds the review-console + signature-pad specifics.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Console composer ───────────────────────────────────────────────────── */
.rev-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) { .rev-grid-2 { grid-template-columns: 1fr; } }

.rev-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--rr-border);
}

/* ── Console log cards ──────────────────────────────────────────────────── */
.rev-log-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.rev-log-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rev-log-sig {
  height: 34px;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rr-border-cyan);
}

/* ── Employee inbox ─────────────────────────────────────────────────────── */
.rev-inbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* ── Read pane ──────────────────────────────────────────────────────────── */
.rev-read-head { margin-bottom: 14px; }
.rev-read-body {
  white-space: normal;
  line-height: 1.62;
  font-size: 14px;
  color: var(--rr-text);
}
.rev-read-body strong { color: var(--rr-cyan); font-weight: 600; }

/* ── Sign CTA / signed box ──────────────────────────────────────────────── */
.rev-sign-cta { text-align: left; }
.rev-signed-box {
  border: 1px solid var(--rr-border-cyan);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(88, 249, 244, 0.07), rgba(242, 57, 247, 0.05));
}
.rev-signed-img {
  display: block;
  max-width: 280px;
  max-height: 120px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 6px 10px;
}

/* ── Drop zone (chosen signature lands here) ────────────────────────────── */
.rev-drop-zone {
  border: 1.5px dashed var(--rr-border-cyan);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: rgba(88, 249, 244, 0.03);
}
.rev-drop-zone.is-filled {
  text-align: left;
  border-style: solid;
  border-color: var(--rr-cyan);
  background: linear-gradient(135deg, rgba(88, 249, 244, 0.08), rgba(242, 57, 247, 0.05));
}
.rev-drop-zone .rr-empty-icon { font-size: 30px; margin-bottom: 6px; opacity: 0.8; }
.rev-drop-img {
  display: block;
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
}

/* ── Saved-signature gallery ────────────────────────────────────────────── */
.rev-sig-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}
.rev-sig-chip {
  border: 1px solid var(--rr-border);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.rev-sig-chip:hover { border-color: var(--rr-cyan); transform: translateY(-1px); }
.rev-sig-chip.is-picked {
  border-color: var(--rr-pink);
  box-shadow: 0 0 0 2px rgba(242, 57, 247, 0.28);
}
.rev-sig-chip img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: contain;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
}
.rev-sig-chip-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  font-size: 11px;
  color: var(--rr-text-muted);
}
.rev-sig-del {
  cursor: pointer;
  color: var(--rr-text-muted);
  padding: 0 4px;
  border-radius: 4px;
}
.rev-sig-del:hover { color: #ff6b6b; background: rgba(255, 107, 107, 0.12); }

/* ── Signature canvas pad ───────────────────────────────────────────────── */
/* Neon Glass: frosted in-flow pane (cyan accent border kept over the glass) */
.rev-pad-wrap {
  position: relative;
  border: 1px solid var(--rr-border-cyan);
  border-radius: 12px;
  background: var(--ng-sheen), var(--ng-tint-card);
  -webkit-backdrop-filter: blur(var(--ng-blur-card)) saturate(var(--ng-sat));
  backdrop-filter: blur(var(--ng-blur-card)) saturate(var(--ng-sat));
  box-shadow: inset 0 1px 0 var(--ng-edge-spec),
              inset 0 0 0 1px var(--ng-edge-cyan),
              var(--ng-shadow), var(--ng-glow);
  overflow: hidden;
}
.rev-pad {
  display: block;
  width: 100%;
  height: 180px;
  touch-action: none;        /* let the canvas own touch gestures */
  cursor: crosshair;
}
.rev-pad-line {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 38px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.rev-pad-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ── Submit row ─────────────────────────────────────────────────────────── */
.rev-sign-submit-row {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--rr-border);
}
