/* Classic corpuls3 colours and NIBD layout from the supplied training reference.
   Source screenshots remain research material and are not embedded in the app. */
.msim-device {
  --green: #151515;
  --cyan: #b51b29;
  --yellow: #1112a9;
  --screen: #fff;
  --muted: #5d6264;
  background: linear-gradient(125deg, #eeeee8, #d7dfda 65%, #c7d0cd);
}

.msim-screen {
  background: #fff;
  color: #111;
  color-scheme: light;
  border-color: #49575a;
  box-shadow: 0 0 0 0.2cqw #acb4af;
  padding: 0.45cqw;
  gap: 0.3cqw;
}

.screen-status {
  background: #eef0eb;
  border-bottom: 1px solid #b8bdb7;
  color: #111;
}

.msim-vitalbar {
  gap: 0;
}
.msim-vital {
  background: #fff;
  border: 0;
  border-right: 1px solid #cbd0c7;
  padding: 0.35cqw 0.65cqw;
}
.msim-vital:last-child {
  border-right: 0;
}
.vital-hf {
  color: #111;
}
.vital-spo2,
.vital-pp {
  color: #bf1f2b;
}
.vital-co2,
.vital-nibp {
  color: #1513a3;
}
.msim-vital-label small,
.vital-range {
  opacity: 1;
}
.vital-range {
  color: #575b5e;
}

.msim-screen-stack {
  gap: 0;
}
.msim-pane {
  background: #fff;
  border-bottom: 1px solid #bfc3bd;
}
.pane-title,
.pane-3 .pane-title,
.pane-4 .pane-title {
  color: #111;
  background: #ffffffe8;
}
.mode-monitor .pane-3 .pane-title {
  color: #b51b29;
}
.mode-monitor .pane-4 .pane-title {
  color: #1112a9;
}
.device-strip {
  background: #fff;
  color: #464b46;
  min-height: 1.1cqw;
  padding: 0.15cqw 0.3cqw 0;
}
.msim-screen-softkeys {
  background: #0d10ac;
  border-top: 1px solid #adbee6;
  min-height: 2.35cqw;
  padding: 0.2cqw 0;
  gap: 0;
}
.msim-screen-softkey-text {
  color: #fff;
  border-right-color: #8487eb;
  font-size: 0.82cqw;
  font-weight: normal;
}
.msim-screen-softkey-text.active {
  color: #080c71;
  background: #f7f8f1;
  box-shadow: inset 0 0 0 1px #484d99;
}

/* The white defibrillator keys sit together on the photographed red block. */
.msim-right::before {
  content: "";
  position: absolute;
  top: 5.75cqw;
  left: 0.95cqw;
  right: 1.05cqw;
  height: 19.4cqw;
  background: #ec160d;
  border-radius: 0.2cqw;
  box-shadow: inset 0 0 0 1px #d6291b;
  pointer-events: none;
}
.msim-grid2,
.msim-shock-wrap {
  position: relative;
}
.msim-btn {
  background: linear-gradient(#fff, #e7e9e6);
  border-color: #d1c8bc;
  color: #303633;
  border-radius: 0.2cqw;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px #92271d88;
}
.msim-btn[aria-pressed="true"] {
  background: #e7eee0;
  box-shadow:
    inset 0 0 0 2px #374536,
    0 0 0 1px #fff;
}
.msim-shock-wrap {
  padding-top: 0.35cqw;
}
.shock-caption {
  color: #fff;
  font-size: 0.85cqw;
  letter-spacing: 0.04cqw;
}
.msim-shock {
  touch-action: none;
  width: 10cqw;
  height: 3.6cqw;
  font-size: 3cqw;
  border-radius: 0.25cqw;
  color: #db2016;
  background: linear-gradient(#fff, #e9e9e0);
  border: 1px solid #d7c9bc;
  box-shadow:
    inset 0 1px 1px #fff8,
    0 2px 2px #6a211b66;
}
.msim-shock:disabled {
  opacity: 0.75;
  filter: none;
}
.msim-shock.is-held {
  background: #fff2be;
  box-shadow:
    inset 0 0 0 0.25cqw #bb331c,
    0 0 0 0.2cqw #ffe19a;
}

/* Two ECG strips above the blue NIBD lower field. */
.msim-screen.mode-nibp .pane-1,
.msim-screen.mode-nibp .pane-2 {
  flex: 1;
}
.msim-screen.mode-nibp .pane-3 {
  flex: 2.65;
  background: #070bb6;
  border: 0;
}
.nibp-panel {
  background: #070bb6;
  color: #fff;
  padding: 0.45cqw 0.75cqw 0.35cqw;
  gap: 0.22cqw;
  justify-content: flex-start;
}
.nibp-panel .panel-heading {
  flex: none;
  min-height: 1.35cqw;
}
.nibp-panel .panel-heading h1 {
  color: #fff;
  font-size: 1.2cqw;
  letter-spacing: 0.04cqw;
}
.nibp-panel .panel-heading > span {
  color: #fff;
  font-size: 0.85cqw;
  text-align: right;
}
.nibp-body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 1.2cqw;
  align-items: stretch;
}
.nibp-cuff-scale {
  display: flex;
  flex: none;
  align-items: center;
  width: 11cqw;
  padding: 0.55cqw 0 0.4cqw;
  gap: 3cqw;
}
.nibp-cuff-unit {
  font-size: 0.85cqw;
  font-weight: bold;
  align-self: flex-start;
  padding-top: 0.2cqw;
}
.nibp-cuff-ruler {
  width: 3.5cqw;
  position: relative;
  align-self: stretch;
  border-left: 1px solid #dce5ff;
  min-height: 3cqw;
  color: #fff;
}
.nibp-cuff-tick {
  position: absolute;
  left: 0;
  width: 100%;
  padding-left: 2.25cqw;
  transform: translateY(50%);
  font-size: 0.64cqw;
  line-height: 1;
  white-space: nowrap;
}
.nibp-cuff-tick::before {
  content: "";
  position: absolute;
  width: 2cqw;
  height: 1px;
  background: #dce5ff;
  left: 0;
  top: 50%;
}
.nibp-cuff-pointer {
  position: absolute;
  right: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2cqw;
  font-size: 1.5cqw;
  line-height: 1;
  transform: translateY(50%);
  padding-right: 0.1cqw;
  transition: bottom 0.15s linear;
}
#nibp-cuff-value {
  font-size: 0.85cqw;
  min-width: 1.6cqw;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.nibp-output {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 3.7cqw;
}
.nibp-large-view {
  text-align: center;
}
.nibp-reading {
  justify-content: center;
  font-size: 4.15cqw;
  gap: 0.25cqw;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}
.nibp-reading .reading-separator {
  opacity: 1;
}
.nibp-map {
  margin: 0.3cqw 0 0;
  font-size: 1.65cqw;
  color: #fff;
  line-height: 1;
  font-weight: bold;
  font-variant-numeric: tabular-nums;
}
.nibp-history-view {
  width: 100%;
  align-self: stretch;
}
.nibp-history-table {
  width: 100%;
  height: 100%;
  color: #fff;
  border-collapse: collapse;
  font-size: 0.97cqw;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}
.nibp-history-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.nibp-history-table td {
  padding: 0.08cqw 0.3cqw;
  text-align: right;
  white-space: nowrap;
}
.nibp-history-table td:first-child {
  width: 45%;
  font-size: 1.1cqw;
}
.nibp-history-table td:nth-child(2) {
  width: 30%;
}
.nibp-history-table td:last-child {
  width: 25%;
  font-size: 0.74cqw;
}
.nibp-history-table tr:first-child td {
  font-weight: bold;
  font-size: 1.16cqw;
}
.nibp-history-table tr:first-child td:last-child {
  font-size: 0.8cqw;
}
.nibp-panel .nibp-details {
  color: #fff;
  font-size: 0.86cqw;
  min-height: 1.1cqw;
  align-items: baseline;
  gap: 1cqw;
}
#nibp-profile {
  margin-right: auto;
  white-space: nowrap;
}
#nibp-time,
#nibp-next {
  white-space: nowrap;
}
#nibp-next {
  font-size: 0.78cqw;
}
.nibp-panel .measurement-track {
  height: 0.16cqw;
  background: #4147d0;
}
.nibp-panel .measurement-track div {
  background: #fff;
}
.nibp-inline-controls {
  flex: none;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.5cqw;
  min-height: 1.7cqw;
}
.nibp-inline-controls button {
  background: #080c8d;
  color: #fff;
  border-color: #787ee1;
  border-radius: 0.1cqw;
  font-size: 0.7cqw;
  padding: 0.2cqw 0.55cqw;
}
.nibp-inline-controls button[aria-pressed="true"] {
  color: #080c71;
  background: #fff;
  border-color: #fff;
}

/* The red lower defibrillator field remains red in every therapy phase. */
.msim-screen.mode-aed .pane-3,
.msim-screen.mode-aed.is-ready .pane-3,
.msim-screen.mode-aed.is-analyzing .pane-3 {
  background: #d90a0a;
  border-color: #bb1212;
}
.defib-panel {
  color: #fff;
  background: #d90a0a;
}
.defib-panel .panel-heading > span,
.defib-panel .panel-heading h1,
.defib-energy,
.defib-energy small,
.defib-details,
.defib-instruction strong,
.defib-instruction > span,
.msim-screen.mode-aed.is-ready .defib-instruction strong {
  color: #fff;
}
.defib-inline-controls button {
  color: #fff;
  border-color: #f0a5a5;
  background: #ad1313;
}
.defib-inline-controls button[aria-pressed="true"] {
  color: #a10b0b;
  border-color: #fff;
  background: #fff;
}
