/* Retail's own additions to the shared style.css and hs.css (simmons-estate#186, #187). */
.rq-wrap.rt-wrap { max-width: 1040px; }
.rt-section + .rt-section { margin-top: 34px; }
.rt-section-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--grey-text); margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.rt-later { align-self: flex-start; margin-top: auto; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600;
  color: var(--warn); background: var(--warn-bg); border: 1px solid #FFE08A; }
.rt-who { margin-right: 12px; font-size: 14px; color: var(--grey-text); }
.topbar-right { display: flex; align-items: center; }
.rt-intro { line-height: 1.5; margin: 0 0 18px; }
.rt-mock { font-size: 14px; line-height: 1.6; border-style: dashed; }
/* The landing page's visits in progress (simmons-estate#187). */
.rt-drafts { margin-bottom: 28px; }
.rt-draft { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red); border-radius: 5px; }
.rt-draft a { font-weight: 600; color: var(--dark); text-decoration: none; }
.rt-draft-when { font-size: 13px; color: var(--grey-text); }

/* A form, one section a screen, on a phone first (simmons-estate#187). */
.rt-form { max-width: 720px; }
.rt-form-head .rq-q { margin-bottom: 2px; }
.rt-progress { height: 4px; background: var(--border); border-radius: 2px; margin: 8px 0 16px; overflow: hidden; }
.rt-progress span { display: block; height: 100%; background: var(--red); }
.rt-card { padding: 18px 16px; }
.rt-section { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 0.03em; margin: 0 0 14px; }
.rt-heading { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 18px; margin: 18px 0 6px; }
.rt-q { padding: 12px 0; border-top: 1px solid var(--border); }
.rt-q:first-of-type { border-top: 0; padding-top: 0; }
.rt-label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; line-height: 1.35; }
.rt-req { color: var(--red); }
.rt-help { font-size: 14px; color: var(--grey-text); margin: 4px 0 8px; line-height: 1.4; }
.rt-input input, .rt-input select, .rt-input textarea, .rt-row-comment, .rt-tcell input {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 17px; border: 2px solid var(--border); border-radius: 6px;
  background: var(--surface); color: var(--dark); font-family: inherit; }
.rt-input textarea { min-height: 110px; line-height: 1.45; resize: vertical; }
.rt-input input:focus, .rt-input select:focus, .rt-input textarea:focus, .rt-row-comment:focus, .rt-tcell input:focus { outline: none; border-color: var(--red); }
.rt-input .rt-num { width: 9em; }
.rt-unit { font-size: 18px; margin: 0 6px; color: var(--grey-text); }
.rt-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-choice, .rt-mark { min-height: 48px; padding: 0 14px; font: inherit; font-size: 16px; font-weight: 600; border: 2px solid var(--border);
  border-radius: 6px; background: var(--surface); color: var(--dark); cursor: pointer; }
.rt-choice.rt-on, .rt-mark.rt-on { background: var(--red); border-color: var(--red); color: #fff; }
.rt-mark.rt-na.rt-on { background: var(--grey-text); border-color: var(--grey-text); }
.rt-stars { display: flex; align-items: center; gap: 4px; }
.rt-star { width: 52px; height: 52px; font-size: 34px; line-height: 1; border: 0; background: none; color: var(--border); cursor: pointer; }
.rt-star.rt-on { color: #E0A100; }
.rt-stars-key { margin-left: 10px; font-size: 13px; color: var(--grey-text); }
.rt-row { padding: 12px 0; border-top: 1px dashed var(--border); }
.rt-row:first-child { border-top: 0; padding-top: 0; }
.rt-row-label { font-size: 15px; line-height: 1.4; margin-bottom: 8px; }
.rt-marks { display: grid; gap: 6px; }
.rt-marks-6 { grid-template-columns: repeat(6, 1fr); }
.rt-marks-3 { grid-template-columns: repeat(3, 1fr); }
.rt-marks-2 { grid-template-columns: repeat(2, 1fr); }
.rt-mark { padding: 0 4px; font-size: 14px; }
.rt-input .rt-row-comment { margin-top: 8px; min-height: 44px; height: 44px; font-size: 15px; resize: vertical; }
.rt-trow { padding: 10px 0; border-top: 1px dashed var(--border); }
.rt-trow:first-child { border-top: 0; }
.rt-tcells { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px; }
.rt-tcell input { padding: 10px 8px; font-size: 16px; }
.rt-tcell span { display: block; font-size: 12px; color: var(--grey-text); margin-bottom: 2px; }
.rt-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.rt-cam { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px dashed var(--border);
  border-radius: 20px; font-size: 14px; color: var(--grey-text); cursor: pointer; }
.rt-cam:hover { border-color: var(--red); color: var(--red); }
.rt-thumb { position: relative; width: 64px; height: 64px; }
.rt-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.rt-thumb-x { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--red);
  color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.rt-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.rt-nav .btn { min-height: 52px; padding: 0 22px; font-size: 17px; }
.rt-scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 16px; }
.rt-score { display: flex; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; }
.rt-tick { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin: 8px 0 16px; }
.rt-tick input { width: 26px; height: 26px; }
.rt-to ul { margin: 0 0 8px 18px; }
.rt-to li { margin: 4px 0; }
.rt-finish { width: 100%; min-height: 56px; font-size: 18px; margin-top: 8px; }
.rt-discard { text-align: center; margin-top: 18px; }
.rt-link { border: 0; background: none; color: var(--grey-text); text-decoration: underline; font: inherit; cursor: pointer; }
.rt-save { font-size: 13px; color: var(--grey-text); }
.rt-save-bad { color: #B71C1C; }
/* The Forms page (simmons-estate#192). */
.rt-editor { max-width: 820px; }
.rt-elist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 18px; }
.rt-eform { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--surface); color: var(--dark); font: inherit; cursor: pointer; }
.rt-eform.rt-on { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.rt-eform .muted { font-size: 13px; }
.rt-efield { display: block; margin: 8px 0; }
.rt-efield > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.rt-efield input, .rt-efield select, .rt-efield textarea { width: 100%; min-height: 42px; padding: 8px 10px; font: inherit; font-size: 15px;
  border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--dark); }
.rt-efield textarea { min-height: 70px; resize: vertical; }
.rt-echeck { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 15px; }
.rt-echeck input { width: 20px; height: 20px; }
.rt-erow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.rt-erow .rt-efield { flex: 0 1 200px; }
.rt-esection-head { display: flex; align-items: flex-end; gap: 10px; }
.rt-esection-head .rt-efield { flex: 1; }
.rt-eitem { border: 1px solid var(--border); border-radius: 6px; margin: 8px 0; background: var(--surface); }
.rt-eitem-head { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none;
  color: var(--dark); font: inherit; text-align: left; cursor: pointer; }
.rt-eitem-head .muted { font-size: 13px; white-space: nowrap; }
.rt-eitem-open { border-color: var(--red); }
.rt-eitem-body { padding: 0 12px 10px; border-top: 1px dashed var(--border); }
.rt-eheading { padding: 4px 12px; background: var(--cream); }
.rt-escore { margin-top: 10px; padding: 8px 10px; border-left: 3px solid var(--border); }
.rt-eactions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.rt-emove { display: inline-flex; gap: 6px; font-size: 18px; }
.rt-ebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.rt-input.rt-comment textarea { min-height: 60px; margin-top: 8px; font-size: 15px; }
/* Mystery shop visits (simmons-estate#194): two tables, filters, and scores in their colours. */
.rt-wide { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px; }
.rt-tabs { margin: 8px 0 14px; }
.rt-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; margin-bottom: 8px; }
.rt-vtable { min-width: 720px; }
.rt-vrow { cursor: pointer; }
.rt-vrow.rt-on td { background: var(--hover); }
.rt-vrow td { vertical-align: middle; }
.rt-chev { color: var(--grey-text); text-align: right; }
.rt-detail td { background: var(--cream); }
.rt-detail .rt-scores { margin-bottom: 12px; }
.rt-detail .rt-score { align-items: center; gap: 8px; }
.rt-pill { flex: none; }
/* Edit wording (simmons-estate#196). */
.rt-wording { margin: 4px 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.rt-wording-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.rt-wording-sec { margin: 12px 0 2px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--red); }
.rt-wording-f { display: block; margin: 8px 0; }
.rt-wording-f > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.rt-wording-f textarea { width: 100%; min-height: 40px; padding: 8px 10px; font: inherit; font-size: 15px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--dark); resize: vertical; }
.rt-wording-f textarea:focus { outline: none; border-color: var(--red); }
.rt-wsave { font-weight: 400; font-style: normal; font-size: 12px; color: var(--grey-text); margin-left: 6px; }
.rt-was { display: block; margin-top: 4px; font-size: 13px; color: var(--grey-text); font-style: italic; }
.rt-pill { display: inline-block; min-width: 46px; padding: 2px 8px; border-radius: 12px; font-weight: 700; font-size: 14px; text-align: center; color: #fff; background: var(--grey-text); }
.rt-pill.rt-good { background: #2E7D32; }
.rt-pill.rt-mid { background: #D98200; }
.rt-pill.rt-low { background: #B8272C; }
/* On a phone: the shop, the visit date and the overall only; the rest is in the row when it is opened. */
@media (max-width: 700px) {
  .rt-vtable { min-width: 0; }
  .rt-vtable th:nth-child(2), .rt-vtable td:nth-child(2), .rt-vtable th:nth-child(4), .rt-vtable td:nth-child(4),
  .rt-vtable th:nth-child(6), .rt-vtable td:nth-child(6) { display: none; }
  .rt-vtable .rt-detail td { display: table-cell; }
  .rt-detail .btn-row .btn { width: 100%; }
}
/* "Add a note": a small button until a note is wanted, in place of an empty box. */
.rt-note { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: 8px; padding: 0 12px; border: 1px dashed var(--border);
  border-radius: 18px; background: none; font: inherit; font-size: 14px; color: var(--grey-text); cursor: pointer; }
.rt-note:hover { border-color: var(--red); color: var(--red); }
.rt-photos .rt-note { margin-top: 0; min-height: 40px; border-radius: 20px; }
.rt-eitem-head { flex-wrap: wrap; }
.rt-erule { flex-basis: 100%; font-size: 13px; color: var(--red); }
.rt-eheading > .rt-efield { margin-top: 0; }
.rt-eitem-top { display: flex; align-items: center; gap: 8px; }
.rt-eitem-top .rt-eitem-head, .rt-eitem-top .rt-efield { flex: 1; min-width: 0; }
.rt-eitem-top .rt-emove { padding-right: 10px; }
.rt-emove .rt-link { min-width: 32px; min-height: 32px; text-decoration: none; }
.rt-score-all { border-color: var(--red); font-weight: 600; }
/* The company's link has no way back to tiles it cannot open (simmons-estate#191). */
.back-row[hidden] { display: none; }

@media (max-width: 640px) {
  .rt-who { display: none; }
  .rt-marks-6 { grid-template-columns: repeat(3, 1fr); }
  .back-row { padding: 10px 16px; }
  /* On a phone, an area manager has thirteen tiles: each a short row, icon left, so the lot fits in two screens. */
  .rt-wrap { padding-top: 40px; }
  .rt-wrap .fm-index { gap: 10px; }
  .rt-wrap .fm-tile { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
    min-height: 0; padding: 12px 40px 12px 14px; }
  .rt-wrap .fm-tile-icon { grid-row: 1 / span 3; margin: 0; }
  .rt-wrap .fm-tile-name { font-size: 18px; }
  .rt-wrap .fm-tile-desc { font-size: 13px; padding-right: 0; }
  .rt-wrap .rt-later { justify-self: start; margin-top: 2px; }
  .rt-wrap .fm-tile-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
}
