/* Clinical Quest v7 — exam presentation, real interaction feedback, dynamic scene */
:root { --cq-alert:#ff6b85;--cq-warning:#f5ae54; }
.cq-unrevealing-steps .step {text-align:center;min-width:0}
.cq-unrevealing-steps .step small {opacity:.55}
.cq-assessment-objectives {display:grid;gap:10px;padding:8px 0}
.cq-assessment-objectives>div {padding:10px 12px;border:1px solid rgba(86,222,228,.19);border-radius:11px;color:#c5e3eb;background:#071e2b9c;font-size:12px}
.cq-exam-goals .tiny {font-size:10px;line-height:1.55}
.cq-clinical-status{position:absolute;z-index:11;left:25%;bottom:18px;border:1px solid rgba(76,220,220,.35);background:#03141edb;color:#b8eef4;border-radius:12px;padding:7px 12px;font-size:11px;box-shadow:0 10px 28px #001c29cc;pointer-events:none}
.cq-clinical-status b{color:#4cf3de;font-size:13px;font-weight:800;margin-inline:6px}
.cq-reserve-panel{border:1px solid rgba(97,219,218,.14);background:#061a259e;border-radius:9px;padding:9px;margin-top:8px}
.cq-reserve-panel>div:first-child{display:flex;align-items:center;justify-content:space-between;color:#c0e0e9;font-size:11px}
.cq-reserve-track{height:6px;background:#1a3b48;border-radius:100px;margin:6px 0;overflow:hidden}
.cq-reserve-track i{height:100%;display:block;background:linear-gradient(90deg,#f6a45e,#58e0cb);transition:width 550ms ease}
.cq-reserve-panel small{font-size:9px;color:#9badb9}
body[data-cq-clinical-risk="warning"] .cq-clinical-status,body[data-cq-clinical-risk="critical"] .cq-clinical-status{border-color:#eaa558;color:#ffd9aa;animation:cq-risk-flash 1.6s ease infinite}
body[data-cq-clinical-risk="critical"] .cq-clinical-status{border-color:#e55d75;color:#ffb6c4}
body[data-cq-clinical-risk="warning"] .cq-reserve-track i,body[data-cq-clinical-risk="critical"] .cq-reserve-track i{background:linear-gradient(90deg,#e26062,#f6a857)}
@keyframes cq-risk-flash{50%{box-shadow:0 0 0 4px #f08a4a19}}
/* moving luminous sweep over the real ECG trace, synced with current monitor state */
.v4-hardware-monitor .monitor-wave,.cq-mobile-ecg svg {overflow:hidden;position:relative}
.v4-hardware-monitor .monitor-wave svg path,.monitor-wave .wavepath,.cq-mobile-ecg svg path{stroke-dasharray:118 17;stroke-dashoffset:0;animation:cq-wave-flow 1.2s linear infinite;filter:drop-shadow(0 0 4px #56ff94);stroke:#49f6a0;stroke-width:2.5}
.monitor-wave.poweroff svg path{animation:none}
@keyframes cq-wave-flow{to{stroke-dashoffset:-270}}
.v4-hardware-monitor .monitor-wave::after{content:"";position:absolute;top:0;bottom:0;width:18%;left:0;background:linear-gradient(90deg,transparent,#36f8b20e,transparent);animation:cq-monitor-sweep 2.4s linear infinite;pointer-events:none}
@keyframes cq-monitor-sweep{to{left:100%}}
.cq-cpr-tap{position:absolute;z-index:18;bottom:2%;left:50%;transform:translateX(-50%);min-width:160px;max-width:90%;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;padding:9px 13px;border:1px solid #45e7db;background:linear-gradient(130deg,#035568ef,#06374cef);box-shadow:0 0 24px #2cf1e447, inset 0 0 15px #25c6c126;border-radius:16px;cursor:pointer;color:#ecfeff;font-family:Vazirmatn,sans-serif;font-weight:700;font-size:12px;touch-action:manipulation;user-select:none;transition:transform .12s,filter .12s}
.cq-cpr-tap:active{transform:translateX(-50%) scale(.94);filter:brightness(1.65)}
.cq-cpr-tap b{background:#031c2caa;padding:3px 8px;border-radius:8px;font-size:11px}
.cq-cpr-tap small{font-size:9px;width:100%;color:#95d1df}
body.cq-compress-event .v4-person-figure img{animation:cq-body-compression .32s ease-out 1}
@keyframes cq-body-compression{35%{transform:scale(.996) translateY(3px)}100%{transform:none}}
/* A true exam should never present an ordered checklist of clinical tasks */
.game-v4[data-mode="exam"] .v4-actions-container .subhint,
.game-v4[data-mode="exam"] .v4-actions-container .notice {display:none}
.game-v4[data-mode="exam"] .cq-guide-progress {display:none}
.game-v4[data-mode="exam"] .v4-lower-hud .v4-label{opacity:.55}
@media (max-width:850px){
 .cq-clinical-status{bottom:auto;left:auto;top:12px;right:13px;padding:5px 8px;font-size:10px}
 .cq-cpr-tap{bottom:4%;padding:8px 12px;min-width:156px}
 .cq-assessment-objectives{grid-template-columns:1fr}
}
@media (prefers-reduced-motion: reduce){
 .cq-cpr-tap,.cq-reserve-track i{transition:none}
 .v4-hardware-monitor .monitor-wave svg path,.monitor-wave .wavepath,.cq-mobile-ecg svg path{animation:none}
 .v4-hardware-monitor .monitor-wave::after{animation:none}
}
@media (min-width:851px){.cq-clinical-status{display:none}}
@media (max-width:850px){.cq-clinical-status{display:flex;align-items:center;gap:3px;top:10px;right:13px;font-size:9px;white-space:nowrap;max-width:70%}}


/* v7 hotfix — customer review round */
.v4-goals,
.cq-exam-goals,
.v4-stage-steps,
.v4-lower-hud,
.v4-clinical-floating,
.sidebarbottom{
  display:none !important;
}

.v4-person-stage{
  bottom:14px !important;
}

.v4-heading-info p,
.cq-reserve-panel small{
  display:none !important;
}

.v4-person-figure{
  z-index:6 !important;
  opacity:1 !important;
  visibility:visible !important;
}

.v4-person-figure img,
.v4-person-svg-fallback svg{
  display:block;
  max-width:100%;
  width:100%;
  height:100%;
  object-fit:contain;
}

.v4-person-svg-fallback{
  width:100%;
  height:100%;
}

.v4-bed-cover{
  opacity:.38 !important;
}

.v4-right-dock{
  gap:10px !important;
}

.v4-actions-container{
  min-height:0 !important;
}

.v4-actions-container .cardhead{
  margin-bottom:12px !important;
}

.v4-power-round{
  width:42px;
  height:42px;
  border-radius:999px !important;
  padding:0 !important;
  justify-content:center !important;
  font-size:22px;
  line-height:1;
  box-shadow:0 0 0 1px #1af0c8 inset, 0 0 18px #18e8c43b;
}

.v4-power-round.on{
  background:radial-gradient(circle at 35% 35%, #2affcf, #0f7d67 72%) !important;
  color:#022c28 !important;
}

.v4-padtray{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex:0 0 auto;
  min-height:auto;
  padding:6px 0 0;
  background:transparent !important;
}

.v4-pad-card{
  appearance:none;
  border:none;
  background:transparent;
  padding:0;
  cursor:grab;
  display:grid;
  place-items:center;
}

.v4-pad-card .v4-pad-visual{
  width:78px;
  height:96px;
  border-radius:18px 18px 24px 24px;
  background:linear-gradient(180deg,#f4f7f9,#d8e3e8 58%,#b7ccd6);
  box-shadow:0 12px 24px #00000036, inset 0 -8px 14px #9fb8c459;
  position:relative;
  border:1px solid #dce6eb;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding-top:10px;
}

.v4-pad-card .v4-pad-visual::before{
  content:"";
  position:absolute;
  top:-16px;
  left:50%;
  transform:translateX(-50%);
  width:18px;
  height:24px;
  border-radius:10px 10px 2px 2px;
  background:linear-gradient(180deg,#39444d,#171d24);
}

.v4-pad-card .v4-pad-visual-top{
  font-size:12px;
  font-weight:900;
  color:#0f2b3a;
  letter-spacing:.08em;
}

.v4-pad-card .v4-pad-visual-mark{
  font-size:8px;
  color:#516775;
  letter-spacing:.12em;
  margin-top:2px;
}

.v4-pad-card .v4-pad-visual-bolt{
  margin-top:auto;
  margin-bottom:14px;
  width:42px;
  height:42px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:radial-gradient(circle,#eef8ff,#a9d4e0);
  color:#12b9cc;
  box-shadow:inset 0 0 12px #ffffffc2, 0 0 12px #4bd3f02e;
}

.v4-pad-card.chosen .v4-pad-visual{
  box-shadow:0 0 0 3px #ffe18c, 0 12px 28px #00000042;
}

.v4-pad-card.placed .v4-pad-visual{
  box-shadow:0 0 0 3px #49ecbe, 0 12px 28px #00000042;
  filter:saturate(1.05);
}

@media (max-width:840px){
  .v4-person-stage{ bottom:auto !important; }
  .v4-padtray{ gap:12px; padding-top:4px; }
  .v4-pad-card .v4-pad-visual{ width:64px; height:82px; }
  .v4-power-round{ width:38px; height:38px; }
}


/* v7 hotfix 2 — move device into clinical actions panel */
.v4-left-dock{display:flex;flex-direction:column;align-items:stretch;gap:14px}
.v4-left-padwrap{display:flex;flex-direction:column;align-items:center;gap:10px;padding:12px 8px;border:1px solid rgba(72,214,228,.22);border-radius:22px;background:linear-gradient(180deg,rgba(8,31,53,.92),rgba(11,42,67,.86));box-shadow:inset 0 0 22px rgba(51,229,222,.08)}
.v4-left-padtitle{font-size:11px;font-weight:800;letter-spacing:.08em;color:#9ceff0}
.v4-left-padwrap .v4-padtray{flex-direction:column;gap:12px;justify-content:center;align-items:center;padding-top:0}

.v4-actions-container{display:flex;flex-direction:column;gap:14px}
.v4-actions-container>.v4-defib-unit{width:100%;margin:0}
.v4-actions-container .actiongroup{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
.v4-actions-container .subhint{margin:10px 0 8px!important;color:#8fc8d7;font-size:11px}

.cq-action-btn{display:flex!important;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:54px;padding:12px 14px!important;border-radius:16px!important;background:linear-gradient(180deg,#123c5e,#0d2f4b)!important;border:1px solid rgba(93,171,194,.32)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 10px 18px rgba(3,16,28,.24);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.cq-action-btn:hover,.cq-action-btn:focus-visible{transform:translateY(-1px);border-color:#55dde0!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 12px 24px rgba(6,18,28,.34),0 0 0 1px rgba(74,240,221,.14)}
.cq-action-btn.primary{background:linear-gradient(135deg,#20d7dd,#1b8df1)!important;color:#032535!important;border-color:transparent!important;animation:cqBtnPulse 2.2s ease-in-out infinite}
.cq-action-ico{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:12px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.cq-action-btn.primary .cq-action-ico{background:rgba(3,37,53,.15)}
.cq-action-label{display:block;font-size:12px;font-weight:800;line-height:1.7;text-align:right}
@keyframes cqBtnPulse{0%,100%{box-shadow:0 8px 20px rgba(9,72,102,.28)}50%{box-shadow:0 12px 28px rgba(23,198,210,.34)}}

.v4-power-round{display:grid!important;place-items:center;min-width:42px;min-height:42px;font-size:24px!important;font-weight:900;color:#dffffa!important;text-shadow:0 0 10px rgba(49,250,214,.45);background:linear-gradient(180deg,#163e5c,#0b2338)!important;border:1px solid rgba(82,226,212,.55)!important}
.v4-power-round.on{color:#03232c!important}
.v4-device-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.v4-device-head>span{display:flex;align-items:center;gap:6px}
.v4-device-choices,.v4-device-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.v4-device-actions .v4-shock{grid-column:1/-1}


/* CQ_LAYOUT_V10_LEFT_DEVICE_RIGHT_ACTIONS */

@media (min-width: 841px) {

  /* Left column: monitor -> defibrillator -> pads */
  .game-v4 .v4-left-dock {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    bottom: 18px !important;
    overflow: visible !important;
    min-height: 0 !important;
  }

  .game-v4 .v4-left-dock > .v4-hardware-monitor {
    flex: 0 0 136px !important;
    height: 136px !important;
    min-height: 0 !important;
  }

  .game-v4 .v4-left-dock > .v4-defib-unit {
    display: flex !important;
    position: relative !important;
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 230px !important;
    max-height: 340px !important;
    margin: 4px 0 0 !important;
    overflow: visible !important;
  }

  .game-v4 .v4-left-padwrap {
    flex: 0 0 122px !important;
    height: 122px !important;
    min-height: 0 !important;
    padding: 8px 10px !important;
    gap: 5px !important;
    justify-content: center !important;
    overflow: visible !important;
    border-radius: 15px !important;
    background: linear-gradient(
      145deg,
      rgba(6,27,42,.94),
      rgba(9,43,59,.92)
    ) !important;
  }

  .game-v4 .v4-left-padwrap .v4-padtray {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 19px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    padding: 7px 0 0 !important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-card {
    flex: 0 0 auto !important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-visual {
    width: 64px !important;
    height: 77px !important;
    padding-top: 6px !important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-visual::before {
    top: -10px !important;
    height: 17px !important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-visual-bolt {
    width: 30px !important;
    height: 30px !important;
    margin-bottom: 5px !important;
  }

  .game-v4 .v4-left-padtitle {
    font-size: 10px !important;
    line-height: 1.5 !important;
  }

  /* Right column: patient file + clinical actions */
  .game-v4 .v4-right-dock {
    display: flex !important;
    flex-direction: column !important;
    top: 2.7% !important;
    bottom: 18px !important;
    gap: 8px !important;
    min-height: 0 !important;
  }

  .game-v4 .v4-right-dock > .v4-patient-card {
    flex: 0 0 auto !important;
  }

  .game-v4 .v4-actions-container {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    gap: 0 !important;
  }

  .game-v4 .v4-actions-container > .card {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 9px 10px !important;
    scrollbar-width: none !important;
  }

  .game-v4 .v4-actions-container .actiongroup {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 5px !important;
    margin: 5px 0 !important;
  }

  .game-v4 .v4-actions-container .cq-action-btn {
    width: 100% !important;
    min-height: 40px !important;
    padding: 6px 10px !important;
    border-radius: 12px !important;
    gap: 9px !important;
  }

  .game-v4 .v4-actions-container .cq-action-ico {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
    border-radius: 9px !important;
  }

  .game-v4 .v4-actions-container .cq-action-label {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  .game-v4 .v4-actions-container .subhint {
    font-size: 9px !important;
    margin: 4px 0 !important;
  }

  .game-v4 .v4-actions-container .divider {
    margin: 5px 0 !important;
  }

  .game-v4 .v4-actions-container .cardhead {
    margin-bottom: 7px !important;
  }

  /* Draw a reliable power symbol, independent of fonts */
  .game-v4 .v4-power-round {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    width: 37px !important;
    height: 37px !important;
    min-width: 37px !important;
    min-height: 37px !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    color: #d7fff4 !important;
  }

  .game-v4 .v4-power-round::before {
    content: "";
    position: absolute;
    width: 17px;
    height: 17px;
    border: 2.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
  }

  .game-v4 .v4-power-round::after {
    content: "";
    position: absolute;
    left: calc(50% - 1.25px);
    top: 7px;
    width: 2.5px;
    height: 12px;
    background: currentColor;
    border-radius: 3px;
  }

}

/* Compact desktop heights */
@media (min-width:841px) and (max-height:785px) {

  .game-v4 .v4-left-dock {
    gap: 6px !important;
  }

  .game-v4 .v4-left-dock > .v4-hardware-monitor {
    flex-basis: 110px !important;
    height: 110px !important;
  }

  .game-v4 .v4-left-dock > .v4-defib-unit {
    min-height: 205px !important;
    max-height: 290px !important;
    gap: 3px !important;
    padding: 6px 8px !important;
  }

  .game-v4 .v4-left-padwrap {
    flex-basis: 105px !important;
    height: 105px !important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-visual {
    height: 66px !important;
    width: 57px !important;
  }

  .game-v4 .v4-device-choices button,
  .game-v4 .v4-device-actions button {
    min-height: 25px !important;
  }

  .game-v4 .v4-device-lcd {
    min-height: 43px !important;
  }

  .game-v4 .v4-actions-container .cq-action-btn {
    min-height: 36px !important;
    padding: 4px 8px !important;
  }

  .game-v4 .v4-actions-container .actiongroup {
    gap: 4px !important;
  }

}

/* Keep the existing mobile controls and page flow */
@media (max-width:840px) {

  .game-v4 .v4-actions-container {
    overflow: visible !important;
  }

  .game-v4 .v4-actions-container > .card {
    overflow: visible !important;
    max-height: none !important;
  }

}


/* CQ_LEFT_LAYOUT_V11 */

/* Three independently sized regions */
@media (min-width:841px) {

.game-v4 .v4-left-dock {
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:132px minmax(0,1fr) 116px!important;
  gap:21px!important;
  align-content:stretch!important;
  align-items:stretch!important;
  min-height:0!important;
  overflow:visible!important;
  bottom:18px!important;
}

/* ECG */
.game-v4 .v4-left-dock>.v4-hardware-monitor {
  grid-row:1;
  height:100%!important;
  min-height:0!important;
  width:100%!important;
  flex:none!important;
  margin:0!important;
  max-height:none!important;
}

.game-v4 .v4-monitor-bezel {
  height:100%!important;
  padding:6px 8px!important;
  border-radius:17px!important;
  box-shadow:
    inset 0 0 0 2px #0e334d,
    0 12px 25px #00131dab,
    0 0 19px #48dceb25!important;
}

.game-v4 .v4-monitor-bezel .monitor-wave {
  height:58px!important;
}

.game-v4 .v4-monitor-stand {
  bottom:-10px!important;
  height:11px!important;
}

/* Defibrillator: a complete independent device */
.game-v4 .v4-left-dock>.v4-defib-unit {
  grid-row:2;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  flex:none!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  margin:0!important;
  padding:9px 10px 10px!important;
  gap:5px!important;
  overflow:visible!important;
  border-width:6px!important;
  border-radius:22px!important;
  background:
    linear-gradient(150deg,#65869e 0%,#304e68 13%,#14364e 49%,#112a40 100%)!important;
  box-shadow:
    inset 0 0 0 1px #8db4c440,
    inset 0 -18px 30px #00142285,
    0 7px 0 #09263b,
    0 15px 25px #000b,
    0 0 25px #2adddf17!important;
}

.game-v4 .v4-device-handle {
  top:-13px!important;
  height:17px!important;
}

.game-v4 .v4-left-dock>.v4-defib-unit::after {
  display:none!important;
}

.game-v4 .v4-device-head {
  flex:0 0 auto!important;
  min-height:34px!important;
}

.game-v4 .v4-power-round {
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
}

.game-v4 .v4-device-lcd {
  min-height:49px!important;
  flex:0 0 auto!important;
  padding:4px 7px!important;
  background:radial-gradient(ellipse at 50% 30%,#11596c,#031621 87%)!important;
}

.game-v4 .v4-device-lcd strong {
  font-size:25px!important;
}

.game-v4 .v4-device-choices,
.game-v4 .v4-device-actions {
  flex:0 0 auto!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:6px!important;
}

.game-v4 .v4-device-choices button {
  min-height:29px!important;
  border-radius:8px!important;
}

.game-v4 .v4-device-actions button {
  min-height:32px!important;
  border-radius:9px!important;
}

.game-v4 .v4-device-actions .v4-shock {
  grid-column:1/-1!important;
}

.game-v4 .v4-device-caption {
  flex:0 0 auto!important;
  margin-top:3px!important;
  padding:3px 1px!important;
  font-size:9px!important;
  line-height:1.6!important;
  max-height:none!important;
  color:#b8dce9!important;
}

/* Pads: separate shelf, never inside device */
.game-v4 .v4-left-dock>.v4-left-padwrap {
  grid-row:3;
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  height:116px!important;
  min-height:116px!important;
  max-height:116px!important;
  flex:none!important;
  margin:0!important;
  padding:9px 10px 7px!important;
  gap:7px!important;
  overflow:visible!important;
  border:1px solid #326b83c2!important;
  border-radius:18px!important;
  background:
    linear-gradient(145deg,#102f47f0,#061b2ded)!important;
  box-shadow:
    inset 0 1px #83e3e52d,
    0 12px 24px #0007,
    0 0 20px #2acac91a!important;
  backdrop-filter:blur(10px);
}

.game-v4 .v4-left-padwrap .v4-left-padtitle {
  margin:0!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1.3!important;
  color:#a0f4ee!important;
}

.game-v4 .v4-left-padwrap .v4-padtray {
  display:flex!important;
  flex-direction:row!important;
  justify-content:center!important;
  align-items:center!important;
  gap:21px!important;
  padding:5px 0 0!important;
  margin:0!important;
  height:auto!important;
  min-height:0!important;
  flex:none!important;
}

.game-v4 .v4-left-padwrap .v4-pad-card {
  flex:none!important;
  padding:0!important;
  transition:transform .18s ease,filter .18s ease!important;
}

.game-v4 .v4-left-padwrap .v4-pad-visual {
  width:61px!important;
  height:74px!important;
  border-radius:12px 12px 17px 17px!important;
  padding-top:5px!important;
  background:linear-gradient(155deg,#fff,#e0eaf0 58%,#b5cad5)!important;
  box-shadow:
    inset 0 1px 2px #fff,
    inset 0 -5px 10px #8aabb856,
    0 7px 14px #0007!important;
}

.game-v4 .v4-left-padwrap .v4-pad-visual::before {
  top:-10px!important;
  height:16px!important;
  width:15px!important;
}

.game-v4 .v4-left-padwrap .v4-pad-visual-bolt {
  width:31px!important;
  height:31px!important;
  margin-bottom:5px!important;
}

.game-v4 .v4-pad-card:hover {
  transform:translateY(-4px)!important;
  filter:brightness(1.09);
}

.game-v4 .v4-pad-card.chosen .v4-pad-visual {
  box-shadow:0 0 0 2px #f4d786,0 6px 20px #0009!important;
}

.game-v4 .v4-pad-card.placed .v4-pad-visual {
  box-shadow:0 0 0 2px #57f4c8,0 6px 20px #0009!important;
}

}

/* Short desktop screens */
@media (min-width:841px) and (max-height:785px) {

.game-v4 .v4-left-dock {
  grid-template-rows:105px minmax(0,1fr) 96px!important;
  gap:14px!important;
}

.game-v4 .v4-monitor-bezel .monitor-wave {
  height:40px!important;
}

.game-v4 .v4-left-dock>.v4-left-padwrap {
  height:96px!important;
  min-height:96px!important;
  max-height:96px!important;
  padding:5px!important;
  gap:3px!important;
}

.game-v4 .v4-left-padwrap .v4-pad-visual {
  width:52px!important;
  height:62px!important;
}

.game-v4 .v4-left-dock>.v4-defib-unit {
  padding:6px 8px!important;
  gap:3px!important;
}

.game-v4 .v4-device-head {
  min-height:28px!important;
}

.game-v4 .v4-device-lcd {
  min-height:43px!important;
}

.game-v4 .v4-device-choices button,
.game-v4 .v4-device-actions button {
  min-height:24px!important;
}

.game-v4 .v4-device-caption {
  font-size:7px!important;
  margin-top:0!important;
}

}

@media (prefers-reduced-motion:reduce) {
.game-v4 .v4-pad-card {
  transition:none!important;
}
}


/* CQ_LEFT_LAYOUT_V12 */

@media (min-width:841px) {

  /* Reallocate space: bigger pad shelf */
  .game-v4 .v4-left-dock {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:118px minmax(0,1fr) 156px!important;
    gap:13px!important;
    min-height:0!important;
    align-content:stretch!important;
  }

  /* Defibrillator: distribute unused bottom space */
  .game-v4 .v4-left-dock>.v4-defib-unit {
    display:flex!important;
    flex-direction:column!important;
    justify-content:space-between!important;
    gap:8px!important;
    min-height:0!important;
    height:100%!important;
    max-height:none!important;
    padding:11px 12px!important;
    margin:0!important;
    overflow:visible!important;
  }

  .game-v4 .v4-defib-unit .v4-device-head {
    min-height:36px!important;
    flex:0 0 auto!important;
  }

  .game-v4 .v4-defib-unit .v4-device-lcd {
    min-height:55px!important;
    flex:0 0 auto!important;
    padding:6px 9px!important;
    border-radius:10px!important;
  }

  .game-v4 .v4-defib-unit .v4-device-lcd strong {
    font-size:27px!important;
  }

  /* Energy and mode controls */
  .game-v4 .v4-defib-unit .v4-device-choices {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    flex:0 0 auto!important;
  }

  .game-v4 .v4-defib-unit .v4-device-choices button {
    min-height:34px!important;
    border-radius:9px!important;
    transition:background .18s,filter .18s,transform .18s;
  }

  /* Charge / Clear / Shock */
  .game-v4 .v4-defib-unit .v4-device-actions {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    flex:0 0 auto!important;
  }

  .game-v4 .v4-defib-unit .v4-device-actions button {
    min-height:37px!important;
    border-radius:10px!important;
    transition:transform .18s,filter .18s,box-shadow .18s;
  }

  .game-v4 .v4-defib-unit .v4-device-actions .v4-shock {
    grid-column:1/-1!important;
    min-height:39px!important;
  }

  .game-v4 .v4-defib-unit button:hover {
    filter:brightness(1.13);
  }

  .game-v4 .v4-defib-unit button:active {
    transform:scale(.97);
  }

  .game-v4 .v4-defib-unit .v4-device-caption {
    flex:0 0 auto!important;
    min-height:15px!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    font-size:9px!important;
    line-height:1.55!important;
  }

  /* Bigger dedicated pad area */
  .game-v4 .v4-left-dock>.v4-left-padwrap {
    height:156px!important;
    min-height:156px!important;
    max-height:156px!important;
    padding:10px 12px 9px!important;
    gap:6px!important;
    border-radius:18px!important;
    justify-content:flex-start!important;
    background:
      linear-gradient(145deg,#133b50f0,#061b2cf5)!important;
    box-shadow:
      inset 0 1px #8df4eb32,
      inset 0 -12px 24px #00101b60,
      0 12px 28px #0007!important;
  }

  .game-v4 .v4-left-padwrap .v4-left-padtitle {
    flex:0 0 auto!important;
    font-size:11px!important;
    line-height:1.5!important;
    color:#a5fff0!important;
  }

  .game-v4 .v4-left-padwrap .v4-padtray {
    display:flex!important;
    flex-direction:row!important;
    flex:1 1 auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    gap:27px!important;
    padding:10px 0 0!important;
    margin:0!important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-card {
    flex:0 0 auto!important;
    cursor:grab!important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-visual {
    width:73px!important;
    height:88px!important;
    border-radius:15px 15px 20px 20px!important;
    padding-top:8px!important;
    background:
      linear-gradient(160deg,#fff,#e0edf1 65%,#a7c3cf)!important;
    box-shadow:
      inset 0 2px 3px #fff,
      inset 0 -7px 12px #7497ab55,
      0 9px 18px #0008!important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-visual::before {
    top:-12px!important;
    height:20px!important;
    width:18px!important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-visual-bolt {
    width:38px!important;
    height:38px!important;
    margin-bottom:8px!important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-card:hover {
    transform:translateY(-3px) scale(1.03)!important;
  }
}

/* Compact desktop and laptop screens */
@media (min-width:841px) and (max-height:785px) {

  .game-v4 .v4-left-dock {
    grid-template-rows:96px minmax(0,1fr) 128px!important;
    gap:9px!important;
  }

  .game-v4 .v4-left-dock>.v4-defib-unit {
    gap:4px!important;
    padding:7px 9px!important;
  }

  .game-v4 .v4-defib-unit .v4-device-head {
    min-height:28px!important;
  }

  .game-v4 .v4-defib-unit .v4-device-lcd {
    min-height:42px!important;
    padding:3px 6px!important;
  }

  .game-v4 .v4-defib-unit .v4-device-choices,
  .game-v4 .v4-defib-unit .v4-device-actions {
    gap:5px!important;
  }

  .game-v4 .v4-defib-unit .v4-device-choices button,
  .game-v4 .v4-defib-unit .v4-device-actions button,
  .game-v4 .v4-defib-unit .v4-device-actions .v4-shock {
    min-height:24px!important;
  }

  .game-v4 .v4-left-dock>.v4-left-padwrap {
    height:128px!important;
    min-height:128px!important;
    max-height:128px!important;
    padding:6px 9px!important;
    gap:3px!important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-visual {
    width:61px!important;
    height:72px!important;
  }

  .game-v4 .v4-left-padwrap .v4-padtray {
    gap:18px!important;
    padding-top:7px!important;
  }

  .game-v4 .v4-left-padwrap .v4-pad-visual-bolt {
    width:30px!important;
    height:30px!important;
    margin-bottom:5px!important;
  }
}


/* CQ_PULSE_AND_LCD_FIX_V13B */

.game-v4 .cq-pulse-finding {
  margin:8px 0 12px;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid #45d6c580;
  background:linear-gradient(120deg,#0d4c50,#10324a);
  color:#e4fffc;
  font-size:11px;
  font-weight:800;
  line-height:1.9;
  box-shadow:0 0 16px #2cf5da15;
  animation:cq-finding-in .25s ease-out;
}

@keyframes cq-finding-in {
  from {opacity:0;transform:translateY(5px)}
  to {opacity:1;transform:translateY(0)}
}

.game-v4 .v4-device-lcd.cq-defib-lcd {
  display:flex!important;
  flex-direction:column!important;
  gap:3px!important;
  height:76px!important;
  min-height:76px!important;
  max-height:76px!important;
  flex:0 0 76px!important;
  padding:5px 8px!important;
  overflow:hidden!important;
  background:radial-gradient(
    ellipse at center,#0a4655,#03141d 85%
  )!important;
  border:1px solid #277d85!important;
  border-radius:9px!important;
}

.game-v4 .cq-lcd-status,
.game-v4 .cq-lcd-values {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:12px;
  gap:5px;
  direction:ltr;
  font:700 8px/1.2 Arial,sans-serif;
  color:#b4ffed;
}

.game-v4 .cq-lcd-status span {
  color:#f0bb84;
}

.game-v4 .cq-lcd-values strong {
  font:800 13px/1 Arial,sans-serif!important;
  color:#bbffe7!important;
}

.game-v4 .cq-lcd-wave {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  height:28px!important;
  min-height:21px!important;
  flex:1 1 28px!important;
  overflow:hidden;
  color:#e9bb8a;
  font:700 9px Arial,sans-serif;
  letter-spacing:.12em;
  background:
    repeating-linear-gradient(
      90deg,transparent 0 17px,#2aa38d15 18px 19px
    ),
    repeating-linear-gradient(
      0deg,transparent 0 12px,#2aa38d12 13px 14px
    );
}

.game-v4 .cq-lcd-wave svg {
  display:block;
  width:100%;
  height:100%;
}

.game-v4 .cq-lcd-wave svg path {
  stroke:#62ffb5;
  stroke-width:2.5;
  fill:none;
  stroke-dasharray:100 16;
  animation:cq-lcd-flow 1.15s linear infinite;
  filter:drop-shadow(0 0 3px #4effac);
}

@keyframes cq-lcd-flow {
  to {stroke-dashoffset:-232}
}

.game-v4 .cq-defib-lcd .v4-charge-track {
  flex:0 0 3px!important;
  height:3px!important;
  min-height:3px!important;
  margin:0!important;
}

@media (min-width:841px) and (max-height:785px) {
  .game-v4 .v4-device-lcd.cq-defib-lcd {
    height:65px!important;
    min-height:65px!important;
    max-height:65px!important;
    flex-basis:65px!important;
  }
}

@media (prefers-reduced-motion:reduce) {
  .game-v4 .cq-lcd-wave svg path {
    animation:none!important;
  }
}


/* CQ_ECG_V15 — ECG is not a palpable pulse */

.game-v4 .cq-monitor .monitor-top {
  font-size:8px;
  letter-spacing:0;
  gap:4px;
}

.game-v4 .cq-monitor .cq-signal-state {
  color:#f3bf7b;
  font-size:8px;
  white-space:nowrap;
}

.game-v4 .cq-monitor .monitor-values {
  font-size:9px;
  justify-content:space-between;
  gap:5px;
}

.game-v4 .cq-monitor .cq-pulse-reading strong {
  color:#ffd39b;
}

.game-v4 .cq-pulse-readout {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  margin:6px 0;
  padding:7px 9px;
  border:1px solid #396f85;
  border-radius:9px;
  background:#08263a;
  color:#c4e3eb;
  font-size:10px;
}

.game-v4 .cq-pulse-readout b {
  color:#b6d4df;
  font-weight:800;
}

.game-v4 .cq-pulse-readout b.cq-pulse-absent {
  color:#ffb48e;
}

.game-v4 .v4-spot[data-spot="pulse"] {
  border-color:#e7ad66!important;
  color:#ffd9a8!important;
  background:#3a2c2aa6!important;
  box-shadow:
    0 0 0 4px #f4ba4e19,
    0 0 14px #f2ac6533!important;
}

.game-v4 .v4-spot[data-spot="pulse"].checked {
  border-color:#f5bb78!important;
  color:#ffe7c9!important;
}


/* CQ_REPORT_SINGLE_SCREEN_V16 */

@media screen and (min-width:1001px) and (min-height:680px) {

  .content.route-result {
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    min-height:0!important;
    height:auto!important;
    padding:8px 15px!important;
    gap:0!important;
  }

  .route-result>.footer-note {
    display:none!important;
  }

  /* Page title */
  .route-result>.pageintro {
    flex:0 0 42px!important;
    min-height:0!important;
    margin:0 0 6px!important;
    align-items:center!important;
    gap:10px!important;
    overflow:hidden!important;
  }

  .route-result>.pageintro h1 {
    font-size:18px!important;
    line-height:1.35!important;
    margin:0!important;
  }

  .route-result>.pageintro p {
    font-size:9px!important;
    line-height:1.35!important;
    margin:1px 0 0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    max-width:680px!important;
  }

  .route-result>.pageintro .row {
    gap:7px!important;
    flex-wrap:nowrap!important;
  }

  .route-result>.pageintro .btn {
    min-height:29px!important;
    padding:5px 9px!important;
    font-size:10px!important;
  }

  /* Compact score summary */
  .route-result>.report-hero {
    flex:0 0 96px!important;
    height:96px!important;
    min-height:0!important;
    margin:0 0 7px!important;
    padding:10px 18px!important;
    gap:12px!important;
    border-radius:13px!important;
  }

  .route-result>.report-hero .eyebrow {
    font-size:8px!important;
  }

  .route-result>.report-hero h1 {
    font-size:19px!important;
    margin:2px 0!important;
    line-height:1.25!important;
  }

  .route-result>.report-hero p {
    font-size:9px!important;
    margin:0 0 4px!important;
    line-height:1.5!important;
  }

  .route-result>.report-hero .pill {
    font-size:9px!important;
    padding:3px 7px!important;
  }

  .route-result>.report-hero .scorebig {
    font-size:49px!important;
    line-height:1.05!important;
    margin:0!important;
  }

  .route-result>.report-hero .scorebig span {
    font-size:15px!important;
  }

  .route-result>.report-hero .small {
    font-size:9px!important;
  }

  /* Four compact KPI cards */
  .route-result>.metrics {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:8px!important;
    flex:0 0 61px!important;
    height:61px!important;
    min-height:0!important;
    margin:0 0 7px!important;
  }

  .route-result>.metrics .metric {
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:2px!important;
    height:61px!important;
    min-height:0!important;
    padding:7px 12px!important;
  }

  .route-result>.metrics .metric-title {
    font-size:10px!important;
    line-height:1.2!important;
  }

  .route-result>.metrics .metric-title:last-child {
    display:none!important;
  }

  .route-result>.metrics .metric-value {
    font-size:25px!important;
    margin:0!important;
    line-height:1.1!important;
  }

  /* Three report tabs */
  .route-result>.cq-report-tabs {
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 0 35px;
    height:35px;
    min-height:0;
    margin:0 0 7px;
  }

  .route-result>.cq-report-tabs .cq-report-tab {
    height:34px;
    min-height:34px;
    padding:4px 14px;
    border:1px solid #286579;
    border-radius:10px;
    background:#0b2941;
    color:#9ebfce;
    font-size:11px;
    font-weight:700;
    font-family:inherit;
    line-height:1.1;
    cursor:pointer;
    transition:background .15s,filter .15s;
  }

  .route-result>.cq-report-tabs .cq-report-tab.active {
    color:#042638;
    background:linear-gradient(110deg,#3ae2d4,#1eb5db);
    border-color:#3aebde;
  }

  .route-result>.cq-report-tabs .cq-report-tab:hover {
    filter:brightness(1.13);
  }

  /* Main screen: no scrolling */
  .route-result>.cq-report-frame {
    display:block;
    flex:1 1 0;
    min-height:0;
    height:100%;
    overflow:hidden!important;
  }

  .route-result .cq-report-frame .reportgrid {
    height:100%!important;
    min-height:0!important;
    gap:10px!important;
    margin:0!important;
  }

  .route-result
  .cq-report-frame[data-view="overview"]>
  .cq-report-overview {
    display:grid!important;
    grid-template-columns:
      minmax(0,1fr) minmax(0,1.05fr)!important;
  }

  .route-result
  .cq-report-frame[data-view="overview"]>
  .cq-report-details {
    display:none!important;
  }

  .route-result
  .cq-report-frame[data-view="criteria"]>
  .cq-report-overview,

  .route-result
  .cq-report-frame[data-view="timeline"]>
  .cq-report-overview {
    display:none!important;
  }

  .route-result
  .cq-report-frame[data-view="criteria"]>
  .cq-report-details,

  .route-result
  .cq-report-frame[data-view="timeline"]>
  .cq-report-details {
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .route-result
  .cq-report-frame[data-view="criteria"]
  .cq-report-details>.card:nth-child(2),

  .route-result
  .cq-report-frame[data-view="timeline"]
  .cq-report-details>.card:nth-child(1) {
    display:none!important;
  }

  .route-result .cq-report-frame .card {
    min-height:0!important;
    height:100%!important;
    max-height:none!important;
    padding:10px 12px!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }

  .route-result .cq-report-frame .cardhead {
    flex:0 0 auto!important;
    min-height:25px!important;
    margin:0 0 6px!important;
  }

  .route-result .cq-report-frame .cardhead h2 {
    font-size:12px!important;
  }

  .route-result .cq-report-frame .tag {
    font-size:9px!important;
    padding:3px 6px!important;
  }

  /* Score bars */
  .route-result
  .cq-report-overview>.card:first-child {
    justify-content:space-between!important;
  }

  .route-result .cq-report-overview .barrow {
    flex:1 1 0!important;
    min-height:0!important;
    margin:0!important;
    grid-template-columns:
      105px minmax(0,1fr) 40px!important;
    gap:8px!important;
    font-size:10px!important;
  }

  .route-result
  .cq-report-overview .barrow .progressbar {
    height:7px!important;
  }

  /* Error entries */
  .route-result .cq-report-overview .errorline {
    flex:0 0 auto!important;
    margin:0 0 5px!important;
    padding:6px 9px!important;
    min-height:0!important;
    border-radius:7px!important;
    font-size:10px!important;
    line-height:1.45!important;
    overflow:hidden!important;
  }

  .route-result
  .cq-report-overview .errorline .between {
    gap:6px!important;
    font-size:9px!important;
    margin-bottom:1px!important;
  }

  .route-result
  .cq-report-overview .errorline>div:last-child {
    font-size:9px!important;
    line-height:1.5!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .route-result .cq-report-overview .notice {
    font-size:9px!important;
    line-height:1.35!important;
    margin-top:auto!important;
    padding:6px 9px!important;
    border-radius:8px!important;
  }

  /* Pagination instead of vertical scroll */
  .route-result .cq-report-page-hidden {
    display:none!important;
  }

  .route-result .cq-report-pager {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    flex:0 0 27px;
    height:27px;
    margin-top:5px;
    color:#a8cad5;
    font-size:9px;
  }

  .route-result .cq-report-pager button {
    border:1px solid #31768d;
    background:#123d56;
    border-radius:7px;
    color:#d9f9ff;
    padding:3px 9px;
    min-height:24px;
    cursor:pointer;
    font-size:9px;
  }

  .route-result .cq-report-pager button:disabled {
    opacity:.35;
    cursor:default;
  }

  /* 20 criteria in two columns */
  .route-result .cq-report-details>.card {
    width:100%;
  }

  .route-result .cq-report-details .tablewrap {
    flex:1 1 0!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  .route-result .cq-report-details .data-table {
    display:block!important;
    height:100%!important;
  }

  .route-result .cq-report-details .data-table thead {
    display:none!important;
  }

  .route-result .cq-report-details .data-table tbody {
    display:grid!important;
    grid-template-columns:
      repeat(2,minmax(0,1fr))!important;
    grid-template-rows:
      repeat(10,minmax(0,1fr))!important;
    grid-auto-flow:column!important;
    column-gap:12px!important;
    row-gap:5px!important;
    height:100%!important;
    min-height:0!important;
  }

  .route-result .cq-report-details .data-table tr {
    display:grid!important;
    grid-template-columns:
      minmax(0,1fr) 65px 81px!important;
    align-items:center!important;
    min-height:0!important;
    background:#0e2e47!important;
    border:1px solid #28546b!important;
    border-radius:8px!important;
    overflow:hidden!important;
  }

  .route-result .cq-report-details .data-table td {
    font-size:10px!important;
    padding:3px 9px!important;
    border:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    min-width:0!important;
  }

  .route-result
  .cq-report-details .data-table td:nth-child(2),

  .route-result
  .cq-report-details .data-table td:nth-child(3) {
    font-size:9px!important;
  }

  /* Timeline pagination */
  .route-result .cq-report-details .timeline {
    flex:1 1 0!important;
    max-height:none!important;
    height:auto!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  .route-result .cq-report-details .timeline-item {
    margin:0!important;
    padding:7px 8px!important;
    font-size:10px!important;
    min-height:39px!important;
    max-height:none!important;
    line-height:1.45!important;
    border:1px solid #21445d!important;
    border-radius:8px!important;
    background:#0e2c43!important;
    display:flex!important;
    align-items:center!important;
  }

  .route-result
  .cq-report-details .timeline-item+.timeline-item {
    margin-top:5px!important;
  }

  .route-result .cq-report-frame
  .timeline-item.cq-report-page-hidden {
    display:none!important;
  }

  /* Bottom actions */
  .route-result>.row.wrap.no-print {
    flex:0 0 31px!important;
    min-height:0!important;
    max-height:31px!important;
    gap:8px!important;
    margin:6px 0 0!important;
    align-items:center!important;
  }

  .route-result>.row.wrap.no-print>.btn {
    min-height:28px!important;
    padding:4px 10px!important;
    font-size:10px!important;
  }
}

/* Short desktop displays */
@media screen and (min-width:1001px)
and (min-height:680px) and (max-height:790px) {

  .route-result>.pageintro {
    flex-basis:32px!important;
    margin-bottom:4px!important;
  }

  .route-result>.report-hero {
    flex-basis:75px!important;
    height:75px!important;
    margin-bottom:4px!important;
  }

  .route-result>.report-hero .scorebig {
    font-size:38px!important;
  }

  .route-result>.metrics {
    flex-basis:52px!important;
    height:52px!important;
    margin-bottom:4px!important;
  }

  .route-result>.metrics .metric {
    height:52px!important;
  }

  .route-result>.cq-report-tabs {
    flex-basis:32px!important;
    margin-bottom:4px!important;
  }

  .route-result .cq-report-overview .errorline {
    padding:4px 8px!important;
    margin-bottom:3px!important;
  }

  .route-result .cq-report-frame .card {
    padding:7px 9px!important;
  }

  .route-result
  .cq-report-details .data-table tbody {
    row-gap:3px!important;
  }
}

/* Preserve the complete PDF/print report */
@media print {

  .route-result {
    overflow:visible!important;
    height:auto!important;
    display:block!important;
  }

  .route-result>.cq-report-tabs,
  .route-result .cq-report-pager {
    display:none!important;
  }

  .route-result>.cq-report-frame {
    height:auto!important;
    display:block!important;
    overflow:visible!important;
  }

  .route-result .cq-report-frame .reportgrid,
  .route-result .cq-report-frame
  .cq-report-details>.card {
    display:block!important;
    height:auto!important;
    overflow:visible!important;
  }

  .route-result .cq-report-frame .card {
    display:block!important;
    height:auto!important;
    break-inside:avoid;
  }

  .route-result
  .cq-report-frame .cq-report-page-hidden {
    display:block!important;
  }

  .route-result .cq-report-details .tablewrap,
  .route-result .cq-report-details .timeline {
    overflow:visible!important;
    max-height:none!important;
    height:auto!important;
  }

  .route-result .cq-report-details .data-table {
    display:table!important;
    width:100%!important;
  }

  .route-result
  .cq-report-details .data-table thead {
    display:table-header-group!important;
  }

  .route-result
  .cq-report-details .data-table tbody {
    display:table-row-group!important;
  }

  .route-result .cq-report-details .data-table tr {
    display:table-row!important;
  }

  .route-result .cq-report-details .data-table td {
    display:table-cell!important;
    white-space:normal!important;
  }
}
