/* radar/radar.css - asMade Radar: night blue + gold (owner 2026-12-04). Gold only for accents, buttons and marks - never text on white. */
:root { --rd-night: #0f1b33; --rd-night2: #16243f; --rd-gold: #d4a72c; --rd-gold-soft: #f6ecd0; --rd-bg: #f6f7fa; --rd-ink: #1b2436; --rd-mut: #667085; --rd-line: #e3e6ee; --rd-ok: #15803d; --rd-bad: #b42318; }
/* owner 2026-12-05: the app sits inside the regular asMade frame (like the QMS) - every rule stays inside .rd so the system
   menu and top part are untouched; the landing page uses its own radar/landing.css */
.rd, .rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
.rd { font-family: Heebo, Arial, sans-serif; color: var(--rd-ink); direction: rtl; }
.rd.rd-main { text-align: right; max-width: 1240px; margin: 0 auto; }
body.rd { background: var(--rd-bg); }
.rd a { color: inherit; }
.rd-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; color: #fff; text-decoration: none; }
.rd-logo svg { flex: none; }
.rd-btn { display: inline-block; border: 0; border-radius: 10px; padding: 11px 20px; font: 700 15px Heebo, Arial, sans-serif; cursor: pointer; text-decoration: none; }
.rd-btn.gold { background: var(--rd-gold); color: var(--rd-night); }
.rd-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.rd-btn.night { background: var(--rd-night); color: #fff; }

/* the app */
.rd-top { background: var(--rd-night); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; position: sticky; top: 0; z-index: 5; }
.rd-top .who { font-size: 13px; opacity: .85; display: flex; gap: 14px; align-items: center; }
.rd-top .who a { text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,.4); }
/* owner 2026-12-05: one side menu (QMS style) instead of the top bar; the top bar above only on a phone */
.rd-wrap { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.rd-side { background: var(--rd-night); color: #cdd5e4; padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.rd-side-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 12px; }
.rd-side-x { display: none; border: 0; background: transparent; color: #fff; font-size: 24px; cursor: pointer; padding: 0; }
.rd-co { font-size: 13px; color: #fff; font-weight: 600; padding: 0 10px 10px; overflow-wrap: anywhere; }
.rd-side a.rd-pm { border: 1px solid var(--rd-gold); color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.rd-side a.rd-pm i { color: var(--rd-gold); }
.rd-side a.rd-pm:hover { background: rgba(212,167,44,.14); }
.rd-nav-in { flex: 1; }
.rd-side-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; margin-top: 12px; }
.rd-side-foot a { font-size: 13.5px; opacity: .85; }
.rd-col { min-width: 0; }
.rd-mtop { display: none; }
.rd-scrim { display: none; }
.rd-side .grp { font-size: 11.5px; opacity: .6; margin: 14px 10px 6px; }
.rd-side a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px; text-decoration: none; font-size: 14.5px; margin-bottom: 2px; }
.rd-side a:hover { background: var(--rd-night2); }
.rd-side a.on { background: var(--rd-gold); color: var(--rd-night); font-weight: 700; }
.rd-main { padding: 22px; min-width: 0; }
.rd-main h1 { font-size: 22px; margin: 0 0 4px; }
.rd-sub { color: var(--rd-mut); font-size: 13.5px; margin: 0 0 18px; }
.rd-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.rd-kpi { background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 14px; }
.rd-kpi span { font-size: 13px; color: var(--rd-mut); }
.rd-kpi b { display: block; font-size: 28px; margin-top: 4px; color: var(--rd-night); }
.rd-kpi.gold { border-top: 3px solid var(--rd-gold); }
.rd-card { background: #fff; border: 1px solid var(--rd-line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.rd-card h2 { font-size: 16px; margin: 0 0 10px; }
.rd-upd { list-style: none; margin: 0; padding: 0; }
.rd-upd li { padding: 9px 0; border-bottom: 1px solid var(--rd-line); font-size: 14px; display: flex; gap: 9px; align-items: baseline; }
.rd-upd li:last-child { border-bottom: 0; }
.rd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rd-gold); flex: none; box-shadow: 0 0 0 4px rgba(212,167,44,.2); }
.rd-upd small { color: var(--rd-mut); margin-inline-start: auto; white-space: nowrap; }
.rd-src { font-size: 12px; color: var(--rd-mut); margin-top: 8px; }
.rd-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rd-prod { background: #fff; border: 1px solid var(--rd-line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.rd-prod h3 { margin: 0; font-size: 17px; }
.rd-prod p { margin: 0; color: var(--rd-mut); font-size: 14px; line-height: 1.55; flex: 1; }
.rd-price { font-size: 22px; font-weight: 800; color: var(--rd-night); }
.rd-price small { font-size: 13px; font-weight: 400; color: var(--rd-mut); }
.rd-state { font-size: 13px; font-weight: 700; }
.rd-state.on { color: var(--rd-ok); } .rd-state.off { color: var(--rd-bad); }
.rd-note { background: var(--rd-gold-soft); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
@media (max-width: 860px) {
  .rd-wrap { grid-template-columns: 1fr; }
  .rd-side { position: fixed; top: 0; right: 0; width: 280px; max-width: 86vw; z-index: 30; transform: translateX(100%); transition: transform .2s ease; box-shadow: -8px 0 24px rgba(0,0,0,.25); }
  .rd-menu-open .rd-side { transform: none; }
  .rd-side-x { display: block; }
  .rd-scrim { position: fixed; inset: 0; background: rgba(15,27,51,.45); z-index: 20; }
  .rd-menu-open .rd-scrim { display: block; }
  .rd-mtop { display: flex; align-items: center; gap: 12px; background: var(--rd-night); color: #fff; padding: 10px 14px; position: sticky; top: 0; z-index: 10; }
  .rd-burger { border: 0; background: transparent; color: #fff; font-size: 26px; cursor: pointer; padding: 0; line-height: 1; }
  .rd-kpis { grid-template-columns: repeat(2, 1fr); }
  .rd-main { padding: 14px; }
}

/* the landing page */
.rd-hero { background: radial-gradient(circle at 15% 0%, rgba(212,167,44,.22), transparent 55%), var(--rd-night); color: #fff; padding: 0 0 56px; }
.rd-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; max-width: 1140px; margin: 0 auto; }
.rd-nav nav { display: flex; gap: 18px; align-items: center; font-size: 14.5px; }
.rd-nav nav a { text-decoration: none; opacity: .9; }
.rd-hero-in { max-width: 1140px; margin: 0 auto; padding: 40px 24px 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.rd-hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 14px; font-weight: 800; }
.rd-hero h1 em { font-style: normal; color: var(--rd-gold); }
.rd-hero p.lead { font-size: 18px; line-height: 1.65; opacity: .9; margin: 0 0 22px; }
.rd-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.rd-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 7px 13px; font-size: 13.5px; }
.rd-chip b { color: var(--rd-gold); }
.rd-screen { background: var(--rd-night2); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.rd-screen .kp { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.rd-screen .kp div { background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; opacity: .95; }
.rd-screen .kp b { display: block; font-size: 24px; color: var(--rd-gold); }
.rd-radar { height: 150px; margin-top: 12px; border-radius: 12px; position: relative; overflow: hidden; background: radial-gradient(circle, rgba(212,167,44,.10) 0 30%, transparent 31%), repeating-radial-gradient(circle, rgba(255,255,255,.08) 0 1px, transparent 1px 34px), #12203a; }
.rd-radar i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--rd-gold); box-shadow: 0 0 0 5px rgba(212,167,44,.25); }
.rd-sec { max-width: 1140px; margin: 0 auto; padding: 56px 24px; }
.rd-sec h2 { font-size: 30px; margin: 0 0 8px; }
.rd-sec .rd-sub { font-size: 16px; }
.rd-foot { background: var(--rd-night); color: #cdd5e4; text-align: center; padding: 26px 16px; font-size: 13.5px; }
.rd-foot a { color: #fff; }
@media (max-width: 860px) {
  .rd-hero-in { grid-template-columns: 1fr; padding-top: 18px; }
  .rd-hero h1 { font-size: 32px; }
  .rd-nav nav .hide-m { display: none; }
}

/* stage 3a: sales product pages (sales.asp, site.asp, watch.asp) */
.rd-filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.rd-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--rd-mut); }
.rd-filters input[type=text], .rd-filters select, .rd-fld select, .rd-fld textarea { font: 14px Heebo, Arial, sans-serif; padding: 8px 10px; border: 1px solid var(--rd-line); border-radius: 9px; background: #fff; color: var(--rd-ink); min-width: 170px; }
.rd-filters.one { flex-wrap: nowrap; }
.rd-filters.one select { flex: 1; min-width: 0; }
.rd-checks { display: flex; gap: 14px; flex-wrap: wrap; padding-bottom: 8px; }
.rd-checks label { flex-direction: row; align-items: center; gap: 6px; color: var(--rd-ink); font-size: 14px; }
.rd-actions { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.rd-count { font-size: 14px; color: var(--rd-mut); margin-bottom: 10px; }
.rd-count b { color: var(--rd-night); font-size: 18px; }
.rd-tblw { overflow-x: auto; }
.rd-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.rd-tbl th { text-align: right; font-size: 12.5px; color: var(--rd-mut); font-weight: 500; padding: 8px 10px; border-bottom: 2px solid var(--rd-line); white-space: nowrap; }
.rd-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--rd-line); vertical-align: top; }
.rd-tbl tbody tr:hover { background: #fafbfd; }
.rd-tbl td a { color: var(--rd-night); font-weight: 600; }
.rd-lead { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--rd-gold-soft); color: var(--rd-night); white-space: nowrap; }
.rd-lead.s-meeting { background: #dbeafe; color: #1e3a8a; }
.rd-lead.s-won { background: #dcfce7; color: var(--rd-ok); }
.rd-lead.s-lost { background: #eef0f4; color: var(--rd-mut); }
.rd-pager { display: flex; gap: 14px; justify-content: center; align-items: center; margin-top: 14px; font-size: 14px; }
.rd-pager a { border: 1px solid var(--rd-line); border-radius: 9px; padding: 6px 14px; text-decoration: none; background: #fff; }
.rd-back { margin: 0 0 8px; font-size: 13.5px; }
.rd-back a { color: var(--rd-mut); text-decoration: none; }
.rd-kpi b.sm { font-size: 17px; line-height: 1.35; }
.rd-kpi small { display: block; font-size: 12.5px; color: var(--rd-mut); }
.rd-grade { display: inline-block; font-size: 12.5px; font-weight: 800; border-radius: 6px; padding: 1px 7px; margin-inline-start: 4px; background: var(--rd-gold-soft); color: #9a4b00; vertical-align: middle; }
.rd-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rd-grid2 > .rd-card { margin-bottom: 14px; }
.rd-fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--rd-mut); margin-bottom: 10px; }
.rd-fld textarea { resize: vertical; }
.rd-inl { display: inline; margin: 0; }
.rd-btns { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rd-btn.ghost-d { background: transparent; color: var(--rd-night); border: 1px solid var(--rd-line); font-weight: 500; font-size: 14px; padding: 8px 14px; margin-top: 8px; }
.rd-x { border: 0; background: transparent; cursor: pointer; font-size: 20px; color: var(--rd-mut); padding: 0 4px; }
.rd-x:hover { color: var(--rd-bad); }
@media (max-width: 860px) {
	.rd-grid2 { grid-template-columns: 1fr; }
	.rd-filters label, .rd-filters input[type=text], .rd-filters select { width: 100%; }
}

/* stage 3b: contractor checks (verify.asp, contractor.asp) */
.rd-filters input[type=search] { font: 15px Heebo, Arial, sans-serif; padding: 9px 12px; border: 1px solid var(--rd-line); border-radius: 9px; background: #fff; color: var(--rd-ink); flex: 1; min-width: 0; }
.rd-match { display: inline-block; font-size: 11.5px; border-radius: 999px; padding: 2px 8px; background: #eef0f4; color: var(--rd-mut); white-space: nowrap; }
.rd-match.id { background: var(--rd-gold-soft); color: var(--rd-night); }
.rd-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.rd-dl dt { color: var(--rd-mut); }
.rd-dl dd { margin: 0; }

/* stage 3c: safety intelligence (safety.asp) - one-hue bars, thin, rounded only at the data end (left in RTL) */
.rd-bars { display: grid; gap: 7px; }
.rd-bar { display: grid; grid-template-columns: minmax(0, 40%) 1fr auto; gap: 10px; align-items: center; font-size: 13.5px; }
.rd-bar .l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--rd-ink); }
.rd-bar a.l { text-decoration: none; }
.rd-bar a.l:hover { text-decoration: underline; }
.rd-bar .t { height: 10px; }
.rd-bar .t i { display: block; height: 100%; background: var(--rd-night); border-radius: 4px 0 0 4px; }
.rd-bar b { font-weight: 600; color: var(--rd-ink); text-align: left; white-space: nowrap; min-width: 3.2em; }
.rd-bar b small { font-weight: 400; color: var(--rd-mut); font-size: 12px; }
.rd-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: -4px 0 14px; }
.rd-tags .rd-btn.ghost-d { margin-top: 0; }
.rd-tag { background: var(--rd-gold-soft); color: var(--rd-night); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; max-width: 100%; overflow-wrap: anywhere; }
.rd-tag a { text-decoration: none; margin-inline-start: 6px; color: var(--rd-mut); font-weight: 700; }
.rd-card h3 { font-size: 15px; margin: 18px 0 8px; }
.rd-card .rd-dl { margin-bottom: 12px; }
.rd-tbl.wide { min-width: 760px; }
.rd-tbl td.nw { white-space: nowrap; }

/* owner 2026-12-05: maps wherever they help + a little graphics and motion in the system */
.rd-map { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--rd-line); background: #e9eef5; position: relative; z-index: 0; }
.rd-map .leaflet-tile-pane { filter: grayscale(.55) saturate(.85) brightness(1.04); }
.rd-map .leaflet-popup-content { font-family: Heebo, Arial, sans-serif; direction: rtl; text-align: right; margin: 10px 12px; }
.rd-pop b { display: block; font-size: 14px; color: var(--rd-night); margin-bottom: 2px; }
.rd-pop div { font-size: 13px; color: var(--rd-mut); }
.rd-pop a { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--rd-night); }
/* owner 2026-12-05: pins coloured by the type of work - the legend under the map and the types in a card */
.rd-mapleg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 2px 0; font-size: 13px; color: var(--rd-mut); }
.rd-mapleg span, .rd-popt { display: inline-flex; align-items: center; gap: 5px; }
.rd-mapleg i, .rd-popt i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--rd-night); display: inline-block; flex: none; }
.rd-mapleg i.dot { background: #fff; box-shadow: inset 0 0 0 2.5px var(--rd-night); }
.rd-poptypes { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; }
.rd-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rd-card-head h2 { margin: 0; }
/* the dashboard heading: a small live radar */
.rd-hello { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.rd-hello h1 { margin: 0; }
.rd-hello .rd-sub { margin: 2px 0 0; }
.rd-mini { width: 58px; height: 58px; flex: none; }
.rd-mini .sw { transform-origin: 30px 30px; animation: rd-spin 4s linear infinite; }
.rd-mini .bl { animation: rd-blink 2.4s ease-in-out infinite; }
.rd-mini .bl.b2 { animation-delay: 1.2s; }
.rd-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--rd-mut); }
.rd-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rd-ok); box-shadow: 0 0 0 0 rgba(21,128,61,.5); animation: rd-pulse 2s infinite; }
/* entrance: cards and figures rise in, bars grow from their start (right, in RTL) */
.rd-main > h1, .rd-main > .rd-sub, .rd-main > .rd-hello, .rd-main > .rd-kpis > .rd-kpi, .rd-main > .rd-card, .rd-main > .rd-grid2 > .rd-card, .rd-main > .rd-filters { animation: rd-rise .45s ease both; }
.rd-main > .rd-kpis > .rd-kpi:nth-child(2) { animation-delay: .05s; } .rd-main > .rd-kpis > .rd-kpi:nth-child(3) { animation-delay: .1s; } .rd-main > .rd-kpis > .rd-kpi:nth-child(4) { animation-delay: .15s; }
.rd-main > .rd-card:nth-of-type(2), .rd-main > .rd-grid2 > .rd-card:nth-child(2) { animation-delay: .08s; }
.rd-main > .rd-card:nth-of-type(n+3) { animation-delay: .14s; }
.rd-bar .t i { transform-origin: right center; animation: rd-grow .9s cubic-bezier(.2,.8,.2,1) both .15s; }
.rd-kpi { transition: transform .15s ease, box-shadow .15s ease; }
.rd-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,27,51,.08); }
@keyframes rd-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rd-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rd-spin { to { transform: rotate(360deg); } }
@keyframes rd-blink { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes rd-pulse { 0% { box-shadow: 0 0 0 0 rgba(21,128,61,.45); } 70% { box-shadow: 0 0 0 8px rgba(21,128,61,0); } 100% { box-shadow: 0 0 0 0 rgba(21,128,61,0); } }
@media (prefers-reduced-motion: reduce) {
	.rd-main *, .rd-mini *, .rd-live::before { animation: none !important; transition: none !important; }
}
/* owner 2026-12-05: the trial - watermark over every screen, a chip in the menu, notes on the limited lists */
.rd-wm { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; opacity: .075; }
.rd-side a.rd-trial-chip { background: rgba(212,167,44,.16); color: var(--rd-gold); font-size: 12.5px; font-weight: 600; padding: 6px 10px; margin: 0 6px 10px; }
.rd-side a.rd-trial-chip:hover { background: rgba(212,167,44,.26); }
.rd-trial-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rd-card.rd-trial-note { display: block; border-top: 3px solid var(--rd-gold); }
.rd-trial-note a { font-weight: 700; color: var(--rd-night); }
@media print { .rd-wm { opacity: .2; } }

/* owner 2026-12-05 'all the data': the contractor's address and contacts under the report title */
.rd-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: -10px 0 16px; font-size: 14px; color: var(--rd-ink); }
.rd-contact span { display: inline-flex; align-items: center; gap: 6px; }
.rd-contact i { color: var(--rd-gold); font-size: 17px; }
.rd-contact a { color: var(--rd-night); font-weight: 600; }

/* stage 5: follow buttons */
.rd-follow { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rd-line); background: #fff; color: var(--rd-night); border-radius: 999px; padding: 6px 13px; font: 600 13.5px Heebo, Arial, sans-serif; cursor: pointer; }
.rd-follow:hover { border-color: var(--rd-gold); }
.rd-follow.on { background: var(--rd-gold-soft); border-color: var(--rd-gold); }
.rd-follow.on i, .rd-follow i { color: var(--rd-gold); font-size: 16px; }
.rd-follow.off { color: var(--rd-mut); cursor: default; }
.rd-follow-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rd-line); width: 100%; font-size: 14px; }
.rd-follow-row:last-child { border-bottom: 0; }
.rd-follow-top { margin: -6px 0 16px; }

/* dashboard 2026-12-05 (owner: "boring, too simple") */
.rd-dash-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 26px; padding: 26px 28px; margin-bottom: 16px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 12% 20%, rgba(212,167,44,.22), transparent 45%), linear-gradient(135deg, var(--rd-night) 0%, #1d3160 100%); box-shadow: 0 14px 34px rgba(15,27,51,.18); animation: rd-rise .45s ease both; }
.rd-dash-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 28px 28px; pointer-events: none; }
.rd-dash-radar { width: 170px; height: 170px; flex: none; position: relative; z-index: 1; }
.rd-dash-radar .sw { transform-origin: 100px 100px; animation: rd-spin 4.5s linear infinite; }
.rd-dash-radar .bl { animation: rd-blink 2.4s ease-in-out infinite; }
.rd-dash-radar .bl.b2 { animation-delay: 1.2s; }
.rd-dash-hi { position: relative; z-index: 1; flex: 1; min-width: 0; }
.rd-dash-hi h1 { color: #fff; font-size: 28px; margin: 6px 0 4px; }
.rd-dash-hi p { color: rgba(255,255,255,.78); margin: 0 0 14px; font-size: 15px; }
.rd-dash-hi .rd-live { color: rgba(255,255,255,.75); }
.rd-dash-search { display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 4px 4px 4px 4px; max-width: 620px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.rd-dash-search i { color: var(--rd-mut); font-size: 20px; padding: 0 10px; }
.rd-dash-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 15px; padding: 10px 2px; background: transparent; color: var(--rd-ink); }
.rd-dash-search button { border: 0; border-radius: 9px; background: var(--rd-gold); color: var(--rd-night); font: inherit; font-weight: 700; padding: 10px 20px; cursor: pointer; }
.rd-dash-search button:hover { background: #e2b739; }
.rd-dash-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rd-dash-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; font-size: 13.5px; transition: background .15s ease; }
.rd-dash-quick a:hover { background: rgba(212,167,44,.3); }
.rd-dash-quick i { color: #f0c75a; font-size: 16px; }
.rd-dks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.rd-duecard { margin-bottom: 16px; border-inline-start: 4px solid #d4a72c; }
.rd-duecard .rd-upd a { color: inherit; font-weight: 600; text-decoration: none; }
.rd-duecard .rd-upd a:hover { text-decoration: underline; }
.rd-dk { display: flex; gap: 11px; align-items: flex-start; background: #fff; border: 1px solid var(--rd-line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--rd-ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; animation: rd-rise .45s ease both; }
.rd-dk:nth-child(2) { animation-delay: .04s; } .rd-dk:nth-child(3) { animation-delay: .08s; } .rd-dk:nth-child(4) { animation-delay: .12s; } .rd-dk:nth-child(5) { animation-delay: .16s; } .rd-dk:nth-child(6) { animation-delay: .2s; }
.rd-dk:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,27,51,.1); border-color: var(--rd-gold); }
.rd-dk .ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: #eef1f7; color: var(--rd-night); font-size: 21px; }
.rd-dk.g .ic { background: var(--rd-gold-soft); color: #9a7413; }
.rd-dk.n .ic { background: var(--rd-night); color: #f0c75a; }
.rd-dk .tx { min-width: 0; }
.rd-dk .tx span { display: block; font-size: 12.5px; color: var(--rd-mut); line-height: 1.3; }
.rd-dk .tx b { display: block; font-size: 24px; color: var(--rd-night); margin: 3px 0 1px; }
.rd-dk .tx small { display: block; font-size: 12px; color: var(--rd-mut); }
.rd-h-ic { color: var(--rd-gold); font-size: 19px; vertical-align: -3px; }
.rd-link { font-size: 13px; color: var(--rd-night); text-decoration: none; font-weight: 600; }
.rd-link:hover { color: #9a7413; }
.rd-empty { text-align: center; padding: 22px 10px; color: var(--rd-mut); }
.rd-empty i { font-size: 34px; color: var(--rd-gold); display: block; margin-bottom: 6px; }
.rd-empty b { display: block; color: var(--rd-ink); margin-bottom: 4px; }
.rd-empty span { font-size: 13.5px; }
.rd-dash-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.rd-dash-row > .rd-card { margin-bottom: 14px; }
.rd-cols { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 18px; }
.rd-cols .c { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.rd-cols .c i { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--rd-gold), #b8901f); transform-origin: bottom; animation: rd-rise-y .9s cubic-bezier(.2,.8,.2,1) both .15s; min-height: 3px; }
.rd-cols .c:hover i { background: var(--rd-night); }
.rd-cols .c b { font-size: 11.5px; color: var(--rd-ink); font-weight: 600; }
.rd-cols .c span { font-size: 11px; color: var(--rd-mut); white-space: nowrap; }
@keyframes rd-rise-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.rd-dprods { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.rd-dprod { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; border: 1px dashed var(--rd-line); color: var(--rd-mut); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.rd-dprod i { font-size: 20px; color: #98a2b3; }
.rd-dprod b { color: var(--rd-ink); font-size: 14px; }
.rd-dprod span { font-size: 12px; }
.rd-dprod:hover { border-color: var(--rd-gold); transform: translateY(-2px); }
.rd-dprod.on { border-style: solid; background: linear-gradient(180deg, #fff, #fbf6e7); }
.rd-dprod.on i { color: var(--rd-ok); }
.rd-dprod.on span { color: var(--rd-ok); font-weight: 600; }
@media (max-width: 1200px) { .rd-dks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .rd-dash-row { grid-template-columns: 1fr; } .rd-dash-radar { width: 120px; height: 120px; } }
@media (max-width: 640px) { .rd-dash-hero { flex-direction: column; align-items: stretch; padding: 20px 16px; } .rd-dash-radar { display: none; } .rd-dks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rd-dash-hi h1 { font-size: 23px; } .rd-dash-search button { padding: 10px 14px; } }
@media (prefers-reduced-motion: reduce) { .rd-dash-hero, .rd-dash-radar *, .rd-dk, .rd-cols .c i { animation: none !important; } }
.rd-btn.xl { background: #fff; color: #1d6f42; border: 1px solid #b7dcc5; font-size: 14px; padding: 8px 14px; }
.rd-btn.xl:hover { background: #eef8f2; }
.rd-btn-off { background: #f2f4f7; color: #98a2b3; font-size: 14px; padding: 8px 14px; cursor: not-allowed; }

/* all system pages 2026-12-05 (owner: redesign every page, not only the dashboard) */
.rd-phero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 22px 26px; margin-bottom: 16px; border-radius: 18px; color: #fff; background: radial-gradient(circle at 8% 50%, rgba(212,167,44,.25), transparent 40%), linear-gradient(135deg, var(--rd-night) 0%, #1d3160 100%); box-shadow: 0 12px 30px rgba(15,27,51,.16); animation: rd-rise .45s ease both; }
.rd-phero::before { content: ""; position: absolute; left: -60px; top: 50%; width: 260px; height: 260px; margin-top: -130px; border-radius: 50%; border: 1px solid rgba(212,167,44,.35); box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.02); pointer-events: none; }
.rd-phero::after { content: ""; position: absolute; left: 70px; top: 50%; width: 130px; height: 2px; background: linear-gradient(90deg, rgba(240,199,90,0), rgba(240,199,90,.9)); transform-origin: left center; animation: rd-spin 6s linear infinite; pointer-events: none; }
.rd-phero-ic { position: relative; z-index: 1; width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(212,167,44,.18); border: 1px solid rgba(212,167,44,.45); color: #f0c75a; font-size: 28px; }
.rd-phero-tx { position: relative; z-index: 1; min-width: 0; }
.rd .rd-phero h1 { color: #fff; font-size: 25px; margin: 0 0 4px; }
.rd .rd-phero .rd-sub { color: rgba(255,255,255,.78); margin: 0; font-size: 14.5px; max-width: 820px; }
.rd .rd-phero .rd-sub b { color: #f0c75a; }
.rd-card { border-radius: 16px; box-shadow: 0 2px 10px rgba(15,27,51,.04); padding: 18px; }
.rd-card h2 { font-size: 16.5px; color: var(--rd-night); }
.rd-kpi { border-radius: 14px; padding: 16px; position: relative; overflow: hidden; box-shadow: 0 2px 10px rgba(15,27,51,.04); border-top: 3px solid var(--rd-night); }
.rd-kpi::after { content: ""; position: absolute; left: -18px; bottom: -18px; width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle, rgba(212,167,44,.16), transparent 70%); }
.rd-kpi:nth-child(2n) { border-top-color: var(--rd-gold); }
.rd-filters { background: linear-gradient(180deg, #fff, #fafbfd); }
.rd-filters input[type=text], .rd-filters select, .rd-filters input[type=search] { border-radius: 10px; transition: border-color .15s ease, box-shadow .15s ease; }
.rd-filters input:focus, .rd-filters select:focus { outline: 0; border-color: var(--rd-gold); box-shadow: 0 0 0 3px rgba(212,167,44,.18); }
.rd-btn { transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.rd-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15,27,51,.12); }
.rd-btn-off:hover { transform: none; box-shadow: none; }
.rd-tblw { border: 1px solid var(--rd-line); border-radius: 12px; }
.rd-tbl th { background: #f4f6fa; color: var(--rd-night); font-weight: 600; border-bottom: 1px solid var(--rd-line); position: sticky; top: 0; }
.rd-tbl tbody tr:nth-child(even) { background: #fbfcfe; }
.rd-tbl tbody tr:hover { background: #fdf8ea; }
.rd-tbl td:first-child a { display: inline-block; }
.rd-tbl td:first-child a:hover { color: #9a7413; }
.rd-pager a { transition: background .15s ease; }
.rd-pager a:hover { background: var(--rd-gold-soft); border-color: var(--rd-gold); }
.rd-note { border: 1px solid #ecdcae; }
.rd-count b { font-size: 20px; }
@media (max-width: 640px) { .rd-phero { padding: 18px 16px; gap: 12px; } .rd-phero-ic { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; } .rd .rd-phero h1 { font-size: 21px; } .rd-phero::after, .rd-phero::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .rd-phero, .rd-phero::after { animation: none !important; } }
.rd-map.leaflet-container, .rd-map .leaflet-control-container { direction: ltr; }
.rd-kpi::after { display: none; }
.rd-phero::after { display: none; }
.rd-phero::before { left: -40px; width: 220px; height: 220px; margin-top: -110px; border-color: rgba(212,167,44,.28); }
.rd-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rd-nav .rd-btn { display: inline-flex; align-items: center; gap: 6px; }

/* product.asp - a product the company lacks (owner 2026-12-05): the title, the first lines and the way to buy it */
.rd .rd-lockcard { text-align: center; padding: 34px 26px; border: 1px dashed rgba(212,167,44,.6); background: linear-gradient(180deg, #fffdf6, #fff); }
.rd .rd-lockcard h2 { margin: 10px 0 8px; font-size: 22px; color: #0f1b33; }
.rd .rd-lockcard .rd-sub { max-width: 620px; margin: 0 auto; }
.rd .rd-lock-ic { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #0f1b33; color: #d4a72c; font-size: 28px; box-shadow: 0 0 0 8px #f6ecd0; }
.rd .rd-lock-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }
.rd .rd-lock-acts .rd-btn { display: inline-flex; align-items: center; gap: 7px; padding: 13px 24px; font-size: 16px; }
.rd .rd-btn.line { background: #fff; color: #0f1b33; border: 1px solid #d9dde6; }
.rd .rd-btn.line:hover { border-color: #d4a72c; }

/* stage 6 CRM: the lead form in the site card, the lead history, the sales board (leads.asp) */
.rd .rd-fld3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 760px) { .rd .rd-fld3 { grid-template-columns: 1fr; } }
.rd .rd-leadlog { margin-top: 14px; font-size: 13.5px; }
.rd .rd-leadlog summary { cursor: pointer; color: #0f1b33; font-weight: 600; }
.rd .rd-leadlog ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.rd .rd-leadlog li { border-inline-start: 3px solid #d4a72c; padding: 4px 10px; background: #fafbfd; border-radius: 6px; color: #3d4659; }
.rd .rd-leadlog li span { color: #667085; }
.rd a.rd-kpi-link { text-decoration: none; color: inherit; transition: transform .12s ease, box-shadow .12s ease; }
.rd a.rd-kpi-link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(15,27,51,.10); }
.rd .rd-kpi.warn b { color: #b42318; }
.rd .rd-board { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-top: 12px; }
.rd .rd-bcol { background: #f6f7fa; border-radius: 14px; padding: 10px; min-height: 120px; border-top: 4px solid #98a2b3; }
.rd .rd-bcol.s-contacted { border-top-color: #4268b2; } .rd .rd-bcol.s-meeting { border-top-color: #d4a72c; } .rd .rd-bcol.s-won { border-top-color: #1d8a4e; } .rd .rd-bcol.s-lost { border-top-color: #c4c9d4; }
.rd .rd-bcol header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 4px 10px; }
.rd .rd-bcol header b { color: #0f1b33; font-size: 15px; }
.rd .rd-bcol header span { background: #0f1b33; color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 8px; }
.rd .rd-bcol header small { color: #667085; margin-inline-start: auto; font-size: 12.5px; }
.rd a.rd-bcard { display: block; background: #fff; border: 1px solid #e3e6ee; border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: #1b2436; transition: box-shadow .12s ease, border-color .12s ease; }
.rd a.rd-bcard:hover { border-color: #d4a72c; box-shadow: 0 8px 18px rgba(15,27,51,.08); }
.rd .rd-bcard b { display: block; font-size: 14px; color: #0f1b33; line-height: 1.35; }
.rd .rd-bcard small { display: block; color: #667085; font-size: 12.5px; margin-top: 2px; }
.rd .rd-bmeta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.rd .rd-bmeta em { font-style: normal; font-weight: 700; font-size: 13px; color: #0f1b33; background: #f6ecd0; border-radius: 6px; padding: 1px 7px; }
.rd .rd-due { font-size: 12px; border-radius: 6px; padding: 1px 7px; background: #eef1f6; color: #3d4659; display: inline-flex; align-items: center; gap: 4px; }
.rd .rd-due.late { background: #fde8e7; color: #b42318; } .rd .rd-due.today { background: #fff3d6; color: #8a5a00; } .rd .rd-due.week { background: #e6effc; color: #1f4f9c; }
.rd .rd-own { font-size: 12px; color: #667085; display: inline-flex; align-items: center; gap: 3px; }
.rd .rd-bmore { font-size: 12.5px; color: #667085; margin: 4px; }
.rd-hourform { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.rd-hourform select { padding: 8px 12px; border: 1px solid #d5dae4; border-radius: 10px; font: inherit; background: #fff; }
.rd-hourform .rd-saved { color: #1e8e4e; font-weight: 600; }
/* stage 8a tenders */
.rd .rd-due.soon { background: #fff3d6; color: #8a5a00; }
.rd .rd-kpi b a { color: inherit; text-decoration: none; }
.rd .rd-kpi b a:hover { text-decoration: underline; }
.rd .rd-mask { color: #d9dde5; letter-spacing: -1px; user-select: none; }
/* tenders as boxes with a list option (owner 2026-12-05) */
.rd .rd-tbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rd .rd-tbar .rd-count { margin: 0; }
.rd .rd-vsw { display: inline-flex; border: 1px solid var(--rd-line); border-radius: 999px; overflow: hidden; background: #fff; }
.rd .rd-vsw a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; font-size: 13.5px; color: var(--rd-mut); text-decoration: none; }
.rd .rd-vsw a.on { background: #0f1b33; color: #fff; }
.rd .rd-vsw a:not(.on):hover { color: var(--rd-night); background: var(--rd-gold-soft); }
.rd .rd-tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rd .rd-tcard { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--rd-line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.rd .rd-tcard:hover { border-color: #d4a72c; box-shadow: 0 6px 18px rgba(15,27,51,.08); }
.rd .rd-tc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rd .rd-tcard h3 { margin: 0; font-size: 15.5px; line-height: 1.45; }
.rd .rd-tcard h3 a { color: #0f1b33; text-decoration: none; }
.rd .rd-tcard h3 a:hover { text-decoration: underline; }
.rd .rd-tc-pub { font-size: 13px; color: var(--rd-mut); }
.rd .rd-tc-dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: 13px; margin: 0; }
.rd .rd-tc-dl dt { color: var(--rd-mut); }
.rd .rd-tc-dl dd { margin: 0; font-weight: 600; color: #0f1b33; }
.rd .rd-tc-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--rd-line); font-size: 12px; color: var(--rd-mut); }
/* the tender boxes stand on the page itself, without a white card around them (owner 2026-12-05) */
.rd .rd-card.rd-bare { background: transparent; border: 0; box-shadow: none; padding: 0; }
/* phone (owner 2026-12-05: the page jumped sideways): grid cells may shrink below their content, chart labels cut instead of widening the page */
.rd .rd-grid2 > *, .rd .rd-dash-row > * { min-width: 0; }
.rd .rd-cols .c span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* owner 2026-12-05: the tenders page shows every field and every land use at the top, with its open tenders */
.rd-tcats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.rd-tcats-h { flex-basis: 100%; font-size: 12.5px; font-weight: 600; color: var(--rd-mut); margin-top: 4px; }
.rd-tcats .rd-tcat { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--rd-line); color: var(--rd-night); font-size: 13.5px; text-decoration: none; }
.rd-tcats .rd-tcat b { background: var(--rd-gold-soft); color: var(--rd-night); border-radius: 999px; padding: 1px 8px; font-size: 12.5px; }
.rd-tcats .rd-tcat.land { border-style: dashed; }
.rd-tcats a.rd-tcat:hover { border-color: var(--rd-gold); }
.rd-tcats .rd-tcat.on { background: var(--rd-night); color: #fff; border-color: var(--rd-night); border-style: solid; }
.rd-tcats .rd-tcat.on b { background: var(--rd-gold); }
/* stage 8b: approximate match to the company's registration */
.rd-fit { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: #eef0f4; color: #4b5563; margin-top: 3px; }
.rd-fit.in { background: #dcfce7; color: #166534; }
.rd-fit.out { background: #fff4e5; color: #9a4b00; }
.rd-tc-fit { margin: 2px 0 4px; }
.rd-fitregs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.rd-fitreg { background: var(--rd-gold-soft); border-radius: 8px; padding: 4px 10px; font-size: 13px; }
.rd-fitreg small { color: var(--rd-mut); margin-inline-start: 4px; }
.rd-fitcard details { margin: 8px 0; }
.rd-fitcard input[type=text] { padding: 7px 10px; border: 1px solid #d6dae3; border-radius: 8px; width: 160px; }

/* market.asp: a small bar inside a table cell */
.rd-ibar { display: inline-block; width: 90px; height: 8px; vertical-align: middle; background: var(--rd-line, #eee); border-radius: 4px; overflow: hidden; }
.rd-ibar i { display: block; height: 100%; background: var(--rd-gold, #e8a33d); }

/* risk.asp: the checks list ("found" / "not found") */
.rd-sigsum { margin: 2px 0 12px; color: var(--rd-mut); font-size: 14px; }
.rd-sigsum b { color: var(--rd-ink); font-size: 18px; }
.rd-sigs { display: grid; gap: 8px; }
.rd-sig { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--rd-line); border-radius: 10px; background: #fff; }
.rd-sig > i { font-size: 22px; color: var(--rd-ok); line-height: 1; }
.rd-sig b { display: block; font-size: 14.5px; color: var(--rd-ink); }
.rd-sig small { display: block; color: var(--rd-mut); font-size: 13px; margin-top: 2px; }
.rd-sig.on { border-color: #f1c7c1; background: #fff8f6; }
.rd-sig.on > i { color: var(--rd-bad); }
/* home.asp: a number that needs attention */
.rd-bad { color: var(--rd-bad); }

/* land.asp: a sub-heading inside a card */
.rd-h3 { font-size: 15px; margin: 14px 0 8px; color: var(--rd-ink); }

/* connect.asp: a checkbox inside the filters row */
.rd-filters label.rd-chk { flex-direction: row; align-items: center; gap: 6px; align-self: end; padding-bottom: 8px; }

/* site card (owner 2026-12-05): the executor box gets the room, crane / orders / fines are small; the building permit card */
.rd .rd-kpis-site { grid-template-columns: minmax(0, 2.8fr) repeat(3, minmax(0, 1fr)); align-items: stretch; }
.rd .rd-kpis-site .rd-kpi:not(.gold) { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; }
.rd .rd-kpis-site .rd-kpi:not(.gold) b { font-size: 22px; }
.rd .rd-kpis-site .rd-kpi.gold b.sm { font-size: 19px; }
.rd .rd-kpis-site .rd-kpi.gold small { display: inline-block; margin-left: 14px; margin-top: 4px; }
@media (max-width: 900px) {
  .rd .rd-kpis-site { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rd .rd-kpis-site .rd-kpi.gold { grid-column: 1 / -1; }
}
.rd .rd-pmcard h2 i { color: var(--rd-gold); }
.rd .rd-pm { border-top: 1px solid var(--rd-line); padding: 12px 0 4px; }
.rd .rd-pm:first-of-type { border-top: 0; padding-top: 2px; }
.rd .rd-pm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.rd .rd-pm-top b { font-size: 16px; color: var(--rd-night); }
.rd .rd-pm-top small { color: var(--rd-mut); }
.rd .rd-pm-st { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #eef2f7; color: #334155; }
.rd .rd-pm-st.st-permit { background: #e0f2fe; color: #075985; }
.rd .rd-pm-st.st-build { background: #fef3c7; color: #92400e; }
.rd .rd-pm-st.st-occupy, .rd .rd-pm-st.st-done { background: #dcfce7; color: #166534; }
.rd .rd-pm-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 14px; }
.rd .rd-pm-facts span { display: block; font-size: 12.5px; color: var(--rd-mut); }
.rd .rd-pm-facts b { font-size: 15px; color: var(--rd-night); }
.rd .rd-pm-type { margin: 10px 0 4px; font-size: 14px; color: #334155; }
.rd .rd-pm-more summary { cursor: pointer; color: var(--rd-mut); font-size: 13.5px; }
.rd .rd-pm-more p { font-size: 14px; line-height: 1.6; color: #334155; margin: 6px 0; }
/* site card, "registered contractors by this name" (owner 2026-12-05): the name links to the contractor; on a phone a card per row */
@media (max-width: 700px) {
  .rd .rd-tbl-cards thead { display: none; }
  .rd .rd-tbl-cards, .rd .rd-tbl-cards tbody { display: block; }
  .rd .rd-tbl-cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; border: 1px solid var(--rd-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  .rd .rd-tbl-cards td { border: 0; padding: 0; font-size: 14px; }
  .rd .rd-tbl-cards td.rd-tc-name { grid-column: 1 / -1; font-size: 15.5px; }
  .rd .rd-tbl-cards td[data-l]::before { content: attr(data-l); display: block; font-size: 12px; color: var(--rd-mut); }
  .rd .rd-tbl-cards td:empty { display: none; }
}
/* the permit card without the permits product: values hidden, the way to the product */
.rd .rd-pmcard .rd-mask { color: #c3c9d4; }
.rd .rd-pm-lock { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fff8e6; border: 1px dashed #e8c766; color: #5b4a12; font-size: 14px; line-height: 1.6; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rd .rd-pm-lock i { color: #b8901c; font-size: 18px; }