/* Sabea Broker Portal — Support Performance Review */
.rv-wrap { max-width: 1120px; margin: 0 auto; padding: 8px 4px 40px; }
.rv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.rv-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #8a6d1f; background: rgba(201,168,76,.16); display: inline-block; padding: 2px 9px; border-radius: 999px; margin-bottom: 8px; }
.rv-title { font-size: 22px; margin: 0 0 4px; color: #12153D; }
.rv-sub { color: #6c6c6c; font-size: 13px; margin: 0; max-width: 680px; line-height: 1.5; }
.rv-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-controls label { font-size: 12.5px; color: #6c6c6c; display: flex; align-items: center; gap: 6px; }
.rv-controls select, .rv-form input { font: inherit; font-size: 13px; padding: 6px 9px; border: 1px solid #e5e3dc; border-radius: 7px; background: #fff; color: #12153D; }

.rv-btn { font: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 8px; border: 1px solid #e5e3dc; background: #fff; color: #12153D; cursor: pointer; }
.rv-btn:disabled { opacity: .5; cursor: not-allowed; }
.rv-primary { background: #12153D; color: #fff; border-color: #12153D; }
.rv-mini { font: inherit; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid #e5e3dc; background: #fff; color: #12153D; cursor: pointer; }
.rv-mini:disabled { opacity: .4; cursor: not-allowed; }

.rv-tabs { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #eee; margin-bottom: 16px; flex-wrap: wrap; }
.rv-tab { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 4px; margin-right: 12px; border: 0; background: none; color: #9a9a9a; cursor: pointer; border-bottom: 2px solid transparent; }
.rv-tab.is-on { color: #12153D; border-bottom-color: #C9A84C; }
.rv-cyc-meta { margin-left: auto; font-size: 12px; color: #8a8a8a; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.rv-st { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; text-transform: capitalize; }
.rv-st-open, .rv-st-submitted { background: rgba(47,158,95,.14); color: #217a4a; }
.rv-st-closed { background: rgba(18,21,61,.10); color: #6c6c6c; }
.rv-st-draft { background: rgba(201,168,76,.2); color: #8a6d1f; }
.rv-st-none { background: rgba(178,51,51,.10); color: #b23; }
.rv-role { color: #9a9a9a; font-size: 10.5px; font-weight: 600; }

/* Results */
.rv-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.rv-card { background: #fff; border: 1px solid #e9e6dd; border-radius: 14px; padding: 16px; }
.rv-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.rv-card-name { font-size: 16px; font-weight: 700; color: #12153D; }
.rv-final { display: flex; align-items: baseline; gap: 4px; }
.rv-final-v { font-size: 26px; font-weight: 800; color: #217a4a; line-height: 1; }
.rv-final-of { font-size: 12px; color: #9a9a9a; font-weight: 600; }
.rv-final-pending .rv-final-v { color: #c9a84c; }
.rv-final-pending .rv-final-of { font-size: 11px; }

.rv-metrics { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.rv-metric { display: grid; grid-template-columns: 130px 1fr 32px; align-items: center; gap: 8px; }
.rv-metric-l { font-size: 11.5px; color: #6c6c6c; }
.rv-metric-track { height: 7px; background: #f0eee7; border-radius: 999px; overflow: hidden; }
.rv-metric-fill { height: 100%; background: linear-gradient(90deg, #C9A84C, #2f9e5f); border-radius: 999px; }
.rv-metric-v { font-size: 12px; font-weight: 700; color: #12153D; text-align: right; }
.rv-culture-sub { font-size: 11px; color: #8a8a8a; border-top: 1px dashed #eee; padding-top: 8px; margin-top: 2px; }
.rv-inputs { color: #b0a89a; }

.rv-raters, .rv-pairs { margin-top: 10px; }
.rv-raters summary, .rv-pairs summary { font-size: 12px; color: #6c6c6c; cursor: pointer; }
.rv-rtable { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.rv-rtable th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; color: #9a9a9a; font-weight: 700; padding: 5px 8px; border-bottom: 1px solid #eee; }
.rv-rtable td { padding: 6px 8px; border-bottom: 1px solid #f4f2ec; color: #12153D; }
.rv-num { text-align: right; }
.rv-actions { text-align: right; }
.rv-pairs { background: #fff; border: 1px solid #e9e6dd; border-radius: 12px; padding: 12px 14px; }

/* Cycle form */
.rv-form { background: #fff; border: 1px solid #e9e6dd; border-radius: 12px; padding: 14px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.rv-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.rv-form-row label { font-size: 12px; color: #6c6c6c; display: flex; flex-direction: column; gap: 4px; }
.rv-form-act { display: flex; gap: 8px; }

/* Stepper rating form */
.rv-stepper { background: #fff; border: 1px solid #e9e6dd; border-radius: 14px; padding: 18px; }
.rv-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.rv-progress-l { font-size: 12px; font-weight: 600; color: #8a8a8a; }
.rv-dots { display: flex; gap: 6px; }
.rv-dot { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #e5e3dc; background: #fff; color: #9a9a9a; font-size: 12px; font-weight: 700; cursor: pointer; }
.rv-dot.is-on { border-color: #12153D; color: #12153D; }
.rv-dot.is-done { background: rgba(47,158,95,.14); border-color: rgba(47,158,95,.4); color: #217a4a; }

.rv-subject-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rv-subject-name { font-size: 19px; font-weight: 800; color: #12153D; }
.rv-subject-meta { display: flex; align-items: center; gap: 8px; }
.rv-cards { font-size: 11.5px; color: #9a9a9a; }
.rv-samples { margin: 10px 0 4px; font-size: 11.5px; color: #6c6c6c; line-height: 1.9; }
.rv-samples-l { color: #9a9a9a; }
.rv-sample { display: inline-block; background: #f6f4ee; border: 1px solid #ece9e0; border-radius: 6px; padding: 1px 7px; margin: 0 3px 3px 0; color: #12153D; }

.rv-note-wrap { margin: 14px 0 6px; }
.rv-note-l { font-size: 12px; color: #6c6c6c; display: block; margin-bottom: 4px; }
.rv-note { width: 100%; font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid #e5e3dc; border-radius: 8px; color: #12153D; resize: vertical; box-sizing: border-box; }

.rv-questions { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.rv-q { border: 1px solid #f0eee7; border-radius: 10px; padding: 12px 14px; }
.rv-q-head { display: flex; align-items: center; gap: 8px; }
.rv-q-label { font-size: 14px; font-weight: 700; color: #12153D; }
.rv-chip { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8a6d1f; background: rgba(201,168,76,.16); padding: 1px 7px; border-radius: 999px; }
.rv-qdesc { font-size: 12px; color: #6c6c6c; line-height: 1.5; margin: 6px 0; }
.rv-qcrit { font-size: 11.5px; color: #9a9a9a; font-style: italic; margin: 4px 0 6px; }
.rv-scale { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; flex-wrap: wrap; }
.rv-score { width: 38px; height: 38px; border-radius: 9px; border: 1px solid #e5e3dc; background: #fff; color: #12153D; font-size: 15px; font-weight: 700; cursor: pointer; }
.rv-score:hover:not(:disabled) { border-color: #C9A84C; }
.rv-score.is-on { background: #12153D; color: #fff; border-color: #12153D; }
.rv-score:disabled { opacity: .55; cursor: default; }
.rv-scale-ends { font-size: 11px; color: #b0a89a; margin-left: 6px; }
.rv-anchor { font-size: 12px; color: #217a4a; background: rgba(47,158,95,.08); border-radius: 7px; padding: 6px 9px; margin: 4px 0; }
.rv-anchor-dim { color: #b0a89a; background: transparent; padding: 2px 0; }
.rv-qcomment { width: 100%; font: inherit; font-size: 12.5px; padding: 6px 9px; border: 1px solid #e5e3dc; border-radius: 7px; margin-top: 6px; color: #12153D; box-sizing: border-box; }

.rv-stepper-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #f0eee7; flex-wrap: wrap; }
.rv-nav { display: flex; gap: 8px; }
.rv-act { display: flex; align-items: center; gap: 8px; }
.rv-submitted { font-size: 12.5px; color: #217a4a; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rv-gate-hint { font-size: 12px; color: #8a6d1f; background: rgba(201,168,76,.12); border-radius: 8px; padding: 7px 11px; margin-top: 14px; }
.rv-sent-on { color: #217a4a; font-weight: 700; }
.rv-sent-off { color: #8a6d1f; font-weight: 700; }

/* Assignment panel (Cy sends reviews) */
.rv-assign-wrap { background: #fff; border: 1px solid #e9e6dd; border-radius: 12px; padding: 6px 14px 12px; margin-bottom: 16px; }
.rv-assign-title { font-size: 13px; font-weight: 700; color: #12153D; cursor: pointer; padding: 8px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-assign { border-top: 1px solid #f2f0ea; padding: 10px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; }
.rv-assign-broker { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
.rv-assign-name { font-size: 14px; font-weight: 700; color: #12153D; }
.rv-assign-status { font-size: 11.5px; color: #8a8a8a; }
.rv-assign-subs { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #12153D; background: #f8f6f0; border: 1px solid #eee7d9; border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.rv-chk input { margin: 0; }
.rv-chk-meta { color: #9a9a9a; font-size: 11px; }
.rv-assign-act { align-self: center; }
@media (max-width: 620px) { .rv-assign { grid-template-columns: 1fr; } }

/* Broker batch Complete bar */
.rv-completebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e9e6dd; border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.rv-completebar-l { font-size: 12.5px; color: #6c6c6c; }
.rv-done { color: #217a4a; font-size: 17px; font-weight: 700; text-align: center; padding: 48px 16px; background: #fff; border: 1px solid rgba(47,158,95,.3); border-radius: 14px; line-height: 1.5; }

/* Preview (what brokers see) */
.rv-preview-wrap { background: #fff; border: 1px solid #e9e6dd; border-radius: 12px; padding: 6px 14px 12px; margin-bottom: 16px; }
.rv-preview { padding-top: 8px; }
.rv-preview-lead { font-size: 12.5px; color: #6c6c6c; margin-bottom: 12px; line-height: 1.5; }
.rv-pq { border: 1px solid #f0eee7; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.rv-pq-label { font-size: 14px; font-weight: 700; color: #12153D; display: flex; align-items: center; gap: 8px; }
.rv-pq-desc { font-size: 12px; color: #6c6c6c; line-height: 1.5; margin: 6px 0; }
.rv-pscale { display: flex; align-items: center; gap: 6px; margin: 8px 0 6px; flex-wrap: wrap; }
.rv-pscore { width: 34px; height: 34px; border-radius: 9px; border: 1px solid #e5e3dc; background: #faf9f5; color: #9a9a9a; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rv-pcomment { font-size: 12px; color: #9a9a9a; border: 1px dashed #e5e3dc; border-radius: 7px; padding: 7px 9px; }
.rv-qcomment.rv-need { border-color: #e3cf9a; background: #fffdf6; }

.rv-loading, .rv-empty, .rv-none { color: #6c6c6c; font-size: 13px; padding: 30px 4px; text-align: center; }
.rv-none { padding: 14px; }

@media (max-width: 560px) {
  .rv-metric { grid-template-columns: 108px 1fr 30px; }
  .rv-score { width: 34px; height: 34px; }
}
