/* The refuelling review (design-v2 dialogs/m-receipt.html, css/18-slice-a.css «m-receipt (J4)»):
   the photograph's frame beside the three checks, and the foot's one way to the vehicle.
   Slice 6. Loaded after app.css; nothing here restyles a rule app.css owns. */
.rcg { grid-template-columns: 170px 1fr; gap: 12px; margin-bottom: 14px }
.dlgf .dlgt + .rcg, .dlgf .dlgs + .rcg { margin-top: 16px }
/* A second photograph of the same refuelling gets a frame of its own and no column beside it. */
.rcg:has(> div:last-child:empty) { grid-template-columns: 170px }
.rcg > div:last-child:empty { display: none }
.rcph {
  min-height: 132px; border: 1.5px dashed var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--tx3); font-size: 11.5px; overflow: hidden; padding: 6px; box-sizing: border-box;
}
/* The picture is the product's real photograph: it fills the frame, never stretches and never
   leaves it, and the capture time stays under it as the drawing's caption does. */
.rcph img { display: block; max-width: 100%; max-height: 150px; object-fit: contain; border-radius: 6px }
.dlga:has(> .lnk) { align-items: center }
/* The drawing keeps this window's fact lines as rows (label left, value right) on a phone as well;
   the product's own narrow rule stacks every `.kvr`, and a window with a frame is the one that
   asked for rows. */
.dlgf:has(.rcg) .kvr { flex-direction: row; align-items: baseline; gap: 12px; padding: 9px 0 }
.dlgf:has(.rcg) .kvr .v { text-align: right; max-width: none }
.dlga .lnk { margin-right: auto }
@media (max-width: 620px) {
  .rcg, .rcg:has(> div:last-child:empty) { grid-template-columns: 1fr !important }
  .rcph { min-height: 96px }
  /* the three chips of the verdict stay on one row in a 360-px window, as drawn */
  .dlgf:has(.rcg) .segw .seg { padding-left: 8px; padding-right: 8px }
  .dlga .lnk { margin: 0 auto 4px; order: -1 }
}

/* OD-389: the photograph is a button that opens it full size (design-v2 m-receipt `.rcph` as a button,
   state «photo-open» `.phv`). The frame keeps the drawn look; only the button's own chrome is reset. */
button.rcph { background: none; font: inherit; width: 100%; cursor: zoom-in; color: var(--tx3) }
button.rcph:hover { border-color: var(--tx3) }
button.rcph:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px }
dialog.phv {
  position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(0, 0, 0, .88); color: #fff; overflow: hidden;
}
dialog.phv::backdrop { background: rgba(0, 0, 0, .88) }
.phv-s { position: absolute; inset: 0 0 44px 0; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none }
.phv-i { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; transform-origin: center; cursor: grab }
.phv-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 22px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 28px; line-height: 1; cursor: pointer }
.phv-x:hover { background: rgba(255, 255, 255, .28) }
.phv-c { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 56px; font-size: 13px; text-align: center }
