/* Site Visits: the one-page DH weekly summary (pages/site-visits/weekly/view.js). A4 landscape on a computer, the same boxes in one column on a phone. */
.dh-sheet { padding: 12px 0; color: #0D1B2A; }
.dh-pg { page: dhweek; width: 297mm; height: 210mm; margin: 0 auto; padding: 8mm; display: flex; flex-direction: column; gap: 3mm; overflow: hidden; background: #F3F5F8; font: 400 9.5pt/1.3 Barlow, Arial, sans-serif; box-shadow: 0 1px 3px rgba(13, 27, 42, .08); }
.dh-pg h1, .dh-pg h2, .dh-pg h3, .dh-num, .dh-kpi b { font-family: "Barlow Semi Condensed", Arial, sans-serif; }
.dh-top { display: flex; justify-content: space-between; align-items: center; gap: 4mm; background: #fff; border: .25mm solid #E1E6EC; border-radius: 2mm; padding: 3mm 5mm; }
.dh-top h1 { margin: 0; font-size: 18pt; font-weight: 600; line-height: 1; border: 0; padding: 0; }
.dh-top h1 em { font-style: normal; color: #5A6677; font-weight: 500; font-size: 12pt; margin-left: 2mm; }
.dh-meta { display: flex; gap: 7mm; } .dh-meta div { display: flex; flex-direction: column; font-size: 8pt; color: #5A6677; } .dh-meta b { color: #0D1B2A; font-size: 10pt; font-weight: 600; }
.dh-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3.2mm; }
.dh-kpi { background: #fff; border: .25mm solid #E1E6EC; border-radius: 2mm; padding: 2.2mm 4mm 2.4mm; display: flex; flex-direction: column; min-width: 0; }
.dh-kpi b { font-size: 22pt; font-weight: 600; line-height: 1; } .dh-kpi span { font-weight: 600; font-size: 10pt; margin-top: .6mm; }
.dh-pg small { display: block; color: #5A6677; font-size: 8pt; line-height: 1.2; }
.dh-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(88mm, fit-content(110mm)) 1fr; gap: 3mm; }
.dh-stack { display: flex; flex-direction: column; gap: 3.2mm; min-height: 0; } .dh-q2 { flex: none; } .dh-q3 { flex: 1; }
.dh-box { background: #fff; border: .25mm solid #E1E6EC; border-radius: 2mm; padding: 3.5mm; min-height: 0; min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.dh-pg h2 { margin: 0 0 1.6mm; font-size: 12.5pt; font-weight: 600; }
.dh-pg h3 { margin: 2.4mm 0 1.2mm; font-size: 10pt; font-weight: 600; }
.dh-lead { font-size: 10pt; color: #5A6677; margin-bottom: 1.6mm; display: flex; justify-content: space-between; align-items: center; gap: 2mm; flex-wrap: wrap; } .dh-lead > span > b { color: #0D1B2A; font-size: 11pt; }
.dh-lg { display: flex; flex-wrap: wrap; gap: 0 2.4mm; } .dh-lg .dh-k { font-size: 8.4pt; gap: 1mm; flex: none; white-space: nowrap; } .dh-lg .dh-k i { width: 2.6mm; height: 2.6mm; }
.dh-lg.dh-sm { margin: 0 0 1mm; } .dh-lg.dh-wrap { gap: 1mm 4mm; margin-top: 1.2mm; } .dh-lg.dh-wrap .dh-k { font-size: 8.6pt; }
.dh-r { text-align: right; } .dh-num { font-weight: 600; } .dh-empty { margin: 2mm 0; color: #5A6677; font-size: 9pt; }
.dh-vhead, .dh-vrow { display: grid; grid-template-columns: 1fr 28mm 9mm; gap: 2mm; align-items: center; }
.dh-vhead { font-size: 7.8pt; color: #5A6677; font-weight: 600; border-bottom: .35mm solid #0D1B2A; padding-bottom: .8mm; }
.dh-vrows { display: flex; flex-direction: column; }
.dh-vrow { min-height: 8.6mm; border-bottom: .2mm solid #E1E6EC; padding: 1.15mm 0; font-size: 9pt; line-height: 1.15; } .dh-vrow b { font-weight: 600; } .dh-vrow > div { min-width: 0; overflow-wrap: anywhere; }
.dh-tight .dh-vrow { min-height: 0; padding: .45mm 0; }
.dh-vrow { row-gap: 0; } .dh-vrow > small { grid-column: 1 / -1; } .dh-vrow.dh-tot > small { font-weight: 400; }
.dh-vrow.dh-more { color: #5A6677; } .dh-vrow.dh-tot { border: 0; border-top: .35mm solid #0D1B2A; font-weight: 600; min-height: 0; padding-top: 1.4mm; }
.dh-byday { flex: 1; min-height: 17mm; max-height: 40mm; display: grid; gap: 1.2mm; align-items: end; border-bottom: .25mm solid #E1E6EC; }
.dh-dcol { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; padding-bottom: 4.4mm; }
.dh-dcol i { width: 7mm; max-width: 100%; background: #0D1B2A; border-radius: .8mm .8mm 0 0; } .dh-dcol span { font-size: 10pt; margin-bottom: .6mm; }
.dh-dcol small { position: absolute; bottom: 0; font-size: 8pt; white-space: nowrap; } .dh-dcol { min-width: 0; } .dh-pg .dh-fut small { color: #A5AEBB; }
.dh-bar { display: flex; border-radius: .8mm; overflow: hidden; background: #F3F5F8; } .dh-bar.dh-notrack { background: none; }
.dh-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 7.8pt; font-weight: 700; font-family: "Barlow Semi Condensed", Arial, sans-serif; min-width: 0; }
.dh-split { display: flex; align-items: center; gap: 5mm; } .dh-keys { flex: 1; display: flex; flex-direction: column; gap: 1.2mm; min-width: 0; }
.dh-k { display: flex; align-items: center; gap: 1.6mm; font-size: 9pt; } .dh-k i { width: 3mm; height: 3mm; border-radius: .6mm; flex: none; } .dh-k span { flex: 1; white-space: nowrap; }
.dh-k b { font-family: "Barlow Semi Condensed", Arial, sans-serif; font-weight: 600; font-size: 10.5pt; } .dh-k em { font-style: normal; color: #5A6677; width: 9mm; text-align: right; font-size: 8.5pt; }
.dh-k.dh-sum { border-top: .25mm solid #E1E6EC; padding-top: 1.2mm; font-weight: 600; } .dh-k.dh-sum i { background: none; }
.dh-dn { flex: none; } .dh-dbig { font: 600 24px "Barlow Semi Condensed", Arial, sans-serif; fill: #0D1B2A; } .dh-dsub { font: 500 9.5px Barlow, Arial, sans-serif; fill: #5A6677; }
.dh-ages { display: flex; flex-direction: column; gap: 1.1mm; }
.dh-arow { display: grid; grid-template-columns: 22mm 1fr max-content; gap: 2mm; align-items: center; font-size: 9pt; } .dh-arow > span:first-child { white-space: nowrap; } .dh-arow .dh-r { font-size: 8.6pt; color: #5A6677; } .dh-arow .dh-r b { color: #0D1B2A; font-size: 10pt; }
.dh-none { height: 4.2mm; border-left: .4mm solid #E1E6EC; }
.dh-olds { display: flex; flex-direction: column; }
.dh-orow { display: grid; grid-template-columns: 1fr 15mm 14mm; gap: 0 2mm; align-items: baseline; border-bottom: .2mm solid #E1E6EC; padding: 1mm 0; white-space: nowrap; font-size: 9pt; line-height: 1.15; }
.dh-orow b { font-weight: 600; } .dh-orow > div { white-space: normal; min-width: 0; overflow-wrap: anywhere; } .dh-orow .dh-days b { font-size: 11pt; } .dh-orow .dh-days { color: #5A6677; font-size: 8.5pt; } .dh-orow.dh-more { color: #5A6677; border: 0; } .dh-orow > small { grid-column: 1 / -1; white-space: normal; }
.dh-def { margin: 1.6mm 0 0; font-size: 8.2pt; color: #5A6677; line-height: 1.3; } .dh-def.dh-inp { margin-top: .8mm; } .dh-def b { color: #0D1B2A; }
.dh-trio { display: flex; gap: 3mm; margin-top: 3mm; } .dh-trio > div { flex: 1; text-align: center; min-width: 0; } .dh-trio .dh-dn { display: block; margin: 0 auto 1mm; } .dh-trio b { display: block; font-size: 9.5pt; font-weight: 600; }
.dh-pg, .dh-pg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@page dhweek { size: A4 landscape; margin: 0; }
/* on a computer the pop-up is the A4 page itself, scaled to fit the window (open.js): no scrolling, the same as the PDF */
@media screen and (min-width: 1180px) { #sv-report.sv-weekly { overflow: hidden; display: flex; align-items: center; justify-content: center; } #sv-report.sv-weekly .sv-panel { margin: 0; }
  .dh-vrow { min-height: 0; padding: .55mm 0; } .dh-vrow > small { margin-top: -.2mm; }
  /* long names and notes stay on one line (cut with ...), as in the PDF, so the page keeps its size */
  .dh-vrow > div:first-child, .dh-orow > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .dh-vrow > small, .dh-orow > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
@media print { .dh-sheet { padding: 0; } .dh-pg { box-shadow: none; } }

/* the new report (Ali, 7 Nov 2026): logo and title, a big number at the top of every box, KTE pending by status, the pipeline */
.dh-brand { display: flex; align-items: center; gap: 4mm; } .dh-logo { height: 9mm; width: auto; display: block; }
.dh-big { display: flex; align-items: baseline; gap: 2.4mm; margin: 0 0 2mm; flex-wrap: wrap; } .dh-big b { font-size: 22pt; line-height: 1; font-weight: 600; } .dh-big span { color: #5A6677; font-size: 9.5pt; }
.dh-top-lg { margin: 0 0 1.4mm; justify-content: flex-end; }
.dh-def { margin: 1.6mm 0 0; font-size: 8.4pt; color: #5A6677; line-height: 1.3; } .dh-def b { color: #0D1B2A; }
.dh-kt { display: flex; flex-direction: column; }
.dh-kh { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 9.5pt; border-bottom: .25mm solid #E1E6EC; padding: .5mm 0; margin-top: 1.6mm; } .dh-kh:first-child { margin-top: 0; }
.dh-kh i { display: inline-block; width: 2.8mm; height: 2.8mm; border-radius: .6mm; margin-right: 1.8mm; vertical-align: middle; } .dh-kh b { font-size: 11pt; }
.dh-kr { display: grid; grid-template-columns: 34mm 1fr 8mm; gap: 2mm; align-items: center; font-size: 8.8pt; line-height: 1.25; padding: .2mm 0; } .dh-kr b { text-align: right; font-size: 9.5pt; }
.dh-kbar { height: 1.8mm; background: #F3F5F8; border-radius: .6mm; overflow: hidden; } .dh-kbar i { display: block; height: 100%; }
.dh-phead { display: grid; grid-template-columns: 1fr 12mm 26mm; gap: 2mm; font-size: 7.8pt; color: #5A6677; font-weight: 600; border-bottom: .35mm solid #0D1B2A; padding-bottom: .8mm; margin-bottom: 1mm; }
.dh-prow { display: grid; grid-template-columns: 1fr 12mm 26mm; gap: 2mm; align-items: center; padding: 1.1mm 0; } .dh-prow b { font-size: 10.5pt; }
.dh-pill { display: inline-block; font-style: normal; padding: .3mm 2.6mm; border-radius: 4mm; font-size: 8.4pt; font-weight: 600; white-space: nowrap; } .dh-prow em { font-style: normal; color: #5A6677; font-size: 8.4pt; margin-left: 2mm; }
.dh-q5, .dh-q4, .dh-q6 { justify-content: flex-start; }

/* narrower than the page: the same boxes, one column, in the same order (phones) */
@media screen and (max-width: 1179px) {
  .dh-sheet { padding: 12px 16px 24px; }
  .dh-pg { width: auto; max-width: 640px; height: auto; padding: 0; gap: 12px; overflow: visible; box-shadow: none; background: none; font-size: 14px; }
  .dh-top { flex-direction: column; align-items: flex-start; padding: 12px 14px; gap: 8px; } .dh-meta { gap: 16px; flex-wrap: wrap; } .dh-meta div { font-size: 12px; } .dh-meta b { font-size: 14px; }
  .dh-brand { gap: 10px; } .dh-logo { height: 30px; } .dh-big b { font-size: 26px; } .dh-big span { font-size: 13px; } .dh-kr { grid-template-columns: 1fr 70px 28px; font-size: 13px; } .dh-prow { font-size: 13px; } .dh-grid { grid-template-rows: none; }
  .dh-grid, .dh-stack { display: flex; flex-direction: column; gap: 12px; }
  .dh-box { overflow: visible; padding: 14px; } .dh-pg h2 { font-size: 18px; } .dh-pg h3 { font-size: 15px; margin: 14px 0 6px; }
  .dh-pg small { font-size: 12px; } .dh-vrow, .dh-orow, .dh-arow, .dh-k { font-size: 13px; } .dh-vhead { font-size: 12px; }
  .dh-byday { height: 120px; flex: none; } .dh-dcol small { font-size: 11px; }
  }
/* the period (From and To) in the report bar */
.rp-range { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; } .rp-range input { min-height: 40px; }
@media screen and (max-width: 700px) { .rp-range { flex: 1 1 100%; } .rp-range input { flex: 1; min-width: 0; min-height: 44px; } }

/* loading (Ali, 7 Nov 2026; checked with the motion rules): a blurred outline while the figures load, the old page blurred while a new period loads, the real page sharpens in (under 300 ms, ease-out) */
.dh-sk { display: block; background: #E6E9EE; border-radius: 1mm; margin-bottom: 2.6mm; }
.dh-sheet .dh-pg { transition: filter 160ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.dh-sheet.dh-loading .dh-pg { filter: blur(3px); opacity: 0.6; pointer-events: none; animation: dh-pulse 1.3s ease-in-out infinite; }
.dh-sheet.dh-in .dh-pg { animation: dh-in 240ms cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes dh-pulse { 50% { opacity: 0.4; } }
@keyframes dh-in { from { filter: blur(3px); opacity: 0.55; } to { filter: blur(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dh-sheet .dh-pg { transition: none; } .dh-sheet.dh-loading .dh-pg { animation: none; } .dh-sheet.dh-in .dh-pg { animation: none; } }
@media print { .dh-sheet .dh-pg { filter: none !important; opacity: 1 !important; } }
