/* 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; }
/* The landing page's menus and shops' figures (simmons-estate#197). */
.rt-home { max-width: 1100px; }
.rt-menu-back { display: inline-block; margin-bottom: 8px; color: var(--red); font-weight: 600; text-decoration: none; }
.rt-menus { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rt-count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: var(--red); color: #fff;
  font-family: 'Barlow', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; vertical-align: 3px; }
.rt-shops { margin-top: 26px; }
.rt-menu-back[hidden], .rt-count[hidden], .rt-shops[hidden] { display: none; }
.rt-f-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 10px; }
.rt-f-nav { display: flex; align-items: center; gap: 10px; }
.rt-f-arr { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--dark); font-size: 20px; cursor: pointer; }
.rt-f-arr:disabled { opacity: 0.35; cursor: default; }
.rt-f-wkl { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; }
.rt-f-wkd { font-size: 13px; color: var(--grey-text); }
.rt-f-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rt-f-ctl select { min-height: 38px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--dark); font: inherit; font-size: 14px; }
.rt-f-sw { display: flex; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); }
.rt-f-sw button { border: 0; background: none; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--grey-text); cursor: pointer; }
.rt-f-sw button.rt-on { background: var(--dark); color: var(--cream); }
.rt-f-cmp { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.rt-f-cmp input { width: 18px; height: 18px; accent-color: var(--red); }
.rt-f-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.rt-f-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rt-f-table th { position: sticky; top: 0; padding: 8px 6px; background: var(--cream); color: var(--grey-text); text-align: right;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.rt-f-table td { padding: 9px 6px; text-align: right; border-bottom: 1px solid var(--cream); vertical-align: top; }
.rt-f-table th:first-child, .rt-f-table td:first-child { text-align: left; padding-left: 12px; position: sticky; left: 0; background: var(--surface); }
.rt-f-table th:first-child { background: var(--cream); }
.rt-f-name { font-weight: 600; min-width: 150px; }
.rt-f-wk { font-weight: 700; }
.rt-f-ly { display: block; font-size: 11.5px; font-weight: 400; color: var(--grey-text); }
.rt-f-mu { color: var(--grey-text); opacity: 0.6; }
.rt-f-today { background: var(--rt-today) !important; }
.rt-f-ok { color: #2E7D32; }
.rt-f-hi { color: #B8272C; font-weight: 600; }
.rt-f-up { color: #2E7D32; font-weight: 600; white-space: nowrap; }
.rt-f-dn { color: #B8272C; font-weight: 600; white-space: nowrap; }
.rt-f-group td { padding-top: 14px; background: var(--surface); color: var(--red); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; text-align: left; }
.rt-f-sub td { font-weight: 600; background: var(--rt-soft); }
.rt-f-sub td:first-child { background: var(--rt-soft); }
.rt-f-tot td { font-weight: 700; border-top: 2px solid var(--dark); background: var(--rt-soft); }
.rt-f-tot td:first-child { background: var(--rt-soft); }
.rt-f-note { font-size: 13px; color: var(--grey-text); margin-top: 8px; }
/* On a phone the shop column stays put and narrow, and the days scroll beside it. */
@media (max-width: 700px) {
  .rt-f-table { font-size: 13px; min-width: 640px; }
  .rt-f-name { min-width: 0; width: 104px; max-width: 104px; font-size: 12.5px; line-height: 1.25; }
  .rt-f-table td, .rt-f-table th { padding: 8px 4px; }
}
/* Hours, and a shop opened to its people by day and hours type (retail#15). One colour for each hours type. */
:root { --t1: #2F6DB5; --t2: #2E8B57; --t3: #C0392B; --t4: #7E57C2; --t6: #D98200; --t7: #C2185B; --tx: #6D7A86; --rt-soft: #FBF8F2; --rt-today: #FFF6DE; }
:root[data-theme="dark"] { --t1: #3D7CC9; --t2: #2F9461; --t3: #D04A3C; --t4: #8A63D2; --t6: #C77700; --t7: #D02A6E; --tx: #7A8792; --rt-soft: #2c2a27; --rt-today: #3a3220; }
.rt-t1 { --tc: var(--t1); } .rt-t2 { --tc: var(--t2); } .rt-t3 { --tc: var(--t3); } .rt-t4 { --tc: var(--t4); }
.rt-t6 { --tc: var(--t6); } .rt-t7 { --tc: var(--t7); } .rt-tx { --tc: var(--tx); }
/* Hours charged to Shops Unallocated by a shop's own people: teal, apart from the hours types. */
:root { --un: #00838F; --un-bg: #E0F4F5; }
:root[data-theme="dark"] { --un: #3FB8C4; --un-bg: #173436; }
.rt-f-un { display: block; width: fit-content; margin: 2px 0 0 auto; padding: 0 5px; border-radius: 8px; background: var(--un-bg); color: var(--un);
  font-size: 11px; font-weight: 600; white-space: nowrap; }
.rt-f-note .rt-f-un { display: inline; margin: 0; }
.rt-h-kpi.rt-h-unk { border-top-color: var(--un); }
.rt-h-kpi.rt-h-unk b { color: var(--un); }
.rt-h-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 16px 0 8px; color: var(--un);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.rt-h-sub span { font-family: 'Barlow', sans-serif; font-weight: 400; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--grey-text); }
.rt-h-grid.rt-h-ungrid { border-color: var(--un); border-left-width: 4px; }
@media (max-width: 700px) { .rt-h-grid.rt-h-ungrid { border: 0; } .rt-h-ungrid .rt-h-p { border-left: 4px solid var(--un); } }
.rt-f-shop { cursor: pointer; }
.rt-f-shop:hover td, .rt-f-shop:hover td:first-child { background: var(--hover); }
.rt-f-shopbtn { display: inline-flex; align-items: flex-start; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--dark); text-align: left; cursor: pointer; }
.rt-f-chev { display: inline-block; width: 12px; color: var(--red); font-weight: 700; transition: transform 0.15s; }
.rt-f-isopen .rt-f-chev { transform: rotate(90deg); }
.rt-f-isopen td, .rt-f-isopen td:first-child { background: var(--hover); border-bottom-color: transparent; }
.rt-f-table td.rt-h-cell { position: static; padding: 0; text-align: left; background: var(--hover); border-bottom: 1px solid var(--border); }
.rt-h-panel { position: sticky; left: 0; box-sizing: border-box; padding: 6px 12px 14px; animation: rt-h-in 0.2s ease-out; }
@keyframes rt-h-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rt-h-panel { animation: none; } .rt-f-chev { transition: none; } }
.rt-h-wait { margin: 8px 0; color: var(--grey-text); font-size: 14px; }
.rt-h-head { margin-bottom: 10px; }
.rt-h-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.rt-h-kpi { padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--t1); }
.rt-h-kpi b { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 700; line-height: 1.1; }
.rt-h-kpi b small { font-size: 15px; margin-left: 1px; }
.rt-h-kpi span { font-size: 12.5px; color: var(--grey-text); }
.rt-h-kpi.rt-h-warn { border-top-color: var(--t6); }
.rt-h-kpi.rt-h-warn b { color: var(--t6); }
.rt-h-mix { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--border); }
.rt-h-mix span, .rt-h-mini span { display: block; height: 100%; background: var(--tc); }
.rt-h-mix span + span, .rt-h-mini span + span { box-shadow: inset 1px 0 0 var(--surface); }
.rt-h-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.rt-h-keyi { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rt-h-keyi i { width: 10px; height: 10px; border-radius: 3px; background: var(--tc); }
.rt-h-grid { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; }
.rt-h-p { display: grid; grid-template-columns: minmax(170px, 1.4fr) 7fr minmax(90px, 0.8fr); align-items: center; gap: 0 8px; padding: 8px 12px; border-top: 1px solid var(--cream); }
.rt-h-p.rt-h-top { border-top: 0; padding-top: 6px; padding-bottom: 6px; background: var(--rt-soft); color: var(--grey-text);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.rt-h-top .rt-h-d { min-height: 0; text-align: center; }
.rt-h-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rt-h-who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-h-av { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); color: var(--dark);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; }
.rt-h-from { display: inline-block; margin-top: 2px; padding: 0 7px; border-radius: 9px; background: var(--warn-bg); color: var(--warn); font-size: 11.5px; font-weight: 600; }
:root[data-theme="dark"] .rt-h-from { color: var(--t6); }
.rt-h-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rt-h-d { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 34px; border-radius: 6px; }
.rt-h-today { background: var(--warn-bg); }
.rt-h-dl { display: none; }
.rt-h-none { color: var(--grey-text); opacity: 0.5; }
.rt-h-chip { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 7px; border-radius: 12px; background: var(--tc); color: #fff;
  font-weight: 700; font-size: 13px; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-h-chip i { font-style: normal; font-weight: 500; font-size: 10.5px; opacity: 0.9; }
.rt-h-tot { text-align: right; }
.rt-h-tot b { font-family: 'Barlow Condensed', sans-serif; font-size: 19px; font-weight: 700; }
.rt-h-mini { display: flex; margin: 3px 0 0 auto; height: 5px; border-radius: 3px; overflow: hidden; }
.rt-f-tip { margin-top: 2px; }
/* A tablet: the chips lose their type names; the colours and the key say it. */
@media (max-width: 1000px) { .rt-h-chip i { display: none; } .rt-h-chip { padding: 3px 6px; } }
/* A phone: a card per person, their name and week on top and the seven days as a strip beneath. */
@media (max-width: 700px) {
  .rt-h-panel { padding: 6px 8px 12px; }
  .rt-h-kpis { display: flex; flex-wrap: wrap; gap: 6px; }
  .rt-h-kpi { flex: 1 1 90px; padding: 6px 10px; }
  .rt-h-kpi b { font-size: 22px; }
  .rt-h-grid { border: 0; background: none; display: grid; gap: 8px; }
  .rt-h-top { display: none !important; }
  .rt-h-p { grid-template-columns: 1fr auto; grid-template-areas: "who tot" "days days"; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
  .rt-h-who { grid-area: who; } .rt-h-tot { grid-area: tot; } .rt-h-days { grid-area: days; gap: 3px; }
  .rt-h-mini { width: 64px !important; }
  .rt-h-d { justify-content: flex-start; padding: 4px 0; background: var(--rt-soft); }
  .rt-h-d.rt-h-today { background: var(--warn-bg); }
  .rt-h-dl { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 11px; color: var(--grey-text); }
  .rt-h-chip { padding: 2px 4px; font-size: 12px; border-radius: 8px; }
}
/* 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%); }
}
