/* Sổ đánh giá khách (báo cáo ngày + chỉ số ★) */
.modal.rv-modal { width: min(460px, 100%); }
.rv-sum { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 8px; background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.rv-avg { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.rv-avg b { font: 800 34px/1 var(--display); }
.rv-avg span { color: #f0a000; font-size: 15px; letter-spacing: 1px; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.rv-avg small { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; }
.rv-bars { display: flex; flex-direction: column; gap: 3px; }
.rv-bar { display: grid; grid-template-columns: 22px minmax(0, 1fr) 24px; gap: 6px; align-items: center; font: 700 11px var(--display); }
.rv-bar i { display: block; height: 8px; border-radius: 999px; background: #efe3c7; overflow: hidden; }
.rv-bar u { display: block; height: 100%; border-radius: 999px; background: #43a047; min-width: 0; }
.rv-bar u.s1, .rv-bar u.s2 { background: #e5534b; } .rv-bar u.s3 { background: #f0a000; }
.rv-bar b { text-align: right; color: var(--ink-2); }
.rv-why { margin-bottom: 8px; padding: 8px 10px; background: #fff0eb; border: 2px solid #c43a35; border-radius: 12px; }
.rv-why.good { background: #eaf7e6; border-color: #2f8034; }
.rv-why > small { display: block; margin-bottom: 4px; font: 800 10px var(--display); letter-spacing: .8px; color: #8a1d1b; }
.rv-why.good > small { color: #1d5a22; }
.rv-why > div { display: flex; flex-wrap: wrap; gap: 5px; }
.rv-why p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.rv-why .btn { margin-top: 7px; }
.rv-chip { font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; white-space: nowrap; }
.rv-chip.neg { background: #ffe9e4; border-color: #c43a35; color: #8a1d1b; }
.rv-chip.pos { background: #e8f8de; border-color: #2f8034; color: #1d5a22; }
.rv-chip b { font-weight: 800; }
.rv-filter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; margin: 4px 0 8px; border-radius: 14px; background: #f1e6cf; }
.rv-filter button { min-height: 36px; border: 0; border-radius: 10px; background: transparent; font: 800 13px var(--display); color: #6b5747; cursor: pointer; }
.rv-filter button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 0 #d9c29a; }
.rv-list { display: flex; flex-direction: column; gap: 8px; max-height: min(46vh, 420px); overflow-y: auto; margin-bottom: 10px; padding-right: 2px; }
.rp-pane .rv-list { max-height: none; }
.rv { padding: 8px 10px; background: #fffdf3; border: 2px solid var(--ink); border-radius: 13px; }
.rv.bad { background: #fff3ef; border-color: #c43a35; } .rv.good { background: #f1faed; border-color: #2f8034; }
.rv-h { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; align-items: baseline; }
.rv-h b { font: 800 15px/1.2 var(--display); }
.rv-h small { grid-row: 2; color: var(--muted); font-size: 11px; font-weight: 700; }
.rv-st { grid-row: 1 / 3; grid-column: 2; color: #f0a000; font-size: 15px; letter-spacing: 1px; }
.rv.bad .rv-st { color: #e5534b; }
.rv p { margin: 5px 0 6px; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.rv-r { display: flex; flex-wrap: wrap; gap: 5px; }
.rv-empty { padding: 18px 10px; text-align: center; border-radius: 14px; background: #f6f0e4; color: #6b5747; font-weight: 700; line-height: 1.5; }

/* Gợi ý mở theo nhu cầu để lời đánh giá vẫn nhìn thấy trên màn hình nhỏ. */
.rv-advice { margin-top: 7px; }
.rv-advice summary { cursor: pointer; font-weight: 800; font-size: 12px; color: #8a1d1b; min-height: 36px; padding: 9px 0; }
.rv-advice summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rv p.muted { font-size: 12px; line-height: 1.5; margin: 6px 0; }
.rv > small { display: block; color: var(--ink-2); margin: 5px 0; font-size: 11px; }
