/* ---------- job reports ---------- */
#reports { height: 100%; display: flex; flex-direction: column; }
#rpSearch { flex: 1; min-width: 0; padding: 6px 9px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
#rpList { overflow: auto; flex: 1; padding: 10px 8px 16px; }
#rpDetail { overflow: auto; background: var(--bg); min-height: 0; }
.rp-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.rp-flag { font-size: 10.5px; padding: 1px 6px; border-radius: 3px; background: var(--head); color: var(--muted); }
.rp-flag.bad { background: var(--bad-soft, #fde8e8); color: var(--bad, #b42318); font-weight: 600; }
.rp-sheet { max-width: 900px; margin: 16px auto; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 4px; padding: 18px 22px 24px; }
.rp-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.rp-head h2 { margin: 0 0 2px; font-size: 19px; color: var(--title); }
.rp-status { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 12px; background: var(--head); white-space: nowrap; }
.rp-status.st-completed { background: var(--info-soft); color: var(--info); }
.rp-status.st-issue_reschedule { background: var(--warn-soft); color: var(--warn); }
.rp-status.st-reviewed, .rp-status.st-billed { background: var(--good-soft); color: var(--good); }
.rp-btns { display: flex; gap: 8px; margin: 12px 0 6px; }
.rp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; margin: 14px 0; }
.rp-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rp-facts dd { margin: 2px 0 0; }
.rp-sheet h4 { margin: 18px 0 6px; color: var(--title); border-bottom: 1px solid var(--line-soft); padding-bottom: 4px; }
.rp-scope { white-space: pre-wrap; margin: 0; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.rp-yn { border: 1px solid var(--line-soft); border-radius: 4px; padding: 8px 10px; }
.rp-yn.bad { border-color: var(--bad, #b42318); background: var(--bad-soft, #fde8e8); }
.rp-yn p { margin: 4px 0 0; white-space: pre-wrap; }
.rp-notes { margin: 0; padding-left: 18px; }
.rp-notes li { margin-bottom: 4px; }
.rp-sig { max-width: 300px; max-height: 110px; border: 1px solid var(--line-soft); border-radius: 4px; background: #fff; display: block; }
.rp-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.rp-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--head); border-radius: 4px; border: 1px solid var(--line-soft); display: block; }
@media (max-width: 760px) { .rp-two { grid-template-columns: 1fr; } }
/* office-only details: shown on screen, never in the PDF */
.rp-office { margin: 14px 0 6px; padding: 10px 14px 12px; border: 1.5px dashed #c99a2e; background: #fff8e6; border-radius: 6px; }
.rp-office .rp-facts { margin: 8px 0; }
.rp-office .small { font-size: 12.5px; margin: 6px 0 0; }
.rp-office-h { font-weight: 700; color: #8a5a00; font-size: 13px; }
.rp-office-h span { font-weight: 500; font-size: 11.5px; margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: #f3dfb0; }
.rp-pdf-h { margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
/* pricing, in the office box */
.rp-price { border-top: 1px dashed #e2c67f; margin-top: 10px; padding-top: 8px; }
.rp-price .rp-facts { align-items: end; }
.adj-price-text { color: #1d4ed8; font-weight: 700; background: #dbeafe; padding: 0 4px; border-radius: 3px; }
.adj-tag { font-size: 10.5px; font-weight: 700; color: #1d4ed8; background: #dbeafe; padding: 1px 6px; border-radius: 9px; text-transform: uppercase; letter-spacing: .03em; }
.rp-price-edit { display: flex; flex-direction: column; gap: 8px; }
.rp-price-edit label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.rp-price-edit label.chk { flex-direction: row; align-items: center; gap: 6px; align-self: end; padding-bottom: 8px; }
.rp-price-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; }
.rp-price-edit input:not([type="checkbox"]), .rp-price-edit textarea { padding: 7px 9px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; font: inherit; }
.rp-price-edit .rp-btns { margin: 0; }
@media (max-width: 760px) { .rp-price-row { grid-template-columns: 1fr; } }

/* one button for a batch: approve routine reports, or mark past jobs done */
.rp-batch { margin: 6px 8px 8px; padding: 9px 11px; border: 1px solid var(--line); border-left: 3px solid var(--green, #3a7d44); border-radius: 5px; background: var(--panel); font-size: 12.5px; }
.rp-batch p { margin: 0 0 7px; color: var(--muted); }
.rp-batch p b { color: var(--text, inherit); }
.rp-flag.ok { background: color-mix(in srgb, var(--green, #3a7d44) 14%, transparent); color: var(--green, #3a7d44); }
.rp-over { color: var(--bad); font-weight: 600; }
