/* Order reports (v407). The Report button and the sheet it opens. Scoped to .qd-rp* so nothing else on the site changes.
   The button is the same size as "Refresh status" (full width, 12px padding, 14px corners, 13.5px bold) in a soft amber so it stands out without shouting. */
.qd-rp-w{display:block;margin:12px 0 0}
.qd-rp{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:0;padding:12px 14px;border-radius:14px;border:1px solid rgba(245,181,10,.5);background:rgba(245,181,10,.14);color:var(--text,#0f172a);font:inherit;font-size:13.5px;font-weight:700;line-height:1.2;text-align:center;cursor:pointer;-webkit-appearance:none;appearance:none;transition:background .15s,transform .12s,border-color .15s}
.qd-rp:hover{background:rgba(245,181,10,.22);border-color:rgba(245,181,10,.7)}
.qd-rp:active{transform:scale(.985)}
.qd-rp svg{width:16px;height:16px;flex:none;color:#e09a00;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.qd-rp.is-open{border-color:rgba(245,181,10,.35);background:rgba(245,181,10,.1)}
.qd-rp-note{display:flex;gap:10px;align-items:flex-start;margin:0 0 10px;padding:11px 13px;border-radius:14px;border:1px solid rgba(34,199,142,.4);background:rgba(34,199,142,.1);font-size:13px;line-height:1.5;color:var(--text,#0f172a)}
.qd-rp-note svg{width:18px;height:18px;flex:none;margin-top:1px;fill:none;stroke:#16a34a;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.qd-rp-note b{display:block;font-size:13px}
.qd-rp-note span{display:block;color:var(--muted,#64748b);overflow-wrap:anywhere}

/* the sheet */
.qd-rp-ov{position:fixed;inset:0;z-index:2147483100;display:flex;align-items:flex-end;justify-content:center;background:rgba(10,14,28,.58);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);opacity:0;transition:opacity .18s}
.qd-rp-ov.in{opacity:1}
.qd-rp-ov,.qd-rp-ov *{box-sizing:border-box}
@media(min-width:560px){.qd-rp-ov{align-items:center;padding:20px}}
.qd-rp-sheet{display:flex;flex-direction:column;width:100%;max-width:440px;max-height:min(92dvh,720px);border-radius:26px 26px 0 0;background:var(--surface,#fff);color:var(--text,#0f172a);border:1px solid var(--line2,rgba(148,163,205,.3));border-bottom:0;box-shadow:0 -10px 50px rgba(0,0,0,.28);transform:translateY(28px);transition:transform .22s cubic-bezier(.2,.8,.2,1)}
.qd-rp-ov.in .qd-rp-sheet{transform:none}
@media(min-width:560px){.qd-rp-sheet{border-radius:26px;border-bottom:1px solid var(--line2,rgba(148,163,205,.3))}}
.qd-rp-top{flex:none;display:flex;align-items:center;gap:12px;padding:16px 16px 0}
.qd-rp-mark{flex:none;width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:rgba(245,181,10,.16);border:1px solid rgba(245,181,10,.45);color:#e09a00}
.qd-rp-mark svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.qd-rp-top h3{flex:1;min-width:0;margin:0;font-size:19px;font-weight:800;letter-spacing:-.3px;line-height:1.2}
.qd-rp-top h3 small{display:block;margin-top:3px;font-size:12.5px;font-weight:600;letter-spacing:0;color:var(--muted,#64748b);overflow-wrap:anywhere}
.qd-rp-x{flex:none;width:36px;height:36px;border:0;border-radius:50%;display:grid;place-items:center;background:var(--surface2,#f1f5f9);color:var(--muted,#64748b);cursor:pointer}
.qd-rp-x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.qd-rp-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 16px calc(18px + env(safe-area-inset-bottom,0px))}
.qd-rp-lead{margin:0 0 12px;font-size:13.5px;line-height:1.55;color:var(--muted,#64748b)}
.qd-rp-lab{display:block;margin:14px 0 7px;font-size:12.5px;font-weight:700;color:var(--muted,#64748b);letter-spacing:.2px}
.qd-rp-chips{display:flex;flex-wrap:wrap;gap:8px}
.qd-rp-chip{padding:9px 13px;border-radius:999px;border:1px solid var(--line2,rgba(148,163,205,.35));background:var(--surface2,#f1f5f9);color:var(--text,#0f172a);font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background .12s,border-color .12s}
.qd-rp-chip[aria-pressed="true"]{background:rgba(245,181,10,.2);border-color:rgba(245,181,10,.75);color:var(--text,#0f172a);font-weight:800}
.qd-rp-in{display:block;width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--line2,rgba(148,163,205,.35));background:var(--input,var(--surface2,#f8fafc));color:var(--text,#0f172a);font:inherit;font-size:14px;outline:0}
.qd-rp-in:focus{border-color:rgba(245,181,10,.8);box-shadow:0 0 0 3px rgba(245,181,10,.18)}
textarea.qd-rp-in{min-height:84px;resize:vertical;line-height:1.5}
.qd-rp-count{margin-top:4px;text-align:right;font-size:11.5px;color:var(--muted,#64748b)}
.qd-rp-err{display:none;margin:12px 0 0;padding:10px 12px;border-radius:12px;background:rgba(239,91,99,.12);border:1px solid rgba(239,91,99,.4);font-size:13px;color:#dc2626}
.qd-rp-err.show{display:block}
.qd-rp-send{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:16px;padding:14px;border:0;border-radius:15px;background:linear-gradient(135deg,#f5b50a,#e08a00);color:#2a1800;font:inherit;font-size:15px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px rgba(245,181,10,.3)}
.qd-rp-send:disabled{opacity:.5;cursor:default;box-shadow:none}
.qd-rp-ghost{display:block;width:100%;margin-top:10px;padding:12px;border:1px solid var(--line2,rgba(148,163,205,.35));border-radius:15px;background:transparent;color:var(--text,#0f172a);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.qd-rp-done{text-align:center;padding:10px 4px 2px}
.qd-rp-done .tick{width:58px;height:58px;margin:4px auto 12px;border-radius:50%;display:grid;place-items:center;background:rgba(34,199,142,.15);border:1px solid rgba(34,199,142,.5);color:#16a34a}
.qd-rp-done .tick svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.qd-rp-done h4{margin:0 0 6px;font-size:18px;font-weight:800}
.qd-rp-done p{margin:0;font-size:13.5px;line-height:1.55;color:var(--muted,#64748b)}
.qd-rp-kv{margin:12px 0 0;padding:12px 14px;border-radius:14px;border:1px solid var(--line,rgba(148,163,205,.25));background:var(--surface2,#f8fafc);text-align:left;font-size:13px;line-height:1.55}
.qd-rp-kv div{display:flex;justify-content:space-between;gap:12px}.qd-rp-kv span{color:var(--muted,#64748b)}.qd-rp-kv b{text-align:right;overflow-wrap:anywhere}
@media(prefers-reduced-motion:reduce){.qd-rp,.qd-rp-ov,.qd-rp-sheet{transition:none}}

/* Agent portal: Customer reports (v408). Uses the agent cards' own look; these only lay out the rows. */
.agr-row{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--line,rgba(148,163,205,.25))}
.agr-card .agd-card-head+.agd-note+.agr-row,.agr-card .agd-card-head+.agr-row{border-top:0}
.agr-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.agr-main small{display:block;font-size:12.5px;line-height:1.5;overflow-wrap:anywhere}
.agr-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.agr-top b{min-width:0;overflow-wrap:anywhere}
.agr-note{white-space:pre-wrap}
.agr-side{flex:none}
.agr-ask{margin-top:8px}
.agr-ask input{display:block;width:100%;padding:11px 13px;border-radius:12px;border:1px solid var(--line2,rgba(148,163,205,.35));background:var(--input,var(--surface2,#f8fafc));color:var(--text,#0f172a);font:inherit;font-size:14px;outline:0}
.agr-btns{display:flex;gap:8px;margin-top:8px}
.agr-done{margin-top:6px;border-top:1px solid var(--line,rgba(148,163,205,.25))}
.agr-done summary{cursor:pointer;padding:12px 0 4px;font-size:13px;font-weight:700;color:var(--muted,#64748b)}
