/* POS-STAFF-BUG-001 — "Report an Issue" button and modal (Figma DSRT-Surf-Interfaces node 1048-2). */

/* stays at the bottom of the sale panel (the panel scrolls as a whole) so it is always within reach */
.rs-report-issue { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: center; padding: 12px 4px 28px; background: inherit; margin-top: auto; }
.rs-report-issue-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; border: 0; border-radius: 8px;
    background: #1d6ff2; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.rs-report-issue-btn:hover { background: #155fd6; }
.rs-report-issue-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.rs-report-issue-btn svg { width: 18px; height: 18px; }

/* between the approver modals (z 1100) and the dev banner (2147483000) */
.ri-overlay { position: fixed; inset: 0; z-index: 12000; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ri-overlay[hidden] { display: none; }
.ri-modal { background: #fff; color: #0f172a; border-radius: 14px; width: min(790px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); font-family: Inter, system-ui, sans-serif; }
.ri-head { display: flex; align-items: flex-start; gap: 14px; padding: 28px 30px 8px; }
.ri-warn { width: 44px; height: 44px; flex: none; margin-top: 2px; }
.ri-head h2 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.ri-sub { margin: 8px 0 0; font-size: 15.5px; color: #334155; }
.ri-x { margin-left: auto; background: none; border: 0; font-size: 34px; line-height: 1; cursor: pointer; color: #0f172a; padding: 0 4px; }
.ri-body { padding: 8px 30px 6px; overflow-y: auto; }
.ri-label { display: block; font-weight: 700; font-size: 16px; margin: 18px 0 8px; }
.ri-label span { color: #0f172a; }
.ri-input { width: 100%; box-sizing: border-box; padding: 13px 16px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; font-size: 15.5px; color: #0f172a; background: #fff; }
.ri-input::placeholder { color: #94a3b8; }
.ri-input:focus { outline: 2px solid #93c5fd; border-color: #1d6ff2; }
.ri-input.ri-invalid { border-color: #dc2626; }
.ri-textarea { min-height: 132px; resize: vertical; }
.ri-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ri-attach { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ri-attach-box { border: 1px solid #e2e8f0; border-radius: 6px; min-height: 138px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #f8fafc; padding: 12px; text-align: center; }
.ri-shot { display: inline-flex; align-items: center; gap: 8px; padding: 16px 44px; border: 1.5px solid #1d6ff2; border-radius: 6px; background: #fff; color: #1d6ff2; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.ri-shot:disabled { opacity: .6; cursor: progress; }
.ri-shot svg { width: 14px; height: 14px; }
.ri-drop { cursor: pointer; }
.ri-drop.ri-over { border-color: #1d6ff2; background: #eef4fd; }
.ri-drop.ri-disabled { opacity: .55; pointer-events: none; }
.ri-drop-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.ri-drop-title svg { width: 18px; height: 18px; }
.ri-drop-sub { margin-top: 12px; font-size: 14px; color: #64748b; line-height: 1.35; }
.ri-files { list-style: none; margin: 8px 0 0; padding: 0; }
.ri-file { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.ri-file progress { flex: 1; height: 8px; }
.ri-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.ri-thumb { width: 52px; height: 36px; object-fit: cover; border-radius: 4px; border: 1px solid #e2e8f0; cursor: zoom-in; }
.ri-ok { color: #15803d; font-weight: 600; }
.ri-bad { color: #dc2626; font-weight: 600; }
.ri-link { background: none; border: 0; padding: 0; color: #1d6ff2; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ri-auto { background: #eef4fd; border-radius: 6px; padding: 18px 28px; margin-top: 20px; }
.ri-auto-title { display: flex; align-items: center; gap: 10px; color: #1d6ff2; font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.ri-dot { width: 10px; height: 10px; border-radius: 50%; background: #1d6ff2; }
.ri-auto-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row; gap: 9px 24px; font-size: 14.5px; color: #334155; }
.ri-auto-list li { position: relative; padding-left: 20px; overflow-wrap: anywhere; }
.ri-auto-list li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 8px; height: 4px; border-left: 1.5px solid #475569; border-bottom: 1.5px solid #475569; transform: rotate(-45deg); }
.ri-similar { margin-top: 16px; border: 1px solid #f6d29b; background: #fff8eb; border-radius: 6px; padding: 14px 16px; }
.ri-similar-title { font-weight: 700; color: #92400e; }
.ri-similar-sub { font-size: 14px; color: #92400e; margin: 4px 0 10px; }
.ri-match { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 8px 0; border-top: 1px solid #f6d29b; }
.ri-match-title { font-weight: 600; }
.ri-match-sub { font-size: 13px; color: #64748b; margin-top: 2px; }
.ri-error { margin-top: 14px; color: #b91c1c; background: #fdecec; border-radius: 6px; padding: 10px 14px; font-weight: 600; font-size: 14.5px; }
.ri-error[hidden], .ri-similar[hidden], .ri-done[hidden] { display: none; }
.ri-done { padding: 26px 0 10px; }
.ri-done-title { font-size: 20px; font-weight: 700; color: #15803d; }
.ri-done-sub { margin-top: 8px; color: #334155; }
.ri-foot { display: flex; justify-content: flex-end; gap: 18px; padding: 18px 30px 26px; }
.ri-btn { min-width: 130px; padding: 14px 26px; border-radius: 6px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.ri-btn:disabled { opacity: .55; cursor: not-allowed; }
.ri-btn-outline { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; }
.ri-btn-primary { background: #1d6ff2; border: 1px solid #1d6ff2; color: #fff; min-width: 180px; }
.ri-btn-sm { min-width: 0; padding: 8px 14px; font-size: 14px; white-space: nowrap; flex: none; }
html.ri-open { overflow: hidden; }

@media (max-width: 720px) {
    .ri-row, .ri-attach, .ri-auto-list { grid-template-columns: 1fr; }
    .ri-head h2 { font-size: 26px; }
}
