/* Recommendation reports (list, editor) and the document library. The printed report styles live in print-reco.js. */

/* ---- shared filter bits */
.rr-filters, .dl-filters { align-items: flex-end; }
.dl-filters .f, .vr-filters .f { font-size: 12px; }
.dl-filters .f input, .dl-filters .f select { min-height: 38px; }
.dl-q { flex: 1 1 260px; }
.dl-q input { width: 100%; }
.vr-filters .f:first-child input[type=search] { min-width: 240px; }
.rr-chk-in { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; font-weight: 400; font-size: 13px; }
.rr-chk-in input, .vr-filters .f .rr-chk-in input { flex: none; width: 18px; height: 18px; min-height: 0; padding: 0; }
.rr-chk-in { white-space: nowrap; }
.rr-kpis { margin-bottom: 14px; }

/* ---- editor */
.rr-ed { max-width: 860px; }
.rr-ed .vr-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.rr-top { display: flex; gap: 8px; flex-wrap: wrap; }
.rr-note { margin-bottom: 14px; font-size: 13px; background: var(--info-bg); border-color: #c5d6f3; }
.rr-ed .vr .f > input, .rr-ed .f > input, .rr-ed .f > select, .rr-ed .f > textarea { padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; min-height: 44px; font-weight: 400; }
.rr-ed .f > span { font-weight: 600; font-size: 12.5px; color: var(--ink-2); }
.rr-ed .f small { font-weight: 400; color: var(--muted); }
.rr-ed .f > .vr-chips + input { margin-top: 6px; }
.rr-ed textarea:disabled, .rr-ed input:disabled, .rr-ed select:disabled { background: #f6f4ee; color: var(--ink-2); }
.rr-ed .vr-chip:disabled { opacity: .6; cursor: default; }
.rr-fc { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.rr-fc[open] { border-color: #9fb0cf; }
.rr-fc > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; min-height: 52px; }
.rr-fc > summary::-webkit-details-marker { display: none; }
.rr-fc > summary::after { content: "▾"; margin-left: 4px; color: var(--muted); }
.rr-fc[open] > summary::after { content: "▴"; }
.rr-fn { flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.rr-ft { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-ft b { margin-right: 4px; }
.rr-fm { display: flex; gap: 4px; align-items: center; flex: none; }
.rr-fm .chip { display: inline-flex; align-items: center; gap: 3px; }
.rr-fm .chip svg { width: 13px; height: 13px; }
.rr-fb { padding: 4px 14px 16px; border-top: 1px solid var(--line-2); }
.rr-follow { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.rr-phs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rr-ph { margin: 0; position: relative; display: grid; gap: 6px; align-content: start; }
.rr-ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #eee; }
.rr-ph input { padding: 7px 9px; min-height: 38px; font-size: 13px; border: 1px solid var(--line); border-radius: 7px; width: 100%; }
.rr-phb { position: absolute; top: 4px; right: 4px; display: flex; gap: 3px; }
.rr-phb .icon-btn { width: 32px; height: 32px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); font-size: 15px; }
.rr-add-ph { display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; min-height: 112px; border: 1.5px dashed #9aa3b2; border-radius: 8px; background: #fafaf7; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 13px; }
.rr-add-ph.busy { opacity: .5; pointer-events: none; }
.rr-add-ph svg { width: 26px; height: 26px; }
.rr-ed .vr-sign { display: grid; gap: 10px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.rr-ed .vr-sign:last-of-type { border-bottom: 0; }
.rr-ed .vr-sign h3 { margin: 0; font-size: 1rem; }
.rr-ed .vr-sigdone { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.rr-ed .vr-sigimg { max-height: 90px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; object-fit: contain; }

/* ---- document library */
.dl-pick { cursor: pointer; }
.dl-banner { margin-bottom: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--warn-bg); border-color: #f0d9a6; }
.dl-drop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; text-align: center; padding: 18px 14px; margin-bottom: 14px; border: 2px dashed #b8b2a2; border-radius: 12px; background: #fcfbf8; cursor: pointer; color: var(--ink-2); }
.dl-drop small { flex-basis: 100%; color: var(--muted); }
.dl-drop.over { border-color: var(--navy); background: #eef2fb; }
.dl-drop-btn { color: var(--info); font-weight: 700; text-decoration: underline; }
.dl-drop.dl-mini { padding: 10px; margin: 0; }
.dl-up { display: grid; gap: 4px; margin: 0 0 12px; font-size: 13px; }
.dl-urow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.dl-urow b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-urow.ok .st { color: var(--good); }
.dl-urow.bad { background: var(--bad-bg); }
.dl-urow.bad .st { color: var(--bad); }
.dl-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; flex: none; font: 700 10.5px/1 var(--mono); color: #fff; background: #6b7484; letter-spacing: .02em; }
.dl-ico.pdf { background: #c0392b; } .dl-ico.doc { background: #2b5eb8; } .dl-ico.xls { background: #1d7a4b; } .dl-ico.ppt { background: #c4620a; }
.dl-list td.lead { display: flex; gap: 10px; align-items: flex-start; }
.dl-t { min-width: 0; }
.dl-tags { margin-top: 3px; }
.dl-acts { white-space: nowrap; }
.attn li .dl-ico { width: 32px; height: 32px; font-size: 9.5px; }

/* website enquiries on the Enquiries board */
.card.web { border-left: 3px solid var(--info); background: #f7faff; }
.web-chip { background: var(--info); color: #fff; font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; }

@media (max-width: 900px) {
  .rr-fm .chip { display: none; }
  .rr-ed .vr-hero .rr-top { display: none; }
  .dl-acts { white-space: normal; }
  .dl-list td.lead { display: block; }
  .dl-list td.lead .dl-ico { float: left; margin-right: 10px; }
  .dl-list td.dl-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
  .dl-list td.dl-acts::before { display: none; }
  .rr-phs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-q { flex-basis: 100%; }
  .vr-filters .f:first-child input[type=search] { min-width: 0; }
}
.rr-ed [hidden], .dl-up[hidden] { display: none !important; }
