:root {
  --text: #000000;
  --grid: #d9d9d9;
  --blue: #001a80;
  --yellow: #ffff33;
  --cyan: #62f4ff;
  --low: #00d800;
  --high: #ff0000;
  --orange: #ff8a00;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f2f2f2;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}
.excel-page {
  padding: 10px;
  display: flex;
  justify-content: center;
}
.worksheet-frame {
  width: 1420px;
  min-height: 860px;
  background: #ffffff;
  border: 2px solid #000;
  padding: 14px 16px 12px;
  position: relative;
  box-shadow: 0 0 0 1px #888;
}
.main-title {
  width: 1110px; /* Align title width with the chart/graph column, not the full worksheet. */
  text-align: center;
  font-size: 29px;
  font-weight: 700;
  margin: 0 0 7px;
}
.top-strip.excel-top-layout {
  display: grid;
  grid-template-columns: 288px 203px 277px 224px;
  gap: 8px;
  align-items: center;
  margin-left: 72px;
  margin-bottom: 8px;
}
.ga-strip {
  display: grid;
  grid-template-columns: 80px 54px 48px 48px;
  gap: 8px;
  align-items: center;
  justify-content: start;
  padding: 10px 10px;
  min-height: 74px;
  border: 1px solid #999;
  background: #fff;
}
.ga-label {
  font-size: 15px;
  line-height: 1.15;
  text-align: right;
  font-weight: 700;
}
.ga-label span { font-size: 12px; font-weight: 400; }
.ga-cell {
  appearance: none;
  background: #fff;
  border: 3px solid #000;
  width: 100%;
  height: 34px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  text-align: center;
  text-align-last: center;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 0;
}
.excel-grid.excel-grid-left-data {
  display: grid;
  grid-template-columns: 1110px 245px;
  gap: 16px;
  align-items: start;
}
.left-column {
  align-self: start;
  grid-column: 2;
  grid-row: 1;
}


.chart-wrap {
  width: 1110px;
  height: 610px;
  border-left: 0;
  border-bottom: 0;
  position: relative;
}
#chartCanvas {
  width: 100% !important;
  height: 100% !important;
}

.demo-note strong { font-weight: 700; }
.excel-box {
  border: 2px solid #000;
  background: #fff;
  padding: 5px 5px;
}
.light-box {
  border: 1px solid #bfbfbf;
  background: #fff;
  padding: 6px 7px;
  min-height: 52px;
}
.box-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #001a80;
}
.controls-box label, .xaxis-controls label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  font-size: 13px;
  white-space: nowrap;
}
.controls-box label:has(input:checked), .xaxis-controls label:has(input:checked) { font-weight: 700; }
.control-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #001a80;
}
input[type="radio"] {
  width: 14px;
  height: 14px;
  margin: 0;
}
.legend-line {
  margin-left: auto;
  width: 54px;
  height: 0;
  border-top-style: solid;
  border-top-width: 6px;
  display: inline-block;
  flex: 0 0 54px;
}
.legend-line.low { border-top-color: var(--low); }
.legend-line.high { border-top-color: var(--high); }
.legend-line.dashed { border-top-style: dashed; border-top-width: 3px; }
.legend-box { padding-top: 5px; }
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin: 5px 0;
  line-height: 1.15;
}
.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid #000;
  display: inline-block;
  flex: 0 0 11px;
}
.legend-dot.tsb { background: var(--orange); }
.legend-dot.tcb { background: var(--blue); }
.data-panel { padding: 5px 5px 6px; height: 610px; }
.data-header-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}
.data-header-row .box-title { margin: 0; font-size: 14px; white-space: nowrap; }
.button-row {
  margin-left: auto;
  display: flex;
  gap: 3px;
}
button {
  height: 21px;
  border: 1px solid #999;
  border-radius: 0;
  background: #e6e6e6;
  color: #000;
  font-weight: 700;
  padding: 0 4px;
  font-size: 9px;
  cursor: pointer;
}
button.secondary { background: #f0f0f0; color: #000; }
.data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  border: 1px solid #bfbfbf;
  padding: 0 1px;
  font-size: 10px;
  line-height: 1.0;
  height: 17.9px;
  text-align: center;
}
.data-table th {
  background: #e7e6e6;
  font-weight: 700;
  height: 25px;
}
.data-table input {
  width: 100%;
  height: 17px;
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  font-size: 10px;
  text-align: center;
}
.data-table input:focus {
  outline: 2px solid #1c61ff;
  outline-offset: -2px;
}
.data-table th:nth-child(1), .data-table td:nth-child(1) { width: 18px; }
.data-table th:nth-child(2), .data-table td:nth-child(2) { width: 42px; }
.data-table th:nth-child(3), .data-table td:nth-child(3) { width: 27px; }
.data-table th:nth-child(4), .data-table td:nth-child(4) { width: 34px; }
.data-table th:nth-child(5), .data-table td:nth-child(5) { width: 34px; }
.row-number { color: #000; background: #f7f7f7; }
.xaxis-controls {
  margin: 8px auto 0;
  width: 820px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 130px 135px 125px 1fr;
  gap: 10px;
  align-items: center;
}
.xaxis-controls .control-label { margin: 0; }
@media (max-width: 1100px) {
  .worksheet-frame { width: 100%; overflow-x: auto; }
  .excel-grid.excel-grid-left-data { grid-template-columns: 1110px 245px; }
}
.guideline-box, .risk-box, .legend-box { min-height: 52px; padding-top: 5px; padding-bottom: 4px; }
.risk-box .legend-line { width: 48px; flex-basis: 48px; }
.xaxis-controls { background: #eeeeee !important; border: 1px solid #9d9d9d; }


/* v25 patient-data refinements */

/* Remove spinner/data selector controls from patient-data numeric boxes, including TSB/TcB. */
.patient-table input[type="number"]::-webkit-outer-spin-button,
.patient-table input[type="number"]::-webkit-inner-spin-button,
.patient-data input[type="number"]::-webkit-outer-spin-button,
.patient-data input[type="number"]::-webkit-inner-spin-button,
#patientData input[type="number"]::-webkit-outer-spin-button,
#patientData input[type="number"]::-webkit-inner-spin-button,
td input[type="number"]::-webkit-outer-spin-button,
td input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.patient-table input[type="number"],
.patient-data input[type="number"],
#patientData input[type="number"],
td input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* 10-second pending-sort visual cue. */
.pending-sort-row,
.pending-sort-row td,
tr.pending-sort-row td {
  background-color: #d9ecff !important;
}

.plain-header-note {
  font-weight: 400;
  font-style: normal;
  color: inherit;
}


/* v26 patient-data workflow */
.pending-sort-row td { background-color: #d9ecff !important; }
.plain-header-note { font-weight: 400; font-style: normal; color: inherit; font-size: 12px; }
#patientTable input[type="number"]::-webkit-outer-spin-button,
#patientTable input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#patientTable input[type="number"] { -moz-appearance: textfield; appearance: textfield; }


/* v28: Hours subnote under header, 2 points smaller than header text */



/* v34: plain subheaders under Age and Hours */


/* v34: highlight entire Patient Data row when any field in that row is active */



/* v36: header subnotes (days) and (≤168) same size and bold */
.header-subnote-bold {
  font-size: calc(1em - 0.5pt);
  font-weight: 700;
  font-style: normal;
  line-height: 1.0;
}


/* v37: blue fill for active Patient Data row data cells */




/* v38: active/delayed Patient Data row fill */





























/* v47: note lives inside chart area and is centered under the graph/X-axis area */
.chart-area .demo-note {
  width: calc(100% - 58px);
  max-width: calc(100% - 58px);
  box-sizing: border-box;
  margin: 16px 0 0 58px;
  border: none !important;
  padding: 0 4px;
  text-align: center;
  line-height: 1.25;
}

.chart-area 

.no-break {
  white-space: nowrap;
}


/* v49: blue fill for active/current Patient Data row */
#patientTable tbody tr.active-data-row > td {
  background-color: #d9ecff !important;
}
#patientTable tbody tr.active-data-row > td input {
  background-color: #d9ecff !important;
}


/* v50: Patient Data table without # column; 26 rows aligned to graph */
.data-panel {
  height: 100% !important;
}

.data-table {
  table-layout: fixed !important;
  width: 100% !important;
}

/* Four remaining columns fill the unchanged Patient Data object width */
.data-table th:nth-child(1),
.data-table td:nth-child(1) {
  width: 28% !important; /* Age */
}
.data-table th:nth-child(2),
.data-table td:nth-child(2) {
  width: 24% !important; /* Hours */
}
.data-table th:nth-child(3),
.data-table td:nth-child(3) {
  width: 24% !important; /* TSB */
}
.data-table th:nth-child(4),
.data-table td:nth-child(4) {
  width: 24% !important; /* TcB */
}

/* Slightly taller rows to balance 26 rows vertically */
.data-table th,
.data-table td {
  height: 18.6px !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
}

/* Align Patient Data panel with graph vertically */
.left-column {
  align-self: stretch !important;
}
.excel-grid-left-data {
  align-items: stretch !important;
}








/* v53: Patient Data frame is positioned/sized by Chart.js plot area */
.data-panel {
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.data-table {
  table-layout: fixed !important;
  width: 100% !important;
  flex: 1 1 auto !important;
}

.data-table tbody {
  overflow: hidden !important;
}

.data-table th,
.data-table td {
  box-sizing: border-box !important;
  line-height: 1.05 !important;
}

/* v53: do not force Legend height; match via normal top-strip alignment */
.top-strip {
  align-items: stretch !important;
}

.top-strip .light-box,
.top-strip .controls-box,
.top-strip .legend-box,
.top-legend {
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}


/* v54: active Patient Data row fill support */
#patientTable tbody tr.active-data-row > td {
  background-color: #d9ecff !important;
}
#patientTable tbody tr.active-data-row > td input {
  background-color: #d9ecff !important;
}

/* remove grey borders from top boxes */
.light-box, .controls-box, .legend-box {
  border: none !important;
}

/* unified top strip border */


/* tighten risk line spacing */
.risk-line {
  margin-left: 6px !important;
}


/* v56: borders */
.data-panel {
  border: 2px solid #999 !important;
}

/* Top control strip is one bordered group sized by JS to chart X-axis width */
.top-strip {
  border: 2px solid #999 !important;
  padding: 6px !important;
  box-sizing: border-box !important;
  align-items: stretch !important;
}

/* Remove individual grey borders including GA Weeks/Days */
.top-strip .light-box,
.top-strip .controls-box,
.top-strip .legend-box,
.top-strip .ga-box,
.ga-box,
.ga-control,
.ga-panel {
  border: none !important;
  box-shadow: none !important;
}

/* Pull risk legend lines closer to text */
.risk-box label {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.risk-box .legend-line,
#riskLowLine,
#riskHighLine {
  margin-left: 4px !important;
}




/* v58: remove GA Weeks/Days frame completely */
.top-strip > :first-child,
.top-strip > :first-child.light-box,
.top-strip > :first-child.controls-box,
.ga-box,
.ga-panel,
.ga-control,
.ga-section,
.ga-input-box {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background-clip: padding-box !important;
}

/* v58: lighter added borders */
.data-panel {
  border: 2px solid #999 !important;
}
.top-strip {
  border: 2px solid #999 !important;
  padding: 6px !important;
  box-sizing: border-box !important;
}

/* v58: exact two-line bottom note */
/* v59: bottom note lines fit within chart width */
/* v60: slightly larger bottom text */

/* v63: preserve v61 bottom note font size */
.demo-line {
  display: block;
  text-align: center !important;
  white-space: nowrap;
  font-size: 13.2px !important;
  line-height: 1.2 !important;
}


/* v65: fixed left anchor for Risk legend lines; radio/text layout unchanged */
.risk-box {
  position: relative !important;
}

.risk-box label {
  display: block !important;
  position: relative !important;
  padding-left: 0 !important;
  white-space: nowrap !important;
}

.risk-box .legend-line,
#riskLowLine,
#riskHighLine {
  position: absolute !important;
  left: 183px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}


/* v73: draw top-strip frame inside the object to prevent right-edge clipping */
.top-strip {
  border: none !important;
  box-shadow: inset 0 0 0 2px #999 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.current-axis-option {
  white-space: nowrap;
}

.current-axis-combo {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  margin: 0 3px;
  vertical-align: middle;
}

.current-axis-days-input {
  width: 5.8em;
  height: 2.45em;
  min-height: 2.45em;
  font: inherit;
  font-weight: inherit;
  text-align: center;
  padding: 4px 8px;
  box-sizing: border-box;
  border: 1px solid #777;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}

.current-axis-dropdown-button {
  width: 2.4em;
  height: 2.45em;
  min-height: 2.45em;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  border: 1px solid #777;
  border-radius: 0 3px 3px 0;
  background: #f7f7f7;
  cursor: pointer;
}

.current-axis-dropdown {
  position: absolute;
  left: 0;
  top: auto;
  bottom: calc(100% + 2px);
  width: 8.2em;
  max-height: 18em;
  overflow-y: auto;
  z-index: 10000;
  background: #ffffff;
  border: 1px solid #777;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.current-axis-dropdown-item {
  display: block;
  width: 100%;
  padding: 5px 8px;
  text-align: center;
  font: inherit;
  border: 0;
  background: #ffffff;
  cursor: pointer;
}

.current-axis-dropdown-item:hover,
.current-axis-dropdown-item.selected {
  background: #dfefff;
}


/* v81: open the current-age day selector upward and center a wider X-axis panel under the graph's active area. */
.current-axis-dropdown {
  top: auto !important;
  bottom: calc(100% + 2px) !important;
}
.xaxis-controls {
  width: 820px !important;
  min-height: 48px !important;
  grid-template-columns: 130px 135px 125px 1fr !important;
  gap: 10px !important;
}

/* v82: center the X-axis control contents within a panel that is aligned to the chart X-axis. */
.xaxis-controls {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 38px !important;
  width: auto !important;
  min-height: 48px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}
.xaxis-controls .control-label,
.xaxis-controls label {
  flex: 0 0 auto !important;
}


/* v98: bottom demonstration note link styling */
.about-info-link,
.about-info-link:visited {
  color: #001a80;
  text-decoration: underline;
  font-weight: 400;
}

.about-info-link:hover,
.about-info-link:active {
  color: #001a80;
  text-decoration: underline;
}

/* v103: restore Patient Data header button proportions while allowing browser wrapping. */
.data-header-row .button-row {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}
.data-header-row .button-row button {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  flex: 0 0 auto;
  height: 22px;
  line-height: 1.05;
  font-size: 9px;
  padding: 0 1px;
  letter-spacing: 0;
}
#loadDemoButton { width: 84px; }
#clearButton { width: 58px; }


/* v103/v8: scale the fixed Excel-like GUI as one unit for narrow desktop windows and phones. */
html, body {
  min-width: 0 !important;
  overflow: auto;
}
.excel-page {
  min-width: 0 !important;
  align-items: flex-start;
}
.autoscale-shell {
  position: relative;
  flex: 0 0 auto;
}
@media (max-width: 1100px) {
  .worksheet-frame {
    width: 1420px !important;
    overflow: visible !important;
  }
}

/* v103/v9: in-page About/Information panel for mobile-safe display. */
.about-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.about-modal-panel {
  width: min(760px, 96vw);
  max-height: 92vh;
  box-sizing: border-box;
  padding: 30px 42px 18px;
  background: #fff;
  color: #000;
  border: 1px solid #777;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.30);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-family: "Times New Roman", Times, serif;
}
.about-modal-content {
  font-size: 18px;
  line-height: 1.35;
}
.about-modal-content p {
  margin: 0 0 24px;
}
.about-modal-content .about-title {
  margin-bottom: 18px;
  font-size: 19px;
}
.about-modal-content ul {
  margin: -16px 0 24px 26px;
  padding-left: 22px;
}
.about-modal-content li {
  margin: 0 0 10px;
  padding-left: 8px;
}
.about-modal-button-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  text-align: right;
  font-family: Arial, Helvetica, sans-serif;
}
.about-modal-button-row button {
  min-width: 82px;
  height: 28px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #999;
  background: #e6e6e6;
  cursor: pointer;
}
@media (max-width: 700px), (max-height: 520px) {
  .about-modal-overlay {
    align-items: flex-start;
    justify-content: center;
    padding: 8px;
  }
  .about-modal-panel {
    width: 98vw;
    max-height: 96vh;
    padding: 16px 18px 12px;
  }
  .about-modal-content {
    font-size: 15px;
    line-height: 1.28;
  }
  .about-modal-content .about-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .about-modal-content p {
    margin-bottom: 14px;
  }
  .about-modal-content ul {
    margin: -8px 0 14px 18px;
    padding-left: 18px;
  }
  .about-modal-content li {
    margin-bottom: 7px;
    padding-left: 4px;
  }
}


/* v103/v10: make the Information panel open already fit-to-phone. */
.about-modal-panel {
  transform-origin: top center;
}
@media (max-width: 700px), (max-height: 520px) {
  .about-modal-overlay {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 4px !important;
  }
  .about-modal-panel {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: none !important;
    padding: 10px 12px 8px !important;
    overflow: visible !important;
  }
  .about-modal-content {
    font-size: 11px !important;
    line-height: 1.16 !important;
  }
  .about-modal-content .about-title {
    font-size: 12.5px !important;
    margin-bottom: 7px !important;
  }
  .about-modal-content p {
    margin-bottom: 8px !important;
  }
  .about-modal-content ul {
    margin: -4px 0 8px 12px !important;
    padding-left: 12px !important;
  }
  .about-modal-content li {
    margin-bottom: 4px !important;
    padding-left: 2px !important;
  }
  .about-modal-button-row {
    position: relative !important;
    margin-top: 4px !important;
    padding-top: 5px !important;
    text-align: right !important;
  }
  .about-copyright {
    position: absolute !important;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 10px;
    color: #777;
    pointer-events: none;
  }
  .about-modal-button-row button {
    height: 22px !important;
    min-width: 62px !important;
    font-size: 10.5px !important;
  }
}


/* v84: top control frame aligns with the chart box below. */
.top-strip.excel-top-layout {
  margin-left: 49px !important;
  width: 1052px !important;
  max-width: 1052px !important;
}




/* v156: stable 18 visible Patient Data rows; rows 19+ are hidden. */
#patientTable tbody tr:nth-child(-n+18) {
  display: table-row !important;
}
#patientTable tbody tr:nth-child(-n+18) td {
  border: 1px solid #bfbfbf !important;
  background: #fff;
}
#patientTable tbody tr:nth-child(-n+18) input {
  color: #000 !important;
  pointer-events: auto !important;
  background: #fff !important;
}
#patientTable tbody tr:nth-child(n+18) {
  display: none !important;
}
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr:nth-child(n+18) input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: transparent !important;
  pointer-events: none !important;
}

/* Release 0.2: clinical access / registration overlay */
.clinical-access-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.38);
  box-sizing: border-box;
}
.clinical-access-overlay.hidden {
  display: none !important;
}
.clinical-access-card {
  width: min(680px, 96vw);
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border: 2px solid #333;
  box-shadow: 0 6px 22px rgba(0,0,0,0.35);
  padding: 24px 30px 22px;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #000;
}
.clinical-access-card h1 {
  margin: 0 0 12px;
  font-size: 24px;
  text-align: center;
}
.clinical-access-card h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #001a80;
}
.clinical-access-intro {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.35;
}
.clinical-access-section {
  border: 1px solid #bfbfbf;
  padding: 14px;
  margin: 10px 0;
}
.clinical-access-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
  font-size: 13px;
}
.clinical-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.clinical-code-input {
  width: 112px;
  height: 34px;
  border: 2px solid #000;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.clinical-access-button {
  min-width: 110px;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #777;
  background: #e6e6e6;
  cursor: pointer;
}
.clinical-access-button:disabled {
  opacity: 0.55;
  cursor: default;
}
.clinical-access-divider {
  margin: 14px 0 8px;
  text-align: center;
  font-weight: 700;
  color: #333;
}
.clinical-role-list label {
  display: block;
  margin: 7px 0;
  font-size: 14px;
}
.clinical-role-other {
  width: 230px;
  height: 24px;
  margin-left: 5px;
  font-size: 13px;
}
.clinical-tos-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.3;
}
.clinical-register-button {
  min-width: 205px;
}
.clinical-access-message {
  margin-top: 12px;
  min-height: 22px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}
.clinical-access-message.error {
  color: #b00000;
  font-weight: 700;
}
.clinical-access-message.success {
  color: #004a00;
  font-weight: 700;
}
.clinical-user-code-display {
  display: inline-block;
  margin: 4px 0;
  padding: 4px 10px;
  border: 2px solid #000;
  font-size: 24px;
  letter-spacing: 2px;
  background: #ffffcc;
}
@media (max-width: 700px), (max-height: 520px) {
  .clinical-access-card {
    padding: 14px 16px 12px;
  }
  .clinical-access-card h1 {
    font-size: 19px;
  }
  .clinical-access-intro,
  .clinical-role-list label,
  .clinical-tos-row,
  .clinical-access-message {
    font-size: 12.5px;
  }
  .clinical-code-row {
    flex-wrap: wrap;
  }
}


/* Release 0.3e: refined clinical workspace layout per Excel reference.
   - GA Range radio buttons sit under GA Weeks/Days with no label, aligned with second top-control radio row.
   - Age Calculator top/bottom aligns with the top control frame and uses the 3-row Excel layout.
   - Patient Data frame top/bottom aligns with the graph frame and shows 17 equal-height rows without scrolling.
*/

/* Top control strip: fixed frame above graph. */
.top-strip.excel-top-layout {
  width: 1052px !important;
  max-width: 1052px !important;
  margin-left: 49px !important;
  margin-bottom: 8px !important;
  grid-template-columns: 300px 205px 285px 226px !important;
  gap: 8px !important;
  padding: 4px 6px !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.top-strip .guideline-box,
.top-strip .risk-box,
.top-strip .legend-box,
.top-strip .light-box {
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

/* GA Weeks/Days with GA Range below, aligned with Exchange/High-risk row. */
.clinical-ga-combined {
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  padding: 3px 6px !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: 80px 54px 48px 48px !important;
  grid-template-rows: 30px 24px !important;
  column-gap: 8px !important;
  row-gap: 0 !important;
  align-items: center !important;
  overflow: visible !important;
}
.clinical-ga-combined .ga-label { font-size: 13px !important; line-height: 1.05 !important; }
.clinical-ga-combined .ga-label span { font-size: 11px !important; }
.clinical-ga-combined .ga-cell {
  height: 28px !important;
  font-size: 18px !important;
  border-width: 2px !important;
}
.clinical-ga-combined .ga-range-box {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 4px 0 0 0 !important;
  white-space: nowrap !important;
  font-size: 12px !important;
  line-height: 1 !important;
}
.clinical-ga-combined .ga-range-box .control-label { display: none !important; }
.clinical-ga-combined .ga-range-box label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-height: 18px !important;
  margin: 0 !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}
.clinical-ga-combined .ga-range-box input[type="radio"] {
  width: 14px !important;
  height: 14px !important;
}
.ga-cell-disabled { background: #e7e6e6 !important; color: #777 !important; }

/* Match top control text proportions. */
.guideline-box .control-label,
.risk-box .control-label,
.legend-box .box-title { font-size: 13px !important; margin-bottom: 2px !important; }
.guideline-box label,
.risk-box label { min-height: 18px !important; font-size: 12px !important; }
.legend-item { margin: 4px 0 !important; font-size: 11px !important; }
.risk-box .legend-line,
#riskLowLine,
#riskHighLine { left: 178px !important; }

/* Right-side clinical column: preserves original graph-aligned Patient Data position. */
.clinical-left-column {
  align-self: start !important;
  position: relative !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
}
.clinical-side-panel {
  position: relative !important;
  width: 245px !important;
  height: 610px !important;
  min-height: 610px !important;
  max-height: 610px !important;
}

/* Age Calculator: top/bottom aligned with the top control frame; no header; three rows. */
.age-calculator {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: -82px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 6px 6px !important;
  border: 2px solid #999 !important;
  background: #fff !important;
  overflow: visible !important;
}
.age-calc-title { display: none !important; }
.age-calc-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 19px 19px 19px !important;
  gap: 2px !important;
  align-items: center !important;
}
.age-calc-row {
  display: grid !important;
  grid-template-columns: 64px 1fr 58px !important;
  gap: 4px !important;
  align-items: center !important;
  min-height: 19px !important;
}
.age-calc-row-final { grid-template-columns: 64px 48px 34px 78px !important; }
.age-calc-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-align: right !important;
}
.age-calc-grid input {
  width: 100% !important;
  height: 18px !important;
  min-height: 18px !important;
  box-sizing: border-box !important;
  border: 1px solid #999 !important;
  font-size: 11px !important;
  padding: 0 2px !important;
  background: #fff !important;
}
#calculatedAgeDays {
  text-align: center !important;
  font-weight: 700 !important;
  color: #001a80 !important;
}
.age-calc-unit {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
#createAgeRecordButton {
  width: 100% !important;
  font-size: 8.5px !important;
  line-height: 1 !important;
  padding: 0 1px !important;
  white-space: nowrap !important;
}
.age-calc-message {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 76px !important;
  min-height: 10px !important;
  margin: 0 !important;
  font-size: 8px !important;
  line-height: 1 !important;
  background: transparent !important;
}
.age-calc-message.error { color: #b00000 !important; font-weight: 700 !important; }
.age-calc-message.success { color: #004a00 !important; font-weight: 700 !important; }

/* Patient Data frame: exactly aligned with graph frame. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  position: relative !important;
  top: 0 !important;
  height: 610px !important;
  min-height: 610px !important;
  max-height: 610px !important;
  margin: 0 !important;
  padding: 5px !important;
  border: 2px solid #999 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #fff !important;
}
.clinical-data-title-row {
  flex: 0 0 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 0 4px !important;
  justify-content: space-between !important;
}
.clinical-current-user {
  font-size: 9px !important;
  text-align: right !important;
  white-space: nowrap !important;
}
.patient-table-scroll {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: hidden !important;
}
#patientTable tbody tr:nth-child(-n+17) { display: table-row !important; }
#patientTable tbody tr:nth-child(n+18) { display: none !important; }
#patientTable tbody tr:nth-child(-n+17) td,
#patientTable tbody tr:nth-child(-n+17) input {
  box-sizing: border-box !important;
}

/* Buttons below/outside Patient Data frame. */
.clinical-data-button-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
  margin-top: 6px !important;
}
.clinical-data-button-row button {
  height: 23px !important;
  font-size: 8.5px !important;
  padding: 0 2px !important;
  white-space: nowrap !important;
}

.clinical-remember-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0 2px;
  font-size: 13px;
  line-height: 1.25;
}
.clinical-storage-note {
  margin: 0 0 10px 24px;
  font-size: 12px;
  line-height: 1.25;
  color: #333;
}


/* Release 0.3f: final layout refinements from user feedback.
   - GA Range radio buttons: no label, same font as top-control radio labels, All aligned with GA Weeks select box.
   - Patient Data/User Code typography and 17 equal rows.
   - Clinical action button sizing refinements.
*/
.clinical-ga-combined .ga-range-box {
  margin-top: 3px !important;
  margin-left: 88px !important; /* align All radio with left edge of GA Weeks select box */
  gap: 13px !important;
  font-size: 12px !important;
}
.clinical-ga-combined .ga-range-box .control-label,
.clinical-ga-combined .ga-range-title,
.clinical-ga-combined .ga-range-label-title {
  display: none !important;
}
.clinical-ga-combined .ga-range-box label {
  font-size: 12px !important;
  font-weight: 400 !important;
  min-height: 18px !important;
  line-height: 1 !important;
}
.clinical-ga-combined .ga-range-box label:has(input:checked) {
  font-weight: 700 !important;
}

.clinical-current-user {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #001a80 !important;
}

.clinical-data-panel,
.data-panel.clinical-data-panel {
  height: 610px !important;
  min-height: 610px !important;
  max-height: 610px !important;
}
.clinical-data-title-row {
  flex: 0 0 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  margin-bottom: 3px !important;
}
.patient-table-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#patientTable {
  height: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}
#patientTable thead tr,
#patientTable thead th {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
}
#patientTable tbody tr:nth-child(-n+17) {
  display: table-row !important;
}
#patientTable tbody tr:nth-child(n+18) {
  display: none !important;
}

.clinical-data-button-row {
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
  margin-top: 6px !important;
}
.clinical-data-button-row button {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}
#storedRecordsButton,
#saveDataButton {
  height: 27px !important;
  min-height: 27px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}
#removePatientButton,
#clearButton {
  height: 21px !important;
  min-height: 21px !important;
  font-size: 8.5px !important;
  font-weight: 700 !important;
}

/* Release 0.3g: targeted layout corrections.
   - GA Range aligns under GA Weeks/Days: All begins at GA Weeks box; ≥35 weeks ends at Days box.
   - Patient Data frame uses original graph-aligned height and 17 equal data rows.
   - Age Calculator date/time controls use black text; date is narrower and time is wider.
*/
.clinical-ga-combined .ga-range-box {
  grid-column: 1 / -1 !important;
  margin-left: 88px !important;              /* left edge of GA Weeks select */
  width: 166px !important;                   /* right edge aligned to Days select */
  max-width: 166px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  padding: 0 !important;
}
.clinical-ga-combined .ga-range-box label {
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 400 !important;
  gap: 3px !important;
  min-height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.clinical-ga-combined .ga-range-box label:has(input:checked) { font-weight: 700 !important; }
.clinical-ga-combined .ga-range-box label:last-child { text-align: right !important; }

.age-calc-row {
  grid-template-columns: 58px 102px 68px !important;
  gap: 4px !important;
}
.age-calc-row-final {
  grid-template-columns: 58px 48px 38px 90px !important;
}
.age-calc-grid input,
.age-calc-grid input[type="date"],
.age-calc-grid input[type="time"] {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  opacity: 1 !important;
  font-size: 11px !important;
}
.age-calc-grid input[type="date"] { min-width: 0 !important; }
.age-calc-grid input[type="time"] { min-width: 0 !important; }

.clinical-left-column,
.left-column.clinical-left-column {
  align-self: start !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
}
.clinical-side-panel {
  height: 610px !important;
  min-height: 610px !important;
  max-height: 610px !important;
}
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 0 !important;
  height: 610px !important;
  min-height: 610px !important;
  max-height: 610px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
}
#patientTable tbody tr:nth-child(-n+17),
#patientTable tbody tr:nth-child(-n+17) td,
#patientTable tbody tr:nth-child(-n+17) input {
  height: 31px !important;
  min-height: 31px !important;
  max-height: 31px !important;
}
#patientTable tbody tr:nth-child(-n+17) td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.05 !important;
}
#patientTable tbody tr:nth-child(-n+17) input {
  height: 29px !important;
  min-height: 29px !important;
  max-height: 29px !important;
  line-height: 1.05 !important;
}


/* Release 0.3h: restore demo top-control proportions and refine clinical layout.
   Based on Object sizes.pdf: demo top object height was 1.15 in; new object was 1.01 in.
*/
.top-strip.excel-top-layout {
  padding: 6px !important;
  margin-bottom: 8px !important;
}
.top-strip .guideline-box,
.top-strip .risk-box,
.top-strip .legend-box,
.top-strip .light-box {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}
.clinical-ga-combined {
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  grid-template-rows: 38px 26px !important;
  padding: 5px 6px !important;
}
.clinical-ga-combined .ga-label { font-size: 15px !important; line-height: 1.1 !important; }
.clinical-ga-combined .ga-label span { font-size: 12px !important; }
.clinical-ga-combined .ga-cell {
  height: 34px !important;
  font-size: 22px !important;
  border-width: 3px !important;
}
.guideline-box .control-label,
.risk-box .control-label,
.legend-box .box-title {
  font-size: 16px !important;
  margin-bottom: 5px !important;
}
.guideline-box label,
.risk-box label {
  min-height: 22px !important;
  font-size: 12px !important;
}
.legend-item {
  margin: 5px 0 !important;
  font-size: 12px !important;
}
.risk-box .legend-line,
#riskLowLine,
#riskHighLine { left: 183px !important; }

/* GA range fits between GA Weeks and Days controls using shorter labels. */
.clinical-ga-combined .ga-range-box {
  grid-column: 1 / -1 !important;
  margin-left: 88px !important;
  width: 166px !important;
  max-width: 166px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 !important;
  gap: 0 !important;
  font-size: 13px !important;
  line-height: 1 !important;
}
.clinical-ga-combined .ga-range-box label {
  font-size: 12px !important;
  font-weight: 400 !important;
  min-height: 20px !important;
  line-height: 1 !important;
  gap: 3px !important;
  padding: 0 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
.clinical-ga-combined .ga-range-box input[type="radio"] {
  width: 14px !important;
  height: 14px !important;
}

/* Age calculator: same height as top strip, wider usable fields, no default-looking grey text. */
.age-calculator {
  top: -92px !important;
  padding: 7px 5px !important;
}
.age-calc-grid {
  grid-template-rows: 22px 22px 22px !important;
  gap: 2px !important;
}
.age-calc-row {
  grid-template-columns: 52px 88px 84px !important;
  gap: 5px !important;
  min-height: 22px !important;
}
.age-calc-row-final {
  grid-template-columns: 52px 48px 38px 84px !important;
  gap: 4px !important;
}
.age-calc-label {
  font-size: 12px !important;
  font-weight: 400 !important;
  text-align: right !important;
  line-height: 1 !important;
}
.age-calc-grid input,
.age-calc-grid input[type="date"],
.age-calc-grid input[type="time"] {
  height: 21px !important;
  min-height: 21px !important;
  max-height: 21px !important;
  font-size: 12px !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background: #fff !important;
  opacity: 1 !important;
  padding: 0 2px !important;
}
.age-calc-unit { font-size: 12px !important; font-weight: 400 !important; }
#createAgeRecordButton {
  font-size: 8.5px !important;
  padding: 0 1px !important;
  width: 100% !important;
  overflow: hidden !important;
}
.age-calc-message { top: 86px !important; }

/* Restore Patient Data to demo-like graph-frame alignment. The JS also enforces this. */
.clinical-side-panel {
  position: relative !important;
  height: 610px !important;
  min-height: 610px !important;
  max-height: 610px !important;
}
.clinical-data-panel,
.data-panel.clinical-data-panel {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
.clinical-data-button-row {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 616px !important;
  margin-top: 0 !important;
}


/* Release 0.3i: requested layout refinements. */
/* GA Range: move left, spread labels, and align final label to Days field right edge. */
.clinical-ga-combined .ga-range-box {
  margin-left: 56px !important;      /* All radio under the "k" in Weeks */
  width: 198px !important;           /* span to the right edge of Days select */
  max-width: 198px !important;
  justify-content: space-between !important;
  font-size: 12px !important;
}
.clinical-ga-combined .ga-range-box label {
  font-size: 13px !important;
  gap: 4px !important;
}
.clinical-ga-combined .ga-range-box label:last-child {
  text-align: right !important;
}

/* Legend label font should match the other radio-button labels in the top object. */
.legend-item,
.legend-item span {
  font-size: 13px !important;
  line-height: 1.15 !important;
}

/* Age Calculator: no apparent default time; narrower time fields; more internal spacing. */
.age-calculator {
  padding-left: 7px !important;
  padding-right: 7px !important;
}
.age-calc-row {
  grid-template-columns: 48px 94px 72px !important;
  gap: 7px !important;
}
.age-calc-row-final {
  grid-template-columns: 48px 54px 42px 82px !important;
  gap: 5px !important;
}
.age-calc-label {
  font-weight: 400 !important;
  text-align: right !important;
}
.age-calc-grid input,
.age-calc-grid input[type="date"],
.age-calc-grid input[type="text"] {
  padding-left: 4px !important;
  padding-right: 4px !important;
}
#dobTime,
#dataTime {
  width: 72px !important;
  max-width: 72px !important;
}
#createAgeRecordButton {
  font-size: 8px !important;
}

/* Patient Data: restore demo-style vertical position and height relative to graph plot frame. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 9px !important;
  bottom: auto !important;
  height: 552px !important;
  min-height: 552px !important;
  max-height: 552px !important;
}
.clinical-data-button-row {
  top: 567px !important;
}


/* Release 0.3j: targeted layout refinements after 0.3i.
   - GA Range spacing and alignment.
   - Top radio/legend row icon vertical centering.
   - Age Calculator label/date/time/button fit.
   - Patient Data 17-row fit inside graph-aligned frame.
*/
.clinical-ga-combined .ga-range-box {
  margin-left: 34px !important;
  gap: 20px !important;
  font-size: 12px !important;
}
.clinical-ga-combined .ga-range-box label {
  font-size: 12px !important;
  gap: 3px !important;
}

.guideline-box,
.risk-box,
.legend-box {
  display: grid !important;
  grid-template-rows: 18px 20px 20px !important;
  align-content: center !important;
  row-gap: 1px !important;
}
.guideline-box .control-label,
.risk-box .control-label,
.legend-box .box-title {
  align-self: end !important;
}
.guideline-box label,
.risk-box label,
.legend-item {
  display: flex !important;
  align-items: center !important;
  min-height: 20px !important;
  height: 20px !important;
  line-height: 1.05 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.guideline-box input[type="radio"],
.risk-box input[type="radio"],
.legend-dot {
  align-self: center !important;
  flex: 0 0 auto !important;
}
.legend-item { font-size: 12px !important; }

.age-calculator {
  padding-left: 7px !important;
  padding-right: 7px !important;
}
.age-calc-grid {
  grid-template-rows: 19px 19px 19px !important;
  gap: 2px !important;
}
.age-calc-row {
  grid-template-columns: 58px 98px 54px !important;
  column-gap: 6px !important;
}
.age-calc-row-final {
  grid-template-columns: 58px 46px 43px 68px !important;
  column-gap: 4px !important;
}
.age-calc-label {
  text-align: right !important;
  font-weight: 400 !important;
  padding-right: 2px !important;
}
.age-calc-grid input {
  padding-left: 4px !important;
  padding-right: 4px !important;
}
#dobTime,
#dataTime {
  width: 54px !important;
  max-width: 54px !important;
}
#createAgeRecordButton {
  width: 68px !important;
  max-width: 68px !important;
  min-width: 68px !important;
  box-sizing: border-box !important;
  font-size: 8px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.clinical-data-title-row {
  flex: 0 0 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin-bottom: 2px !important;
}
.patient-table-scroll {
  overflow: hidden !important;
}
.data-table th {
  height: 23px !important;
  min-height: 23px !important;
  max-height: 23px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.0 !important;
}
#patientTable tbody tr:nth-child(-n+17) td {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.0 !important;
}
#patientTable tbody tr:nth-child(-n+17) input {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.0 !important;
}

/* Release 0.3k: alignment correction based on Alignment.pdf.
   - Center top-row radio buttons / risk lines / legend dots on two shared row centerlines.
   - Preserve correct Patient Data frame alignment while reducing row height so 17 rows display.
   - Refine Age Calculator label/field/button alignment.
*/

/* Top-control two-row alignment */
.guideline-box,
.risk-box,
.legend-box {
  display: grid !important;
  grid-template-rows: 24px 22px 22px !important;
  align-content: center !important;
  row-gap: 1px !important;
  padding-top: 3px !important;
  padding-bottom: 3px !important;
}
.guideline-box .control-label,
.risk-box .control-label,
.legend-box .box-title {
  align-self: center !important;
  margin: 0 !important;
  line-height: 1.05 !important;
}
.guideline-box label,
.risk-box label,
.legend-item {
  display: flex !important;
  align-items: center !important;
  height: 25px !important;
  min-height: 25px !important;
  max-height: 25px !important;
  margin: 0 !important;
  line-height: 1.05 !important;
  box-sizing: border-box !important;
}
.guideline-box input[type="radio"],
.risk-box input[type="radio"],
.legend-dot {
  align-self: center !important;
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.risk-box .legend-line,
#riskLowLine,
#riskHighLine {
  top: 50% !important;
  transform: translateY(-50%) !important;
}
.legend-item,
.legend-item span {
  font-size: 12px !important;
}

/* GA Range spacing retained from 0.3j with compact labels. */
.clinical-ga-combined .ga-range-box {
  margin-left: 34px !important;
  gap: 20px !important;
  font-size: 12px !important;
}
.clinical-ga-combined .ga-range-box label {
  font-size: 12px !important;
  gap: 3px !important;
}

/* Age Calculator: label alignment and contained Create Record button. */
.age-calc-row {
  grid-template-columns: 62px 96px 54px !important;
  column-gap: 5px !important;
}
.age-calc-row-final {
  grid-template-columns: 62px 44px 40px 64px !important;
  column-gap: 4px !important;
}
.age-calc-label {
  text-align: right !important;
  font-weight: 400 !important;
  padding-right: 4px !important;
}
.age-calc-grid input {
  padding-left: 5px !important;
  padding-right: 5px !important;
}
#dobTime,
#dataTime {
  width: 54px !important;
  max-width: 54px !important;
}
#createAgeRecordButton {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  font-size: 7.8px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Patient Data: keep the correct graph-aligned box, but force 17 equal visible rows. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 9px !important;
  height: 552px !important;
  min-height: 552px !important;
  max-height: 552px !important;
  overflow: hidden !important;
}
.clinical-data-title-row {
  flex: 0 0 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin-bottom: 2px !important;
}
.patient-table-scroll {
  flex: 0 0 auto !important;
  height: 518px !important;
  min-height: 518px !important;
  max-height: 518px !important;
  overflow: hidden !important;
}
#patientTable {
  height: auto !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}
#patientTable thead tr,
#patientTable thead th {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.0 !important;
}
#patientTable tbody tr:nth-child(-n+17) {
  display: table-row !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
}
#patientTable tbody tr:nth-child(-n+17) td {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.0 !important;
}
#patientTable tbody tr:nth-child(-n+17) input {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.0 !important;
}
#patientTable tbody tr:nth-child(n+18) {
  display: none !important;
}

/* Release 0.3L: GA-range row-2 alignment, calculator/time parsing layout, and 17-row Patient Data fit. */

/* Include GA Range radio buttons on the same Row-2 centerline as Exchange / High risk / TcB. */
.clinical-ga-combined {
  position: relative !important;
}
.clinical-ga-combined .ga-range-box {
  position: absolute !important;
  left: 54px !important;
  right: auto !important;
  bottom: 3px !important;
  width: 202px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.clinical-ga-combined .ga-range-box label {
  height: 22px !important;
  min-height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13px !important;
  line-height: 1 !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}
.clinical-ga-combined .ga-range-box input[type="radio"] {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
  align-self: center !important;
}

/* 0.3N: Age Calculator New Record button label and narrower width. */
.age-calculator {
  padding: 8px 7px !important;
}
.age-calc-grid {
  grid-template-rows: 20px 20px 20px !important;
  row-gap: 4px !important;
  align-content: center !important;
}
.age-calc-row {
  grid-template-columns: 56px 92px 58px !important;
  column-gap: 5px !important;
  min-height: 20px !important;
  height: 20px !important;
  align-items: center !important;
}
.age-calc-row-final {
  grid-template-columns: 56px 42px 30px 72px !important;
  column-gap: 5px !important;
  min-height: 20px !important;
  height: 20px !important;
  align-items: center !important;
}
.age-calc-label {
  text-align: right !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  padding-right: 4px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.age-calc-grid input,
.age-calc-grid input[type="date"],
.age-calc-grid input[type="text"] {
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  font-size: 12px !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  background-color: #fff !important;
}
#dobDate,
#dataDate {
  width: 92px !important;
  max-width: 92px !important;
}
#dobTime,
#dataTime {
  width: 58px !important;
  max-width: 58px !important;
}
#calculatedAgeDays {
  width: 42px !important;
  max-width: 42px !important;
}
.age-calc-unit {
  font-size: 12px !important;
  line-height: 1 !important;
}
#createAgeRecordButton {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  font-size: 9.5px !important;
  line-height: 1 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Patient Data: keep the correct top/bottom frame alignment and reduce equal row height so 17 rows display. */
.patient-table-scroll {
  flex: 0 0 auto !important;
  height: 518px !important;
  min-height: 518px !important;
  max-height: 518px !important;
  overflow: hidden !important;
}
#patientTable thead tr,
#patientTable thead th {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  line-height: 1.0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#patientTable tbody tr:nth-child(-n+17) {
  display: table-row !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
}
#patientTable tbody tr:nth-child(-n+17) td {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  line-height: 1.0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#patientTable tbody tr:nth-child(-n+17) input {
  height: 23px !important;
  min-height: 23px !important;
  max-height: 23px !important;
  line-height: 1.0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
#patientTable tbody tr:nth-child(n+18) {
  display: none !important;
}

/* Release 0.3M: Age Calculator label alignment and date/time entry fixes. */
.age-calc-row,
.age-calc-row-final {
  grid-template-columns: 64px 88px 54px !important;
  column-gap: 7px !important;
}
.age-calc-row-final {
  grid-template-columns: 64px 38px 34px 92px !important;
}
.age-calc-label {
  text-align: right !important;
  justify-self: stretch !important;
  padding-right: 7px !important;
  display: block !important;
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
}
#dobDate,
#dataDate {
  width: 88px !important;
  max-width: 88px !important;
}
#dobTime,
#dataTime {
  width: 54px !important;
  max-width: 54px !important;
}
#calculatedAgeDays {
  width: 38px !important;
  max-width: 38px !important;
}
#createAgeRecordButton {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  font-size: 9.5px !important;
}

/* Release 0.3O: tighten Age Calculator final row so New Record stays inside frame. */
.age-calc-row,
.age-calc-row-final {
  column-gap: 6px !important;
}
.age-calc-row {
  grid-template-columns: 58px 82px 50px !important;
}
.age-calc-row-final {
  grid-template-columns: 58px 36px 28px 76px !important;
}
.age-calc-label {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  text-align: right !important;
  padding-right: 8px !important;
  justify-self: stretch !important;
}
#dobDate,
#dataDate {
  width: 82px !important;
  max-width: 82px !important;
}
#dobTime,
#dataTime {
  width: 50px !important;
  max-width: 50px !important;
}
#calculatedAgeDays {
  width: 36px !important;
  max-width: 36px !important;
}
.age-calc-unit {
  margin-left: -2px !important;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  text-align: left !important;
}
#createAgeRecordButton {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  justify-self: end !important;
  font-size: 9.4px !important;
  padding-left: 1px !important;
  padding-right: 1px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}


/* Release 0.3P: exact Age Calculator alignment per screenshot.
   - left labels right-aligned
   - Age value + (days) occupy the date-column width
   - New Record button starts at the same left edge as the time boxes above */
.age-calc-row,
.age-calc-row-final {
  grid-template-columns: 58px 82px 50px !important;
  column-gap: 6px !important;
  align-items: center !important;
}
.age-calc-label {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  text-align: right !important;
  padding-right: 8px !important;
  justify-self: stretch !important;
}
#dobDate,
#dataDate {
  width: 82px !important;
  max-width: 82px !important;
}
#dobTime,
#dataTime {
  width: 50px !important;
  max-width: 50px !important;
}
.age-calc-value-unit {
  width: 82px !important;
  max-width: 82px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
}
#calculatedAgeDays {
  width: 36px !important;
  max-width: 36px !important;
  flex: 0 0 36px !important;
}
.age-calc-unit {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin-left: 0 !important;
  text-align: right !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}
#createAgeRecordButton {
  grid-column: 3 !important;
  justify-self: start !important;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  font-size: 9.4px !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

/* Release 0.3Q: final Age Calculator label alignment and slightly taller controls.
   Force labels into a true right-aligned fixed-width column and increase box/button height modestly. */
.age-calc-row,
.age-calc-row-final {
  grid-template-columns: 62px 80px 52px !important;
  column-gap: 6px !important;
  align-items: center !important;
}
.age-calc-label {
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  box-sizing: border-box !important;
  padding-right: 8px !important;
  text-align: right !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  white-space: nowrap !important;
}
#dobDate,
#dataDate {
  width: 80px !important;
  max-width: 80px !important;
}
#dobTime,
#dataTime {
  width: 52px !important;
  max-width: 52px !important;
}
.age-calc-grid input,
.age-calc-grid input[type="date"],
.age-calc-grid input[type="text"] {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  line-height: 24px !important;
  box-sizing: border-box !important;
}
.age-calc-value-unit {
  width: 80px !important;
  max-width: 80px !important;
}
#calculatedAgeDays {
  width: 34px !important;
  max-width: 34px !important;
  flex: 0 0 34px !important;
}
.age-calc-unit {
  text-align: right !important;
  padding-right: 0 !important;
}
#createAgeRecordButton {
  grid-column: 3 !important;
  justify-self: start !important;
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  line-height: 1.05 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Release 0.3R: Age Calculator final spacing correction.
   - wider fixed label column so DOB/Data date/Age are visibly right-aligned
   - smaller gap between labels and boxes
   - reduced input/button height after 0.3Q was too tall
   - additional left margin for the Data date label within the frame */
.age-calc-row,
.age-calc-row-final {
  grid-template-columns: 86px 76px 48px !important;
  column-gap: 4px !important;
  align-items: center !important;
}
.age-calc-label {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  display: block !important;
  box-sizing: border-box !important;
  text-align: right !important;
  padding-right: 6px !important;
  white-space: nowrap !important;
  line-height: 22px !important;
}
#dobDate,
#dataDate {
  width: 76px !important;
  max-width: 76px !important;
}
#dobTime,
#dataTime {
  width: 48px !important;
  max-width: 48px !important;
}
.age-calc-grid input,
.age-calc-grid input[type="date"],
.age-calc-grid input[type="text"] {
  height: 25px !important;
  min-height: 25px !important;
  max-height: 25px !important;
  line-height: 22px !important;
  box-sizing: border-box !important;
}
.age-calc-value-unit {
  width: 76px !important;
  max-width: 76px !important;
}
#calculatedAgeDays {
  width: 32px !important;
  max-width: 32px !important;
  flex: 0 0 32px !important;
  height: 22px !important;
  line-height: 22px !important;
}
.age-calc-unit {
  margin-left: 3px !important;
  text-align: right !important;
  padding-right: 0 !important;
}
#createAgeRecordButton {
  grid-column: 3 !important;
  justify-self: start !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  line-height: 1.05 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  font-size: 9.1px !important;
}


/* Release 0.3S: Age Calculator vertical centering, wider fields, restored date pickers.
   - group shifted slightly upward in the calculator frame
   - labels moved left but remain right-aligned
   - date/time/age fields widened
   - browser date selector restored through date input type in index.html */
.age-calculator {
  padding: 4px 7px !important;
  overflow: visible !important;
}
.age-calc-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: 20px 20px 20px !important;
  row-gap: 4px !important;
  transform: translateY(-3px) !important;
}
.age-calc-row,
.age-calc-row-final {
  display: grid !important;
  grid-template-columns: 72px 84px 56px !important;
  column-gap: 5px !important;
  align-items: center !important;
  min-height: 20px !important;
}
.age-calc-label {
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  text-align: right !important;
  padding-right: 5px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  line-height: 20px !important;
}
#dobDate,
#dataDate {
  width: 84px !important;
  max-width: 84px !important;
}
#dobTime,
#dataTime {
  width: 56px !important;
  max-width: 56px !important;
}
.age-calc-grid input,
.age-calc-grid input[type="date"],
.age-calc-grid input[type="text"] {
  height: 25px !important;
  min-height: 25px !important;
  max-height: 25px !important;
  line-height: 20px !important;
  box-sizing: border-box !important;
  padding: 0 3px !important;
}
.age-calc-value-unit {
  width: 84px !important;
  max-width: 84px !important;
  display: flex !important;
  align-items: center !important;
}
#calculatedAgeDays {
  width: 42px !important;
  max-width: 42px !important;
  flex: 0 0 42px !important;
}
.age-calc-unit {
  margin-left: 5px !important;
  flex: 1 1 auto !important;
  text-align: right !important;
}
#createAgeRecordButton {
  grid-column: 3 !important;
  justify-self: start !important;
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  line-height: 1.05 !important;
  box-sizing: border-box !important;
  font-size: 9.1px !important;
  overflow: hidden !important;
}
.age-calc-message {
  top: 76px !important;
}

/* Release 0.3T: final Age Calculator geometry from 0.3S baseline.
   - group shifted slightly downward compared with 0.3S
   - fields shifted left by narrowing label column
   - HH:MM fields widened
   - date-to-time gap reduced
   - date inputs remain type=date in index.html to preserve calendar selector */
.age-calc-grid {
  transform: translateY(0px) !important;
}
.age-calc-row,
.age-calc-row-final {
  grid-template-columns: 64px 84px 68px !important;
  column-gap: 4px !important;
}
.age-calc-label {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  text-align: right !important;
  padding-right: 5px !important;
}
#dobDate,
#dataDate {
  width: 84px !important;
  max-width: 84px !important;
}
#dobTime,
#dataTime {
  width: 68px !important;
  max-width: 68px !important;
}
.age-calc-value-unit {
  width: 84px !important;
  max-width: 84px !important;
}
#createAgeRecordButton {
  grid-column: 3 !important;
  justify-self: start !important;
  width: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  font-size: 8.8px !important;
  overflow: hidden !important;
}

/* Release 0.3V: age-calculator validation message placement.
   Display messages in the gap between the Age Calculator frame and the Patient Data frame. */
.age-calc-message {
  position: absolute !important;
  left: 2px !important;
  right: 2px !important;
  top: 80px !important;
  min-height: 14px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  box-sizing: border-box !important;
  font-size: 9.2px !important;
  line-height: 1.15 !important;
  background: #ffffff !important;
  z-index: 20 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-align: left !important;
}

/* Release 0.3W: age-calculator validation placement and alignment refinement */
.age-calc-message {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: calc(100% + 8px) !important;
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  overflow: visible !important;
  z-index: 5 !important;
}


/* Release 0.3X: age-calculator date parsing/validation message refinement */
.age-calc-message {
  top: calc(100% + 2px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 92% !important;
  max-width: 230px !important;
  text-align: center !important;
  font-size: 10.5px !important;
  line-height: 1.1 !important;
  z-index: 8 !important;
}


/* Release 0.3Y: validation message one pixel lower than 0.3X. */
.age-calc-message {
  top: calc(100% + 3px) !important;
}

/* Release 0.3AA: validation message placement. */
.age-calc-message { top: 87px !important; }


/* Release 0.3AC: age-calculator message display and placement.
   Empty message is hidden by JavaScript so it cannot obscure Patient Data frame. */
.age-calc-message {
  top: calc(100% + 4px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 92% !important;
  max-width: 230px !important;
  text-align: center !important;
  z-index: 8 !important;
}

/* Release 0.3AH: final Age Calculator polish.
   Move the (days) label closer to the Age field and farther from the New Record button. */
.age-calc-value-unit {
  justify-content: flex-start !important;
  gap: 3px !important;
}
.age-calc-unit {
  margin-left: 2px !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  text-align: left !important;
}

/* Release 0.4A: basic clinical modal dialogs */
.clinical-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.28);
  box-sizing: border-box;
}
.clinical-modal-panel {
  width: min(520px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #fff;
  color: #000;
  border: 2px solid #777;
  padding: 16px 18px 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.30);
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}
.clinical-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
}
.clinical-form-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  font-size: 14px;
}
.clinical-form-row label {
  text-align: right;
  font-weight: 700;
}
.clinical-form-row input {
  height: 26px;
  font-size: 15px;
  padding: 2px 6px;
  box-sizing: border-box;
}
.clinical-modal-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
  font-size: 14px;
}
.clinical-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.clinical-modal-actions button:disabled,
.clinical-modal-panel button:disabled {
  background: #c8c8c8 !important;
  color: #777 !important;
  border-color: #aaa !important;
  cursor: default !important;
}

.clinical-modal-actions button,
.clinical-modal-panel > button {
  min-width: 96px;
  height: 28px;
  font-size: 13px;
  padding: 0 8px;
}
.clinical-modal-message {
  margin-top: 10px;
  min-height: 18px;
  text-align: center;
  font-size: 13px;
}
.clinical-modal-message.error { color: #b00000; font-weight: 700; }
.clinical-modal-message.success { color: #006400; font-weight: 700; }
.clinical-modal-note {
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
}
.clinical-save-alert {
  font-size: 16px;
  line-height: 1.5;
  margin: 10px 0 14px;
  text-align: center;
}
.clinical-team-results {
  margin-top: 12px;
  max-height: 260px;
  overflow: auto;
}
.clinical-team-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.clinical-team-table th,
.clinical-team-table td {
  border: 1px solid #aaa;
  padding: 4px 6px;
  text-align: center;
}
.clinical-team-table tbody tr { cursor: pointer; }
.clinical-team-table tbody tr:hover { background: #dfefff; }

/* Release 0.4B: Excel-style Save Data and Stored Records dialogs */
.clinical-modal-overlay {
  background: rgba(0,0,0,0.18) !important;
}
.clinical-modal-panel.clinical-save-panel {
  width: 430px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 18px 18px 16px !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  font-size: 14px !important;
}
.clinical-modal-panel.clinical-stored-panel {
  width: 300px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 18px 16px 16px !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  font-size: 14px !important;
}
.clinical-save-panel .save-dialog-panel-inner {
  display: block;
}
.clinical-save-panel .save-form-row {
  display: grid;
  grid-template-columns: 100px 112px auto;
  align-items: center;
  column-gap: 9px;
  margin: 10px 0;
}
.clinical-save-panel .save-form-row > label:first-child {
  text-align: right;
  font-weight: 700;
}
.clinical-save-panel .save-code-field {
  width: 104px;
  height: 30px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 2px 4px;
  box-sizing: border-box;
}
.clinical-save-panel .save-auto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
}
.clinical-save-panel .save-ga-box {
  grid-column: 2 / span 2;
  display: flex;
  align-items: center;
  gap: 5px;
}
.clinical-save-panel .save-ga-box strong {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 34px;
  height: 28px;
  border: 1px solid #aaa;
  background: #fff;
  font-size: 17px;
}
.clinical-save-panel .save-unit {
  font-size: 12px;
  margin-right: 4px;
}
.clinical-save-panel .save-risk-row {
  grid-template-columns: 100px auto auto;
  column-gap: 12px;
  font-size: 13px;
}
.clinical-save-panel .save-risk-row label:not(:first-child) {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  white-space: nowrap;
}
.clinical-save-panel .save-instructions {
  margin: 26px 8px 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
}
.clinical-save-panel .save-copy-link {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #001a80 !important;
  text-decoration: underline;
  margin: 0 0 18px;
  white-space: nowrap;
}
.clinical-save-panel .save-copy-link.disabled {
  color: #888 !important;
  pointer-events: none;
  text-decoration: none;
}
.clinical-save-panel .save-actions {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}
.clinical-save-panel .save-actions button {
  width: 104px;
  height: 34px;
  font-weight: 700;
}
.clinical-save-panel .save-actions button.secondary {
  height: 30px;
  color: #fff;
  background: #aaa;
  border-color: #888;
}
.clinical-save-panel .clinical-modal-message {
  min-height: 34px;
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.2;
}
.clinical-save-panel .clinical-modal-message.error {
  color: #d00000;
}
.clinical-stored-panel {
  width: 305px !important;
}
.clinical-stored-panel .stored-start-title {
  text-align: center;
  color: #001a80;
  font-weight: 700;
  margin: 8px 0 18px;
}
.clinical-stored-panel .clinical-form-row {
  grid-template-columns: 92px 96px;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
}
.clinical-stored-panel .clinical-form-row label {
  font-weight: 400;
}
.clinical-stored-panel .clinical-form-row input {
  width: 92px;
  height: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
}
.clinical-stored-panel .stored-actions {
  flex-direction: column;
  align-items: center;
  margin: 28px 0 0;
  gap: 12px;
}
.clinical-stored-panel .stored-actions button {
  width: 105px;
  height: 34px;
  font-weight: 700;
}
.clinical-stored-panel .stored-actions button.secondary {
  height: 30px;
  color: #fff;
  background: #aaa;
  border-color: #888;
}
.clinical-stored-panel .clinical-team-results {
  margin-top: 18px;
  max-height: 360px;
}
.clinical-stored-panel .stored-team-title {
  text-align: center;
  margin: 6px 0 10px;
  font-size: 14px;
}
.clinical-stored-panel .stored-team-note {
  text-align: center;
  color: #001a80;
  font-size: 11px;
  margin-bottom: 8px;
}
.clinical-stored-panel .clinical-team-table {
  font-size: 12px;
  background: #fff;
}
.clinical-stored-panel .clinical-team-table th {
  font-weight: 700;
  cursor: pointer;
  background: #f7f7f7;
}
.clinical-stored-panel .clinical-modal-message {
  min-height: 28px;
  font-size: 12px;
}


/* Release 0.4C: Save/Stored Records refinements */
.clinical-current-user {
  font-size: 18px;
  color: #001a80;
  font-weight: 700;
  white-space: nowrap;
}
.clinical-modal-panel.clinical-stored-team-panel {
  width: 620px !important;
  max-width: 680px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 18px 22px 22px !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  font-size: 12px !important;
}
.clinical-stored-team-panel .stored-team-search-row {
  display: grid;
  grid-template-columns: 110px 90px 155px 90px 100px;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}
.clinical-stored-team-panel .stored-team-search-row label,
.clinical-stored-team-panel .stored-team-or {
  font-size: 13px;
  text-align: right;
}
.clinical-stored-team-panel .stored-team-search-row input {
  width: 88px;
  height: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
}
.clinical-stored-team-panel #showStoredDataWideButton {
  width: 96px;
  height: 34px;
  font-weight: 700;
  color: #fff;
  background: #666;
  border: 1px solid #333;
  border-radius: 4px;
}
.clinical-stored-team-panel .stored-team-code-note {
  font-size: 11px;
  margin: 4px 0 14px;
}
.clinical-stored-team-panel .stored-team-table-wrap {
  width: 430px;
  max-height: 502px;
  margin: 0 auto;
  overflow-y: auto;
  border: 1px solid #aaa;
  background: #fff;
}
.clinical-stored-team-panel .stored-team-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}
.clinical-stored-team-panel .stored-team-table th,
.clinical-stored-team-panel .stored-team-table td {
  border: 1px solid #aaa;
  height: 30px;
  padding: 4px 8px;
  text-align: center;
}
.clinical-stored-team-panel .stored-team-table th {
  font-weight: 700;
  cursor: pointer;
  background: #f7f7f7;
  position: sticky;
  top: 0;
  z-index: 1;
}
.clinical-stored-team-panel .stored-team-note {
  color: #001a80;
  font-size: 11px;
  text-align: center;
  margin: 0 0 8px;
}
.clinical-stored-team-panel .clinical-modal-message {
  min-height: 22px;
  margin-top: 10px;
  font-size: 12px;
  text-align: center;
}

/* Release 0.4F: Rob test corrections */
.clinical-current-user {
  font-size: 18px !important;
  line-height: 22px !important;
  color: #001a80 !important;
  font-weight: 700 !important;
  text-align: left !important;
  white-space: nowrap !important;
  width: 100% !important;
}
.clinical-data-title-row .box-title[style*="display: none"] + .clinical-current-user {
  text-align: left !important;
}

.clinical-unsaved-alert {
  color: #d00 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.clinical-data-title-row .box-title .clinical-unsaved-alert {
  margin-left: 12px !important;
}
.clinical-current-user .clinical-unsaved-alert-inline {
  margin-left: 14px !important;
}
.clinical-data-title-row .box-title,
.clinical-current-user {
  overflow: hidden !important;
}
.clinical-unsaved-alert {
  white-space: nowrap !important;
}
.clinical-modal-panel.clinical-save-panel {
  width: 455px !important;
  padding: 22px 22px 18px !important;
}
.clinical-save-panel .save-form-row {
  grid-template-columns: 112px 124px auto !important;
  margin: 11px 0 !important;
}
.clinical-save-panel .save-ga-box {
  grid-column: 2 / span 2 !important;
  gap: 6px !important;
}
.clinical-save-panel .save-ga-select {
  width: 54px !important;
  height: 30px !important;
  text-align: center !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  background: #fff !important;
  border: 1px solid #aaa !important;
}
.clinical-save-panel .save-ga-select.ga-cell-disabled {
  background: #ddd !important;
  color: #666 !important;
}
.clinical-modal-panel.clinical-transient-panel {
  width: 170px !important;
  padding: 18px 22px !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
}
.clinical-transient-message {
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}


/* Release 0.4G: Rob test corrections */
/* Main GA Days field: when GA Weeks is >=35, retain the gray cell but hide the 0. */
#gaDays.ga-cell-disabled,
#gaDays:disabled.ga-cell-disabled {
  background: #e7e6e6 !important;
  color: #e7e6e6 !important;
  -webkit-text-fill-color: #e7e6e6 !important;
  opacity: 1 !important;
}
/* Save dialog GA days field uses the same hidden-zero convention when disabled. */
.clinical-save-panel .save-ga-select.ga-cell-disabled,
.clinical-save-panel .save-ga-select:disabled.ga-cell-disabled {
  background: #ddd !important;
  color: #ddd !important;
  -webkit-text-fill-color: #ddd !important;
  opacity: 1 !important;
}
/* Match saved-patient header to the existing Patient Data label size. */
.clinical-current-user {
  font-size: 14px !important;
  line-height: 17px !important;
  color: #001a80 !important;
  font-weight: 700 !important;
  text-align: left !important;
  white-space: nowrap !important;
  width: 100% !important;
}
/* Save dialog: closer to the Save worksheet mockup. */
.clinical-modal-panel.clinical-save-panel {
  width: 355px !important;
  padding: 22px 18px 16px !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  font-size: 12px !important;
}
.clinical-save-panel .save-form-row {
  grid-template-columns: 88px 104px auto !important;
  column-gap: 8px !important;
  margin: 10px 0 !important;
}
.clinical-save-panel .save-form-row > label:first-child {
  font-size: 12px !important;
  font-weight: 400 !important;
  text-align: right !important;
}
.clinical-save-panel .save-code-field {
  width: 100px !important;
  height: 31px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
.clinical-save-panel .save-auto {
  font-size: 12px !important;
  gap: 4px !important;
}
.clinical-save-panel .save-ga-box {
  grid-column: 2 / span 2 !important;
  gap: 5px !important;
}
.clinical-save-panel .save-ga-select {
  width: 50px !important;
  height: 31px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  text-align: center !important;
  background: #fff !important;
  border: 1px solid #aaa !important;
}
.clinical-save-panel .save-unit {
  font-size: 12px !important;
  margin-right: 5px !important;
}
.clinical-save-panel .save-risk-row {
  grid-template-columns: 88px auto auto !important;
  column-gap: 8px !important;
  font-size: 12px !important;
}
.clinical-save-panel .save-risk-row label:not(:first-child) {
  font-size: 12px !important;
  font-weight: 700 !important;
  gap: 3px !important;
}
.clinical-save-panel .save-instructions {
  margin: 28px 4px 6px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.clinical-save-panel .save-copy-link {
  font-size: 12px !important;
  margin: 0 0 18px !important;
  color: #001a80 !important;
  white-space: nowrap !important;
}
.clinical-save-panel .save-actions {
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
}
.clinical-save-panel .save-actions button {
  width: 105px !important;
  height: 34px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.clinical-save-panel .save-actions button.secondary {
  width: 82px !important;
  height: 30px !important;
}
.clinical-save-panel .clinical-modal-message {
  min-height: 30px !important;
  margin-top: 16px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: #d00000 !important;
  text-align: center !important;
}


/* Release 0.4H: Save dialog positioned and sized to match the Excel Save mockup. */
.clinical-modal-overlay-clinical-save-panel {
  background: transparent !important;
  align-items: flex-start !important;
  justify-content: flex-end !important;
  padding-top: 226px !important;
  padding-right: max(24px, calc((100vw - 1420px) / 2 + 26px)) !important;
  padding-left: 0 !important;
  padding-bottom: 0 !important;
}
.clinical-modal-overlay-clinical-save-panel .clinical-save-panel {
  width: 292px !important;
  min-height: 470px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 48px 16px 20px !important;
  background: #eeeeee !important;
  border: 2px solid #6b6b6b !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: #000 !important;
}
.clinical-save-panel .save-dialog-panel-inner {
  display: block !important;
  width: 100% !important;
}
.clinical-save-panel .save-form-row {
  display: grid !important;
  grid-template-columns: 82px 92px 1fr !important;
  align-items: center !important;
  column-gap: 6px !important;
  margin: 8px 0 !important;
}
.clinical-save-panel .save-form-row > label:first-child {
  text-align: right !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}
.clinical-save-panel .save-code-field {
  width: 92px !important;
  height: 29px !important;
  padding: 1px 3px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border: 1px solid #b9b9b9 !important;
  background: #fff !important;
}
.clinical-save-panel .save-auto {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}
.clinical-save-panel .save-auto input {
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
}
.clinical-save-panel .save-ga-box {
  grid-column: 2 / span 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.clinical-save-panel .save-ga-select {
  width: 46px !important;
  height: 29px !important;
  padding: 0 2px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border: 1px solid #b9b9b9 !important;
  background: #fff !important;
}
.clinical-save-panel .save-ga-select.ga-cell-disabled,
.clinical-save-panel .save-ga-select:disabled.ga-cell-disabled {
  background: #ddd !important;
  color: #ddd !important;
  -webkit-text-fill-color: #ddd !important;
  opacity: 1 !important;
}
.clinical-save-panel .save-unit {
  font-size: 11px !important;
  margin: 0 5px 0 0 !important;
  white-space: nowrap !important;
}
.clinical-save-panel .save-risk-row {
  grid-template-columns: 82px auto auto !important;
  column-gap: 8px !important;
  margin-top: 12px !important;
  font-size: 12px !important;
}
.clinical-save-panel .save-risk-row > label:first-child {
  font-size: 12px !important;
  white-space: nowrap !important;
}
.clinical-save-panel .save-risk-row label:not(:first-child) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.clinical-save-panel .save-risk-row input[type="radio"] {
  width: 13px !important;
  height: 13px !important;
  margin: 0 !important;
}
.clinical-save-panel .save-instructions {
  margin: 31px 8px 7px !important;
  text-align: center !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 400 !important;
}
.clinical-save-panel .save-copy-link {
  display: block !important;
  text-align: center !important;
  margin: 0 0 23px !important;
  color: #001a80 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  white-space: nowrap !important;
}
.clinical-save-panel .save-actions {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
}
.clinical-save-panel .save-actions button {
  width: 102px !important;
  height: 34px !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  border: 1px solid #555 !important;
  background: #777 !important;
  color: #fff !important;
}
.clinical-save-panel .save-actions button:disabled {
  background: #c8c8c8 !important;
  color: #777 !important;
  border-color: #aaa !important;
}
.clinical-save-panel .save-actions button.secondary {
  width: 76px !important;
  height: 30px !important;
  background: #b5b5b5 !important;
  color: #fff !important;
  border-color: #8a8a8a !important;
}
.clinical-save-panel .clinical-modal-message {
  min-height: 32px !important;
  margin: 22px 0 0 !important;
  text-align: center !important;
  color: #d00000 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}
@media (max-width: 900px) {
  .clinical-modal-overlay-clinical-save-panel {
    justify-content: center !important;
    padding: 90px 10px 0 !important;
  }
}


/* Release 0.4J: Anchor Save Data dialog over Patient Data list and refine Save dialog controls. */
#clinicalModalRoot {
  position: static !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel {
  position: absolute !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel .clinical-save-panel {
  position: absolute !important;
  left: 1120px !important;
  top: 222px !important;
  width: 245px !important;
  min-height: 354px !important;
  height: 354px !important;
  padding: 31px 12px 12px !important;
  margin: 0 !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 74px 86px 1fr !important;
  column-gap: 5px !important;
  margin: 7px 0 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row > label:first-child {
  font-size: 12px !important;
  font-weight: 400 !important;
  text-align: right !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-code-field {
  width: 82px !important;
  height: 28px !important;
  font-size: 15px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-auto {
  font-size: 11px !important;
  gap: 3px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-box {
  gap: 4px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-select {
  width: 52px !important;
  height: 28px !important;
  font-size: 15px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-unit {
  font-size: 11px !important;
  margin-right: 3px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 74px 86px 1fr !important;
  column-gap: 5px !important;
  margin-top: 9px !important;
}

.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2) {
  grid-column: 2 !important;
  justify-self: start !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  grid-column: 3 !important;
  justify-self: start !important;
}

.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child) {
  font-size: 11px !important;
  font-weight: 700 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions {
  margin: 24px 6px 5px !important;
  font-size: 11px !important;
  line-height: 1.18 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  font-size: 11px !important;
  margin: 0 0 16px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-actions {
  gap: 10px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-actions button {
  width: 92px !important;
  height: 30px !important;
  font-size: 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-actions button.secondary {
  width: 72px !important;
  height: 27px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .clinical-modal-message {
  min-height: 28px !important;
  margin: 15px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
}

/* Release 0.4K: Save dialog top-aligned with Patient Data box, widened, and right-aligned to Patient Data border. */
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel .clinical-save-panel {
  /* Patient Data right edge is approximately x=1365 in the worksheet coordinate system. */
  left: 1045px !important;
  top: 207px !important;
  width: 320px !important;
  min-height: 354px !important;
  height: 354px !important;
  padding: 31px 14px 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 92px 100px 1fr !important;
  column-gap: 7px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row > label:first-child {
  white-space: nowrap !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-code-field {
  width: 96px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-select {
  width: 58px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-box {
  gap: 5px !important;
  white-space: nowrap !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-auto {
  white-space: nowrap !important;
  justify-self: start !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 92px 100px 1fr !important;
  column-gap: 7px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  justify-self: start !important;
  white-space: nowrap !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  white-space: nowrap !important;
}


/* Release 0.4L: Save dialog alignment and spacing refinements. */
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel .clinical-save-panel {
  /* Align the top and right edges with the Patient Data frame; extend leftward into the graph. */
  left: 1025px !important;
  top: 216px !important;
  width: 340px !important;
  min-height: 354px !important;
  height: 354px !important;
  padding: 31px 17px 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 92px 102px 1fr !important;
  column-gap: 6px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 92px auto auto !important;
  column-gap: 8px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2) {
  justify-self: start !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  justify-self: start !important;
  margin-left: 2px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child) {
  gap: 2px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions {
  width: 270px !important;
  margin: 24px auto 5px !important;
  white-space: normal !important;
  text-align: center !important;
  line-height: 1.16 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  white-space: nowrap !important;
}


/* Release 0.4N: actual Save dialog anchoring and final Excel-layout refinements. */
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel {
  position: absolute !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel .clinical-save-panel {
  position: absolute !important;
  min-height: 354px !important;
  height: 354px !important;
  padding: 31px 18px 12px !important;
  margin: 0 !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 96px 104px 1fr !important;
  column-gap: 7px !important;
  margin: 7px 0 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row > label:first-child {
  font-size: 12px !important;
  font-weight: 400 !important;
  text-align: right !important;
  white-space: nowrap !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-code-field {
  width: 98px !important;
  height: 28px !important;
  font-size: 15px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-auto {
  font-size: 11px !important;
  gap: 3px !important;
  white-space: nowrap !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-box {
  gap: 4px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-select {
  width: 54px !important;
  height: 28px !important;
  font-size: 15px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 96px max-content max-content !important;
  column-gap: 10px !important;
  margin-top: 9px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2),
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  justify-self: start !important;
  margin-left: 0 !important;
  white-space: nowrap !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child) {
  font-size: 11px !important;
  font-weight: 700 !important;
  gap: 2px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions {
  width: auto !important;
  margin: 26px auto 13px !important;
  white-space: normal !important;
  text-align: center !important;
  font-size: 11px !important;
  line-height: 1.18 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  display: block !important;
  white-space: nowrap !important;
  font-size: 11px !important;
  margin: 0 0 16px !important;
}


/* Release 0.4O: final Save dialog layout overrides. */
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel .clinical-save-panel {
  min-height: 354px !important;
  height: 354px !important;
  padding: 31px 16px 12px !important;
  overflow: hidden !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 82px 104px 1fr !important;
  column-gap: 6px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 82px auto auto !important;
  column-gap: 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2),
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  grid-column: auto !important;
  justify-self: start !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-select {
  width: 58px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions {
  margin: 25px 8px 14px !important;
  text-align: center !important;
  white-space: normal !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  margin: 0 0 18px !important;
  display: block !important;
  text-align: center !important;
}


/* Release 0.4P: Save dialog placement and Excel-layout refinements. */
.worksheet-frame > #clinicalModalRoot {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 100000 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel .clinical-save-panel {
  position: absolute !important;
  width: 430px !important;
  min-height: 354px !important;
  height: 354px !important;
  padding: 31px 20px 12px !important;
  margin: 0 !important;
  transform: none !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  display: grid !important;
  grid-template-columns: 96px 112px 1fr !important;
  column-gap: 8px !important;
  align-items: center !important;
  margin: 7px 0 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row > label:first-child {
  font-size: 12px !important;
  font-weight: 400 !important;
  text-align: right !important;
  white-space: nowrap !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-code-field {
  width: 104px !important;
  height: 28px !important;
  font-size: 15px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-auto {
  justify-self: start !important;
  margin-left: 0 !important;
  gap: 3px !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-box {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-select {
  width: 60px !important;
  height: 28px !important;
  font-size: 15px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 96px max-content max-content !important;
  column-gap: 5px !important;
  margin-top: 9px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child) {
  justify-self: start !important;
  margin-left: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  gap: 2px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions {
  margin: 26px 8px 20px !important;
  text-align: center !important;
  white-space: normal !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  display: block !important;
  margin: 0 0 16px !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 11px !important;
}


/* Release 0.4Q: Save dialog fine-tuning from 0.4P screenshot. */
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel .clinical-save-panel {
  padding: 31px 20px 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 118px 112px 1fr !important;
  column-gap: 8px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row > label:first-child {
  font-size: 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-auto {
  font-size: 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-unit {
  font-size: 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 118px max-content max-content !important;
  column-gap: 4px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child) {
  font-size: 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions {
  font-size: 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  font-size: 12px !important;
}

/* Release 0.4R: Save dialog fine-tuning per 2026-06-29 feedback. */
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 128px 112px 1fr !important;
  column-gap: 8px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-code-field {
  width: 108px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-select {
  width: 60px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-auto,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-unit,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child),
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  font-size: 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 128px max-content max-content !important;
  column-gap: 14px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child) {
  gap: 4px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions {
  line-height: 1.2 !important;
}

/* Release 0.4S: re-center Save dialog and final dialog typography/field positioning. */
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel .clinical-save-panel {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  width: 430px !important;
  height: 354px !important;
  min-height: 354px !important;
  margin: 0 !important;
  transform: none !important;
  pointer-events: auto !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 136px 112px 1fr !important;
  column-gap: 8px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 136px max-content max-content !important;
  column-gap: 18px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-auto,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-unit,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child),
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  font-size: 12px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child) {
  gap: 5px !important;
}

/* Release 0.4U: existing Team Code edit/previous workflow and patient header separator. */


/* Release 0.4X targeted workflow/layout changes. */
#patientTable tbody td,
#patientTable tbody input {
  font-size: 11px !important;
}
.clinical-stored-panel .stored-actions button,
.clinical-stored-team-panel #showStoredDataWideButton {
  width: 126px !important;
  min-width: 126px !important;
  white-space: nowrap !important;
}
.clinical-delete-panel {
  width: 430px !important;
  min-height: 0 !important;
  padding: 26px 34px 22px !important;
  text-align: center !important;
}
.delete-dialog-message {
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  margin: 0 0 22px !important;
}
.delete-actions {
  justify-content: center !important;
  gap: 18px !important;
}
.delete-actions button {
  min-width: 128px !important;
  height: 32px !important;
  font-weight: 700 !important;
}
.delete-actions button.secondary {
  min-width: 86px !important;
}

/* Release 0.4Y: Save validation, risk alignment, and standardized Stored/Delete dialogs. */
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 118px max-content max-content !important;
  column-gap: 18px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2),
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  justify-self: start !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .clinical-modal-message.error {
  color: #d00000 !important;
  font-weight: 700 !important;
}

.clinical-modal-overlay-clinical-stored-panel,
.clinical-modal-overlay-clinical-delete-panel,
.clinical-modal-overlay-clinical-delete-panel-clinical-delete-final-panel {
  background: transparent !important;
  align-items: center !important;
  justify-content: center !important;
}
.clinical-modal-panel.clinical-stored-panel,
.clinical-modal-panel.clinical-delete-panel {
  width: 430px !important;
  height: 260px !important;
  min-height: 260px !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 28px 34px 22px !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #000 !important;
  text-align: center !important;
}
.clinical-stored-panel .stored-start-title {
  display: none !important;
}
.clinical-stored-panel .clinical-form-row {
  display: grid !important;
  grid-template-columns: 142px 112px !important;
  justify-content: center !important;
  align-items: center !important;
  column-gap: 8px !important;
  margin: 9px 0 !important;
  font-size: 12px !important;
}
.clinical-stored-panel .clinical-form-row label {
  text-align: right !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  white-space: nowrap !important;
}
.clinical-stored-panel .clinical-form-row input {
  width: 112px !important;
  height: 30px !important;
  padding: 1px 4px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  border: 1px solid #b9b9b9 !important;
  background: #fff !important;
}
.clinical-stored-panel .stored-actions,
.clinical-delete-panel .delete-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  margin: 30px 0 0 !important;
}
.clinical-stored-panel .stored-actions button,
.clinical-delete-panel .delete-actions button {
  width: 150px !important;
  min-width: 150px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 1px solid #777 !important;
  background: #7f7f7f !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.clinical-stored-panel .stored-actions button.secondary,
.clinical-delete-panel .delete-actions button.secondary {
  width: 82px !important;
  min-width: 82px !important;
  height: 30px !important;
  background: #d9d9d9 !important;
  color: #000 !important;
  border-color: #d0d0d0 !important;
  font-weight: 400 !important;
}
.clinical-stored-panel .clinical-modal-message,
.clinical-delete-panel .clinical-modal-message {
  min-height: 22px !important;
  margin-top: 8px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.clinical-delete-panel .delete-dialog-message {
  margin: 18px 0 32px !important;
  font-size: 21px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-align: center !important;
}
.clinical-delete-panel .delete-dialog-message br:first-of-type {
  display: block !important;
}
.clinical-delete-panel .delete-actions {
  margin-top: 0 !important;
}
.clinical-delete-final-panel {
  background: #ff0000 !important;
  color: #fff !important;
}
.clinical-delete-final-panel .delete-dialog-message {
  color: #fff !important;
}
.clinical-delete-final-panel .clinical-modal-message {
  color: #fff !important;
}
.clinical-delete-final-panel .delete-actions button {
  width: 170px !important;
  min-width: 170px !important;
  background: #7f7f7f !important;
  color: #fff !important;
  border-color: #aaa !important;
}
.clinical-delete-final-panel .delete-actions button.secondary {
  width: 82px !important;
  min-width: 82px !important;
  color: #000 !important;
  background: #d9d9d9 !important;
}

/* Release 0.4Z: final dialog centering and dialog-style consistency. */
body > #clinicalModalRoot .clinical-modal-overlay,
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: transparent !important;
}

.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel .clinical-save-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-save-panel {
  width: 430px !important;
  height: 354px !important;
  min-height: 354px !important;
  max-height: none !important;
  padding: 50px 44px 18px !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-actions button,
.clinical-stored-panel .stored-actions button,
.clinical-delete-panel .delete-actions button {
  width: 150px !important;
  min-width: 150px !important;
  height: 34px !important;
  border-radius: 4px !important;
  border: 1px solid #777 !important;
  background: #7f7f7f !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-actions button.secondary,
.clinical-stored-panel .stored-actions button.secondary,
.clinical-delete-panel .delete-actions button.secondary {
  width: 82px !important;
  min-width: 82px !important;
  height: 30px !important;
  background: #d9d9d9 !important;
  color: #000 !important;
  border-color: #c7c7c7 !important;
  font-weight: 400 !important;
}

.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 130px 82px 138px !important;
  column-gap: 8px !important;
  margin-top: 9px !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2) {
  margin-left: 0 !important;
  justify-self: start !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  margin-left: 0 !important;
  justify-self: start !important;
}
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child) {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.clinical-modal-panel.clinical-stored-panel,
.clinical-modal-panel.clinical-delete-panel {
  width: 430px !important;
  height: 250px !important;
  min-height: 250px !important;
  max-height: none !important;
  padding: 42px 44px 18px !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.clinical-stored-panel .clinical-form-row {
  grid-template-columns: 126px 112px !important;
  column-gap: 10px !important;
  justify-content: center !important;
  margin: 10px 0 !important;
}
.clinical-stored-panel .clinical-form-row label {
  font-size: 14px !important;
  font-weight: 400 !important;
  text-align: right !important;
}
.clinical-stored-panel .clinical-form-row input {
  width: 112px !important;
  height: 30px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  text-align: center !important;
}
.clinical-stored-panel .stored-actions,
.clinical-delete-panel .delete-actions {
  margin-top: 30px !important;
  gap: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.clinical-stored-panel .stored-actions button#showStoredDataButton {
  width: 150px !important;
  min-width: 150px !important;
}

.clinical-delete-panel .delete-dialog-message {
  margin: 18px 0 34px !important;
  text-align: center !important;
  line-height: 1.25 !important;
}
.clinical-delete-panel .delete-dialog-head {
  font-size: 21px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
.clinical-delete-panel .delete-dialog-sub {
  margin-top: 22px !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}
.clinical-delete-panel .delete-actions {
  margin-top: 0 !important;
}
.clinical-delete-final-panel {
  background: #ff0000 !important;
  color: #fff !important;
}
.clinical-delete-final-panel .delete-dialog-message,
.clinical-delete-final-panel .delete-dialog-head,
.clinical-delete-final-panel .delete-dialog-sub,
.clinical-delete-final-panel .clinical-modal-message {
  color: #fff !important;
}
.clinical-delete-final-panel .delete-actions button {
  width: 170px !important;
  min-width: 170px !important;
  background: #7f7f7f !important;
  color: #fff !important;
  border-color: #aaa !important;
}
.clinical-delete-final-panel .delete-actions button.secondary {
  width: 82px !important;
  min-width: 82px !important;
  color: #000 !important;
  background: #d9d9d9 !important;
}

/* Release 0.4AA: corrected centered modal system and term curve refinements. */
body > #clinicalModalRoot {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
}
body > #clinicalModalRoot .clinical-modal-overlay,
body > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel,
body > #clinicalModalRoot .clinical-modal-overlay-clinical-stored-panel,
body > #clinicalModalRoot .clinical-modal-overlay-clinical-delete-panel,
body > #clinicalModalRoot .clinical-modal-overlay-clinical-delete-panel-clinical-delete-final-panel {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: auto !important;
}
body > #clinicalModalRoot .clinical-modal-panel {
  position: static !important;
  margin: 0 !important;
  transform: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  color: #000 !important;
}
body > #clinicalModalRoot .clinical-modal-panel.clinical-save-panel {
  width: 430px !important;
  height: 392px !important;
  min-height: 392px !important;
  max-height: none !important;
  padding: 50px 44px 18px !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 130px 112px 1fr !important;
  column-gap: 8px !important;
  margin: 8px 0 !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 130px 82px 138px !important;
  column-gap: 8px !important;
  margin-top: 10px !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2),
body > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  justify-self: start !important;
  margin-left: 0 !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-actions button,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions button,
body > #clinicalModalRoot .clinical-delete-panel .delete-actions button {
  width: 150px !important;
  min-width: 150px !important;
  height: 34px !important;
  border-radius: 4px !important;
  border: 1px solid #777 !important;
  background: #7f7f7f !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-actions button.secondary,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions button.secondary,
body > #clinicalModalRoot .clinical-delete-panel .delete-actions button.secondary {
  width: 82px !important;
  min-width: 82px !important;
  height: 30px !important;
  background: #d9d9d9 !important;
  color: #000 !important;
  border-color: #c7c7c7 !important;
  font-weight: 400 !important;
}
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel {
  width: 430px !important;
  height: 250px !important;
  min-height: 250px !important;
  max-height: none !important;
  padding: 42px 44px 18px !important;
}
body > #clinicalModalRoot .clinical-delete-panel .delete-dialog-message {
  margin: 16px 0 26px !important;
  text-align: center !important;
  line-height: 1.25 !important;
}
body > #clinicalModalRoot .clinical-delete-panel .delete-dialog-head {
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}
body > #clinicalModalRoot .clinical-delete-panel .delete-dialog-sub {
  margin-top: 18px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}
body > #clinicalModalRoot .clinical-delete-final-panel {
  background: #ff0000 !important;
  color: #fff !important;
}
body > #clinicalModalRoot .clinical-delete-final-panel .delete-dialog-message,
body > #clinicalModalRoot .clinical-delete-final-panel .delete-dialog-head,
body > #clinicalModalRoot .clinical-delete-final-panel .delete-dialog-sub,
body > #clinicalModalRoot .clinical-delete-final-panel .clinical-modal-message {
  color: #fff !important;
}
body > #clinicalModalRoot .clinical-delete-final-panel .delete-actions button {
  width: 170px !important;
  min-width: 170px !important;
}
body > #clinicalModalRoot .clinical-delete-final-panel .delete-actions button.secondary {
  width: 82px !important;
  min-width: 82px !important;
}

/* Release 0.4AB: modal centering/stability, Save dialog refinements, 5/6-character codes. */
#clinicalModalRoot {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
}
#clinicalModalRoot .clinical-modal-overlay,
#clinicalModalRoot .clinical-modal-overlay-clinical-save-panel,
#clinicalModalRoot .clinical-modal-overlay-clinical-stored-panel,
#clinicalModalRoot .clinical-modal-overlay-clinical-delete-panel,
#clinicalModalRoot .clinical-modal-overlay-clinical-delete-panel-clinical-delete-final-panel {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: auto !important;
}
#clinicalModalRoot .clinical-modal-panel {
  position: static !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}
#clinicalModalRoot .clinical-modal-panel.clinical-save-panel {
  width: 440px !important;
  height: 430px !important;
  min-height: 430px !important;
  max-height: none !important;
  padding: 52px 36px 20px !important;
}
#clinicalModalRoot .clinical-save-panel .save-form-row {
  display: grid !important;
  grid-template-columns: 120px 128px max-content !important;
  column-gap: 5px !important;
  align-items: center !important;
  margin: 8px 0 !important;
}
#clinicalModalRoot .clinical-save-panel .save-form-row > label:first-child {
  font-size: 12px !important;
  font-weight: 400 !important;
  text-align: right !important;
  white-space: nowrap !important;
}
#clinicalModalRoot .clinical-save-panel .save-code-field {
  width: 124px !important;
  height: 30px !important;
  text-align: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
}
#clinicalModalRoot .clinical-save-panel .save-auto {
  justify-self: start !important;
  margin-left: 0 !important;
  gap: 3px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}
#clinicalModalRoot .clinical-save-panel .save-ga-box {
  grid-column: 2 / span 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
#clinicalModalRoot .clinical-save-panel .save-ga-select {
  height: 30px !important;
  font-size: 16px !important;
}
#clinicalModalRoot .clinical-save-panel #saveGaWeeks {
  width: 72px !important;
}
#clinicalModalRoot .clinical-save-panel #saveGaDays {
  width: 58px !important;
}
#clinicalModalRoot .clinical-save-panel .save-unit {
  font-size: 12px !important;
}
#clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 120px 82px max-content !important;
  column-gap: 3px !important;
  margin-top: 10px !important;
}
#clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2),
#clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  justify-self: start !important;
  margin-left: 0 !important;
}
#clinicalModalRoot .clinical-save-panel .save-risk-row label:not(:first-child) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
#clinicalModalRoot .clinical-save-panel .save-instructions {
  margin: 31px 8px 16px !important;
  text-align: center !important;
  white-space: normal !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
}
#clinicalModalRoot .clinical-save-panel .save-copy-link {
  display: block !important;
  margin: 0 0 18px !important;
  text-align: center !important;
  white-space: nowrap !important;
  font-size: 12px !important;
}
#clinicalModalRoot .clinical-save-panel .save-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
}
#clinicalModalRoot .clinical-save-panel .clinical-modal-message {
  min-height: 24px !important;
  margin-top: 14px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
#clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel {
  width: 430px !important;
  height: 250px !important;
  min-height: 250px !important;
  max-height: none !important;
  padding: 42px 44px 18px !important;
}
#clinicalModalRoot .clinical-delete-panel .delete-dialog-message {
  margin: 6px 0 24px !important;
  text-align: center !important;
  line-height: 1.22 !important;
}
#clinicalModalRoot .clinical-delete-panel .delete-dialog-head {
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  white-space: normal !important;
}
#clinicalModalRoot .clinical-delete-panel .delete-dialog-sub {
  margin-top: 16px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.22 !important;
}
#clinicalModalRoot .clinical-delete-panel .delete-actions {
  margin-top: 0 !important;
}
#clinicalModalRoot .clinical-delete-final-panel {
  background: #ff0000 !important;
  color: #fff !important;
}
#clinicalModalRoot .clinical-delete-final-panel .delete-dialog-message,
#clinicalModalRoot .clinical-delete-final-panel .delete-dialog-head,
#clinicalModalRoot .clinical-delete-final-panel .delete-dialog-sub,
#clinicalModalRoot .clinical-delete-final-panel .clinical-modal-message {
  color: #fff !important;
}
#clinicalModalRoot .clinical-delete-final-panel .delete-actions button {
  width: 170px !important;
  min-width: 170px !important;
}
#clinicalModalRoot .clinical-delete-final-panel .delete-actions button.secondary {
  width: 82px !important;
  min-width: 82px !important;
}


/* Release 0.4AC: dialog vertical position and Save Data control spacing fixes. */
body > #clinicalModalRoot,
.worksheet-frame > #clinicalModalRoot {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 100000 !important;
}
body > #clinicalModalRoot .clinical-modal-overlay,
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay,
body > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-overlay-clinical-save-panel,
body > #clinicalModalRoot .clinical-modal-overlay-clinical-stored-panel,
body > #clinicalModalRoot .clinical-modal-overlay-clinical-delete-panel,
body > #clinicalModalRoot .clinical-modal-overlay-clinical-delete-panel-clinical-delete-final-panel {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
}
body > #clinicalModalRoot .clinical-modal-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel,
body > #clinicalModalRoot .clinical-save-panel,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel,
body > #clinicalModalRoot .clinical-stored-panel,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel,
body > #clinicalModalRoot .clinical-delete-panel,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: translateY(-52px) !important;
  margin: 0 !important;
  pointer-events: auto !important;
}
body > #clinicalModalRoot .clinical-modal-panel.clinical-save-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-save-panel {
  width: 430px !important;
  height: 372px !important;
  min-height: 372px !important;
  padding: 48px 38px 18px !important;
  overflow: hidden !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-form-row,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  grid-template-columns: 126px 106px 1fr !important;
  column-gap: 7px !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-code-field,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-code-field {
  width: 104px !important;
  max-width: 104px !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-auto,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-auto {
  margin-left: 2px !important;
  justify-self: start !important;
  white-space: nowrap !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-ga-select,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-ga-select {
  width: 64px !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-risk-row,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  grid-template-columns: 126px max-content max-content !important;
  column-gap: 8px !important;
}
body > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2),
body > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3),
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(2),
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row label:nth-child(3) {
  margin-left: 0 !important;
  justify-self: start !important;
}
body > #clinicalModalRoot .clinical-stored-panel,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel,
body > #clinicalModalRoot .clinical-delete-panel,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel {
  transform: translateY(-52px) !important;
}

/* Release 0.4AD: fixed viewport modal centering for all clinical dialogs. */
#clinicalModalRoot {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
}
#clinicalModalRoot .clinical-modal-overlay,
#clinicalModalRoot .clinical-modal-overlay-clinical-save-panel,
#clinicalModalRoot .clinical-modal-overlay-clinical-stored-panel,
#clinicalModalRoot .clinical-modal-overlay-clinical-delete-panel,
#clinicalModalRoot .clinical-modal-overlay-clinical-delete-panel-clinical-delete-final-panel {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  pointer-events: auto !important;
}
#clinicalModalRoot .clinical-modal-panel,
#clinicalModalRoot .clinical-save-panel,
#clinicalModalRoot .clinical-stored-panel,
#clinicalModalRoot .clinical-delete-panel {
  position: fixed !important;
  left: 50vw !important;
  top: 50vh !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: auto !important;
}

/* Release 0.4AF: internal dialog spacing refinement after 0.4AE. */
#clinicalModalRoot .clinical-modal-panel.clinical-save-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-save-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-save-panel {
  height: 392px !important;
  min-height: 392px !important;
  padding: 24px 38px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

#clinicalModalRoot .clinical-save-panel .save-dialog-panel-inner,
body > #clinicalModalRoot .clinical-save-panel .save-dialog-panel-inner,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-dialog-panel-inner {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

#clinicalModalRoot .clinical-save-panel .save-form-row,
body > #clinicalModalRoot .clinical-save-panel .save-form-row,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-form-row {
  margin: 7px 0 !important;
}

#clinicalModalRoot .clinical-save-panel .save-risk-row,
body > #clinicalModalRoot .clinical-save-panel .save-risk-row,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-risk-row {
  margin-top: 8px !important;
  column-gap: 6px !important;
}

#clinicalModalRoot .clinical-save-panel .save-instructions,
body > #clinicalModalRoot .clinical-save-panel .save-instructions,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-instructions {
  margin: 24px 8px 15px !important;
}

#clinicalModalRoot .clinical-save-panel .save-copy-link,
body > #clinicalModalRoot .clinical-save-panel .save-copy-link,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-copy-link {
  margin: 0 0 14px !important;
}

#clinicalModalRoot .clinical-save-panel .save-actions,
body > #clinicalModalRoot .clinical-save-panel .save-actions,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-actions {
  margin: 0 !important;
  gap: 10px !important;
}

#clinicalModalRoot .clinical-save-panel .clinical-modal-message,
body > #clinicalModalRoot .clinical-save-panel .clinical-modal-message,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .clinical-modal-message {
  min-height: 18px !important;
  margin-top: 8px !important;
}

#clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel {
  height: 250px !important;
  min-height: 250px !important;
  padding: 24px 44px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row,
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row {
  margin: 8px 0 !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-actions,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions {
  margin-top: 22px !important;
  gap: 10px !important;
}

#clinicalModalRoot .clinical-delete-panel .delete-dialog-message,
body > #clinicalModalRoot .clinical-delete-panel .delete-dialog-message,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel .delete-dialog-message {
  margin: 10px 0 22px !important;
}

#clinicalModalRoot .clinical-delete-panel .delete-dialog-sub,
body > #clinicalModalRoot .clinical-delete-panel .delete-dialog-sub,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel .delete-dialog-sub {
  margin-top: 14px !important;
}

#clinicalModalRoot .clinical-delete-panel .delete-actions,
body > #clinicalModalRoot .clinical-delete-panel .delete-actions,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel .delete-actions {
  margin-top: 0 !important;
  gap: 10px !important;
}

/* Release 0.4AG: move Stored Records validation message up so it is fully visible. */
#clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel {
  position: fixed !important;
  overflow: hidden !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-modal-message,
body > #clinicalModalRoot .clinical-stored-panel .clinical-modal-message,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-modal-message {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 6px !important;
  margin: 0 !important;
  min-height: 18px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  font-size: 12px !important;
  z-index: 2 !important;
  white-space: normal !important;
}


/* Release 0.4AK: validation button state, square buttons, and keyboard polish. */
#clinicalModalRoot .clinical-modal-actions button,
#clinicalModalRoot .clinical-save-panel .save-actions button,
#clinicalModalRoot .clinical-stored-panel .stored-actions button,
#clinicalModalRoot .clinical-delete-panel .delete-actions button,
body > #clinicalModalRoot .clinical-modal-actions button,
body > #clinicalModalRoot .clinical-save-panel .save-actions button,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions button,
body > #clinicalModalRoot .clinical-delete-panel .delete-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-modal-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel .delete-actions button {
  border-radius: 0 !important;
}

#clinicalModalRoot .clinical-modal-actions button:disabled,
#clinicalModalRoot .clinical-save-panel .save-actions button:disabled,
#clinicalModalRoot .clinical-stored-panel .stored-actions button:disabled,
#clinicalModalRoot .clinical-delete-panel .delete-actions button:disabled,
body > #clinicalModalRoot .clinical-modal-actions button:disabled,
body > #clinicalModalRoot .clinical-save-panel .save-actions button:disabled,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions button:disabled,
body > #clinicalModalRoot .clinical-delete-panel .delete-actions button:disabled,
.worksheet-frame > #clinicalModalRoot .clinical-modal-actions button:disabled,
.worksheet-frame > #clinicalModalRoot .clinical-save-panel .save-actions button:disabled,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions button:disabled,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel .delete-actions button:disabled {
  background: #d9d9d9 !important;
  color: #777 !important;
  border-color: #bdbdbd !important;
  cursor: default !important;
  opacity: 1 !important;
}


/* 0.4AL: Keep Delete Patient first-confirmation heading on one line. */
#clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head,
body > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head {
  white-space: nowrap !important;
  font-size: 15px !important;
}


/* 0.4AM: Force Delete Patient first-confirmation heading onto one line. */
#clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-message,
body > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-message,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-message {
  width: 100% !important;
  max-width: none !important;
}
#clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head-singleline,
body > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head-singleline,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head-singleline {
  display: block !important;
  width: max-content !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  white-space: nowrap !important;
  overflow: visible !important;
  font-size: 15px !important;
  line-height: 1.22 !important;
}


/* 0.4AS: Delete Patient first-confirmation heading uses full panel width, removing text-box margins. */
#clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-message,
body > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-message,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-message {
  width: 100% !important;
  max-width: none !important;
  overflow: visible !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
#clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head,
#clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head-singleline,
body > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head,
body > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head-singleline,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel:not(.clinical-delete-final-panel) .delete-dialog-head-singleline {
  display: block !important;
  width: calc(100% + 88px) !important;
  max-width: none !important;
  margin-left: -44px !important;
  margin-right: -44px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-align: center !important;
}


/* Release 0.4AL / Build D: Stored Patient dialog matched to supplied StoredPatient-dialog.pdf.
   Target geometry: compact 430 x 275 dialog, centered labels/entry boxes, original-sized buttons. */
#clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel {
  width: 430px !important;
  height: 275px !important;
  min-height: 275px !important;
  max-height: 275px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #eeeeee !important;
  border: 2px solid #666666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  position: fixed !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #000000 !important;
  text-align: left !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-start-title,
body > #clinicalModalRoot .clinical-stored-panel .stored-start-title,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-start-title {
  display: block !important;
  position: absolute !important;
  top: 31px !important;
  left: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: #000000 !important;
  white-space: nowrap !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row,
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row {
  position: absolute !important;
  left: 0 !important;
  width: 100% !important;
  display: grid !important;
  grid-template-columns: 151px 115px !important;
  column-gap: 8px !important;
  justify-content: start !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 35px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(2),
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(2),
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(2) {
  top: 62px !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(3),
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(3),
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(3) {
  top: 112px !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row label,
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row label,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row label {
  display: block !important;
  text-align: right !important;
  justify-self: stretch !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
  color: #000000 !important;
  white-space: nowrap !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row input,
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row input,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row input {
  display: block !important;
  justify-self: start !important;
  width: 115px !important;
  min-width: 115px !important;
  max-width: 115px !important;
  height: 35px !important;
  min-height: 35px !important;
  max-height: 35px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 1px 4px !important;
  border: 1px solid #b9b9b9 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  text-align: center !important;
  font-size: 18px !important;
  line-height: 31px !important;
  font-weight: 700 !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-actions,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions {
  position: absolute !important;
  top: 165px !important;
  left: 0 !important;
  width: 100% !important;
  height: 75px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-actions button,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions button {
  display: block !important;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
  border: 1px solid #bdbdbd !important;
  background: #d9d9d9 !important;
  color: #777777 !important;
  font-size: 14px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
  opacity: 1 !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-actions button:not(:disabled),
body > #clinicalModalRoot .clinical-stored-panel .stored-actions button:not(:disabled),
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions button:not(:disabled) {
  background: #7f7f7f !important;
  color: #ffffff !important;
  border-color: #777777 !important;
  cursor: pointer !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-actions button.secondary,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions button.secondary,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions button.secondary {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  background: #d9d9d9 !important;
  color: #000000 !important;
  border-color: #c7c7c7 !important;
  font-size: 14px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-modal-message,
body > #clinicalModalRoot .clinical-stored-panel .clinical-modal-message,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-modal-message {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 5px !important;
  min-height: 18px !important;
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  white-space: normal !important;
}

/* Build L: Stored Patient dialog final GUI tweak. Team Code row moved up 3px; all other sizing/spacing unchanged. */
#clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel {
  width: 430px !important;
  height: 275px !important;
  min-height: 275px !important;
  max-height: 275px !important;
  padding: 0 !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-start-title,
body > #clinicalModalRoot .clinical-stored-panel .stored-start-title,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-start-title {
  top: 31px !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: #000 !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row,
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row {
  grid-template-columns: 160px 104px !important;
  column-gap: 8px !important;
  height: 30px !important;
  left: 0 !important;
  width: 100% !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(2),
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(2),
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(2) {
  top: 70px !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(3),
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(3),
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row:nth-of-type(3) {
  top: 117px !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row label,
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row label,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row label {
  font-size: 13px !important;
  line-height: 30px !important;
  font-weight: 400 !important;
  text-align: right !important;
}

#clinicalModalRoot .clinical-stored-panel .clinical-form-row input,
body > #clinicalModalRoot .clinical-stored-panel .clinical-form-row input,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .clinical-form-row input {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 2px 4px !important;
  font-size: 16px !important;
  line-height: 24px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-actions,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions {
  top: 166px !important;
  gap: 10px !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-actions button,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions button {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  font-size: 14px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
}

#clinicalModalRoot .clinical-stored-panel .stored-actions button.secondary,
body > #clinicalModalRoot .clinical-stored-panel .stored-actions button.secondary,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-actions button.secondary {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  font-size: 14px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
}


/* Build Q: Team Records dialog refinements.
   - Center Team Code label + code box over patient list.
   - Match Cancel button size/style to Patient ID dialog Cancel button.
   - Reduce column header font size and row heights for denser 5–20 record lists.
*/
.clinical-stored-team-panel .stored-team-display-row {
  left: 55px !important;
  width: 650px !important;
  right: auto !important;
  justify-content: center !important;
  gap: 8px !important;
}

.clinical-stored-team-panel .stored-team-display-label {
  font-size: 14px !important;
  font-weight: 400 !important;
  text-align: right !important;
}

.clinical-stored-team-panel .stored-team-display-code {
  width: 78px !important;
  height: 34px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.clinical-stored-team-panel .stored-team-cancel-button {
  width: 84px !important;
  min-width: 84px !important;
  height: 36px !important;
  min-height: 36px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  padding: 0 !important;
  border: 1px solid #bfbfbf !important;
  border-radius: 0 !important;
  background: #e6e6e6 !important;
  color: #000 !important;
}

.clinical-stored-team-panel .stored-team-table th {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  padding: 0 4px !important;
}

.clinical-stored-team-panel .stored-team-table td {
  height: 31px !important;
  min-height: 31px !important;
  max-height: 31px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  padding: 0 4px !important;
}

.clinical-stored-team-panel .stored-team-table-wrap {
  max-height: 200px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}


/* Build R: hard override for Revised Team Records dialog.
   Restores the actual revised layout after Build Q was missing the full positioning rules.
   Table remains prior-sized; Team Code box is centered over the table; Cancel matches Patient ID form. */
#clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
.clinical-modal-panel.clinical-stored-team-panel {
  position: relative !important;
  width: 760px !important;
  height: 315px !important;
  min-width: 760px !important;
  max-width: 760px !important;
  min-height: 315px !important;
  max-height: 315px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Cancel button: same size/font family as Patient ID dialog Cancel button. */
#clinicalModalRoot .clinical-stored-team-panel .stored-team-cancel-button,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-cancel-button,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-cancel-button,
.clinical-stored-team-panel .stored-team-cancel-button {
  position: absolute !important;
  top: 18px !important;
  right: 16px !important;
  left: auto !important;
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
  color: #000 !important;
  background: #e6e6e6 !important;
  border: 1px solid #bfbfbf !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

/* Table geometry: previous scale, centered in the form. */
#clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.clinical-stored-team-panel .stored-team-table-wrap {
  position: absolute !important;
  top: 102px !important;
  left: 55px !important;
  width: 650px !important;
  max-width: 650px !important;
  max-height: 198px !important;
  height: auto !important;
  margin: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  border: none !important;
  background: #ffffff !important;
}

/* Team Code: code rectangle centered over the table, label shifted left. */
#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.clinical-stored-team-panel .stored-team-display-row {
  position: absolute !important;
  top: 20px !important;
  left: 245px !important;          /* label starts left; code box center aligns with table center */
  right: auto !important;
  width: 174px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-label,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-label,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-label,
.clinical-stored-team-panel .stored-team-display-label {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 88px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 34px !important;
  color: #000 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-code,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-code,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-code,
.clinical-stored-team-panel .stored-team-display-code {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #000 !important;
  background: #fff !important;
  border: 1px solid #c8c8c8 !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-note,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-note,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-note,
.clinical-stored-team-panel .stored-team-note {
  position: absolute !important;
  top: 74px !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  text-align: center !important;
  color: #001a80 !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table,
.clinical-stored-team-panel .stored-team-table,
.clinical-stored-team-panel .clinical-team-table.stored-team-table {
  width: 650px !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  margin: 0 !important;
  background: #fff !important;
  font-size: 12px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table th,
#clinicalModalRoot .clinical-stored-team-panel .stored-team-table td,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table th,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table td,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table th,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table td,
.clinical-stored-team-panel .stored-team-table th,
.clinical-stored-team-panel .stored-team-table td {
  border: 1px solid #b3b3b3 !important;
  text-align: center !important;
  vertical-align: middle !important;
  color: #000 !important;
  box-sizing: border-box !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table th,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table th,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table th,
.clinical-stored-team-panel .stored-team-table th {
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  padding: 0 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  background: #f7f7f7 !important;
  cursor: pointer !important;
  position: static !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table td,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table td,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table td,
.clinical-stored-team-panel .stored-team-table td {
  height: 31px !important;
  min-height: 31px !important;
  max-height: 31px !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

.clinical-stored-team-panel .stored-team-table th:nth-child(1),
.clinical-stored-team-panel .stored-team-table td:nth-child(1) { width: 78px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(2),
.clinical-stored-team-panel .stored-team-table td:nth-child(2) { width: 56px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(3),
.clinical-stored-team-panel .stored-team-table td:nth-child(3) { width: 92px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(4),
.clinical-stored-team-panel .stored-team-table td:nth-child(4) { width: 118px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(5),
.clinical-stored-team-panel .stored-team-table td:nth-child(5) { width: 82px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(6),
.clinical-stored-team-panel .stored-team-table td:nth-child(6) { width: 224px !important; }


/* Build S: split Save Data button.
   Save Data button and arrow both open the Save New Data / Save with Options menu. */
.clinical-data-button-row .clinical-save-split {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.clinical-data-button-row .clinical-save-split #saveDataButton {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  border-right: 0 !important;
  box-sizing: border-box !important;
}

.clinical-data-button-row .clinical-save-split-arrow {
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 27px !important;
  min-height: 27px !important;
  padding: 0 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  border: 1px solid #999 !important;
  background: #e6e6e6 !important;
  color: #000 !important;
}

.clinical-save-split-menu {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 2px) !important;
  z-index: 100010 !important;
  width: 146px !important;
  background: #ffffff !important;
  border: 1px solid #777 !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25) !important;
  padding: 2px !important;
  box-sizing: border-box !important;
}

.clinical-save-split-menu.hidden {
  display: none !important;
}

.clinical-save-split-menu button {
  width: 100% !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 6px !important;
  border: 0 !important;
  background: #ffffff !important;
  text-align: left !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #000 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.clinical-save-split-menu button:hover {
  background: #dfefff !important;
}


/* Build Z: New Patient / Delete Patient button position and sizing hard override. */
.clinical-data-button-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
}

#storedRecordsButton,
#saveDataButton,
#clearButton,
#removePatientButton {
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  padding: 0 2px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

#storedRecordsButton { order: 1 !important; }
#saveDataButton { order: 2 !important; }
.clinical-save-split { order: 2 !important; }
#clearButton { order: 3 !important; }
#removePatientButton { order: 4 !important; }

.clinical-data-button-row .clinical-save-split,
.clinical-data-button-row .clinical-save-split #saveDataButton {
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
}

.clinical-data-button-row .clinical-save-split-arrow {
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
}

.clinical-new-patient-panel {
  width: 430px !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 18px 18px 16px !important;
  background: #eeeeee !important;
  border: 2px solid #666 !important;
  box-shadow: none !important;
  font-size: 14px !important;
}

.new-patient-save-message {
  margin: 18px 0 22px !important;
  text-align: center !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  color: #000 !important;
}

.new-patient-save-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 8px !important;
}

.new-patient-save-actions button {
  width: 112px !important;
  min-width: 112px !important;
  height: 34px !important;
  min-height: 34px !important;
  font-size: 14px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
}


/* Build AA: compact New Patient save-choice dialog and Patient Data reset support. */
.clinical-modal-panel.clinical-new-patient-panel,
#clinicalModalRoot .clinical-modal-panel.clinical-new-patient-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-new-patient-panel {
  width: 430px !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  padding: 14px 18px 12px !important;
  box-sizing: border-box !important;
}

.clinical-new-patient-panel .new-patient-save-message {
  margin: 20px 0 18px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.clinical-new-patient-panel .new-patient-save-actions {
  margin-top: 0 !important;
  gap: 14px !important;
}

.clinical-new-patient-panel .new-patient-save-actions button {
  width: 112px !important;
  height: 34px !important;
  min-height: 34px !important;
  font-size: 14px !important;
  line-height: 32px !important;
}


/* Build AB */
.clinical-save-split.single-mode #saveDataButton{
  border-right:1px solid #999 !important;
}


/* Build AS: virtual 17-row Patient Data list with a real scrollbar.
   The table always draws exactly 17 rows. In ascending order the last two are blank rows.
   A separate scrollbar appears when earlier records are hidden. */
.patient-table-scroll {
  position: relative !important;
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
}

#patientTable,
#patientTable.data-table {
  width: calc(100% - 13px) !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
}

#patientTable tbody {
  display: table-row-group !important;
  height: auto !important;
  overflow: visible !important;
}

#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  display: table-row !important;
}

#patientTable thead th {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
}

#patientTable tbody tr,
#patientTable tbody td {
  height: 29px !important;
  min-height: 29px !important;
  max-height: 29px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#patientTable tbody input {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#patientTable th,
#patientTable td {
  border: 1px solid #bfbfbf !important;
  box-sizing: border-box !important;
}

.patient-virtual-scrollbar {
  position: absolute !important;
  right: 0 !important;
  top: 25px !important;
  width: 12px !important;
  height: 493px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: transparent !important;
  z-index: 20 !important;
}

.patient-virtual-scrollbar-inner {
  width: 1px !important;
}

#patientTable thead th:first-child.sortable-age-header {
  position: relative !important;
  padding-left: 1px !important;
  padding-right: 17px !important;
}

#patientTable .age-header-text {
  display: inline-block !important;
  transform: translateX(-5px);
  line-height: 1.0 !important;
}

.patient-age-sort-button {
  position: absolute !important;
  right: 3px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #001a80 !important;
  font-size: 13px !important;
  line-height: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}


/* Build AV: 20 visible Patient Data rows and full reversal of old hidden-row rules.
   Root cause fixed: old CSS for nth-child(n+18) made rows 18+ transparent/pointer-disabled.
   These rules explicitly restore rows, cells, and inputs beyond row 17. */
.patient-table-scroll {
  position: relative !important;
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
}

#patientTable,
#patientTable.data-table {
  width: calc(100% - 13px) !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
}

#patientTable thead th {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
}

#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  display: table-row !important;
  visibility: visible !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  background: #fff !important;
}

#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  display: table-cell !important;
  visibility: visible !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 1px solid #bfbfbf !important;
  background: #fff !important;
  color: #000 !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
}

#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  display: inline-block !important;
  visibility: visible !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  background: #fff !important;
  color: #000 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.patient-virtual-scrollbar {
  top: 24px !important;
  height: 560px !important;       /* 20 x 28px visible body rows */
}

#patientTable th,
#patientTable td {
  border: 1px solid #bfbfbf !important;
  box-sizing: border-box !important;
}

#patientTable thead th:first-child.sortable-age-header {
  position: relative !important;
  padding-left: 1px !important;
  padding-right: 17px !important;
}

#patientTable .age-header-text {
  display: inline-block !important;
  transform: translateX(-5px);
  line-height: 1.0 !important;
}

.patient-age-sort-button {
  position: absolute !important;
  right: 3px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #001a80 !important;
  font-size: 13px !important;
  line-height: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}


/* Build AW: 19 visible Patient Data rows.
   Target display: 17 data rows + 2 blank entry rows at bottom.
   Row height is slightly reduced so the bottom row is fully visible. */
#patientTable thead th {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
}

#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  display: table-row !important;
  visibility: visible !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  background: #fff !important;
}

#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  display: table-cell !important;
  visibility: visible !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 1px solid #bfbfbf !important;
  background: #fff !important;
  color: #000 !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
}

#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  display: inline-block !important;
  visibility: visible !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  background: #fff !important;
  color: #000 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.patient-virtual-scrollbar {
  top: 24px !important;
  height: 475px !important;       /* 19 x 26px visible body rows */
}


/* Build BC: authoritative Patient Data table geometry.
   Purpose:
   - Preserve Build BA functionality and data-row height.
   - Increase only the Patient Data column header height by 4 px.
   - Align the virtual scrollbar with the taller header.
   - Override older accumulated Patient Data table rules in one final block. */

.patient-table-scroll {
  position: relative !important;
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
}

#patientTable,
#patientTable.data-table {
  width: calc(100% - 13px) !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
}

#patientTable thead th,
#patientTable.data-table thead th {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.0 !important;
  vertical-align: middle !important;
}

#patientTable tbody,
#patientTable.data-table tbody {
  display: table-row-group !important;
  height: auto !important;
  overflow: visible !important;
}

#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  display: table-row !important;
  visibility: visible !important;
  height: 25px !important;
  min-height: 25px !important;
  max-height: 25px !important;
  background: #fff !important;
}

#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  display: table-cell !important;
  visibility: visible !important;
  height: 25px !important;
  min-height: 25px !important;
  max-height: 25px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 1px solid #bfbfbf !important;
  background: #fff !important;
  color: #000 !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  line-height: 1.05 !important;
}

#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  display: inline-block !important;
  visibility: visible !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  background: #fff !important;
  color: #000 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

#patientTable th,
#patientTable td {
  border: 1px solid #bfbfbf !important;
  box-sizing: border-box !important;
}

.patient-virtual-scrollbar {
  position: absolute !important;
  right: 0 !important;
  top: 28px !important;
  width: 12px !important;
  height: 475px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: transparent !important;
  z-index: 20 !important;
}

.patient-virtual-scrollbar-inner {
  width: 1px !important;
}

#patientTable thead th:first-child.sortable-age-header {
  position: relative !important;
  padding-left: 1px !important;
  padding-right: 17px !important;
}

#patientTable .age-header-text {
  display: inline-block !important;
  transform: translateX(-5px);
  line-height: 1.0 !important;
}

.patient-age-sort-button {
  position: absolute !important;
  right: 3px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #001a80 !important;
  font-size: 13px !important;
  line-height: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}


/* Build BD: final Patient Data geometry adjustment.
   Same layout with or without data:
   - 20 visible rows
   - header remains 28px
   - body rows reduced from 25.0px to 24.8px
   - virtual scrollbar matched to 20 x 24.8px = 496px
*/

.patient-table-scroll {
  position: relative !important;
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
}

#patientTable,
#patientTable.data-table {
  width: calc(100% - 13px) !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  height: auto !important;
  min-height: 0 !important;
  flex: none !important;
}

#patientTable thead th,
#patientTable.data-table thead th {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.0 !important;
  vertical-align: middle !important;
}

#patientTable tbody,
#patientTable.data-table tbody {
  display: table-row-group !important;
  height: auto !important;
  overflow: visible !important;
}

#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  display: table-row !important;
  visibility: visible !important;
  height: 24.8px !important;
  min-height: 24.8px !important;
  max-height: 24.8px !important;
  background: #fff !important;
}

#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  display: table-cell !important;
  visibility: visible !important;
  height: 24.8px !important;
  min-height: 24.8px !important;
  max-height: 24.8px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 1px solid #bfbfbf !important;
  background: #fff !important;
  color: #000 !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  line-height: 1.05 !important;
}

#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  display: inline-block !important;
  visibility: visible !important;
  height: 23.8px !important;
  min-height: 23.8px !important;
  max-height: 23.8px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border: 0 !important;
  background: #fff !important;
  color: #000 !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

#patientTable th,
#patientTable td {
  border: 1px solid #bfbfbf !important;
  box-sizing: border-box !important;
}

.patient-virtual-scrollbar {
  position: absolute !important;
  right: 0 !important;
  top: 28px !important;
  width: 12px !important;
  height: 496px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: transparent !important;
  z-index: 20 !important;
}

.patient-virtual-scrollbar-inner {
  width: 1px !important;
}

#patientTable thead th:first-child.sortable-age-header {
  position: relative !important;
  padding-left: 1px !important;
  padding-right: 17px !important;
}

#patientTable .age-header-text {
  display: inline-block !important;
  transform: translateX(-5px);
  line-height: 1.0 !important;
}

.patient-age-sort-button {
  position: absolute !important;
  right: 3px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #001a80 !important;
  font-size: 13px !important;
  line-height: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}


/* Build BE: reduce body rows another 0.2px */
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row{
height:24.6px!important;min-height:24.6px!important;max-height:24.6px!important;
}
#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td{
height:24.6px!important;min-height:24.6px!important;max-height:24.6px!important;
}
#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input{
height:23.6px!important;min-height:23.6px!important;max-height:23.6px!important;
}
.patient-virtual-scrollbar{
height:492px!important;
}


/* Build BF: reduce Patient Data body rows from 24.6px to 24.4px. */
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  height: 24.4px !important;
  min-height: 24.4px !important;
  max-height: 24.4px !important;
}

#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: 24.4px !important;
  min-height: 24.4px !important;
  max-height: 24.4px !important;
}

#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: 23.4px !important;
  min-height: 23.4px !important;
  max-height: 23.4px !important;
}

.patient-virtual-scrollbar {
  height: 488px !important; /* 20 x 24.4px */
}


/* Build BG: reduce Patient Data body rows from 24.4px to 24.3px. */
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  height: 24.3px !important;
  min-height: 24.3px !important;
  max-height: 24.3px !important;
}

#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: 24.3px !important;
  min-height: 24.3px !important;
  max-height: 24.3px !important;
}

#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: 23.3px !important;
  min-height: 23.3px !important;
  max-height: 23.3px !important;
}

.patient-virtual-scrollbar {
  height: 486px !important; /* 20 x 24.3px */
}

/* Build AT: Delete Records menu and selected-record delete controls. */
#removePatientButton {
  white-space: nowrap !important;
}

#patientTable th.record-delete-heading,
#patientTable td.record-delete-cell {
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
}

#patientTable td.record-delete-cell {
  background: #fff !important;
}

.record-delete-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  max-width: 15px !important;
  max-height: 15px !important;
  padding: 0 !important;
  border: 1px solid #a90000 !important;
  border-radius: 50% !important;
  background: #c00000 !important;
  color: #fff !important;
  font-size: 12px !important;
  line-height: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.record-delete-button:hover,
.record-delete-button:focus {
  background: #9f0000 !important;
  outline: 1px solid #000 !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button {
  width: 100% !important;
  white-space: nowrap !important;
  text-align: center !important;
}

/* Build AU: revised Delete Records options dialog and delete-mode exit button. */
#clinicalModalRoot .clinical-delete-choice-panel,
body > #clinicalModalRoot .clinical-delete-choice-panel,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel {
  width: 425px !important;
  min-width: 425px !important;
  max-width: 425px !important;
  height: 360px !important;
  min-height: 360px !important;
  padding: 46px 58px 34px !important;
  box-sizing: border-box !important;
  align-items: center !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-message,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-message,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-message {
  margin: 0 0 28px !important;
  width: 100% !important;
  text-align: center !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-head,
#clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-head-singleline,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-head,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-head-singleline,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-head,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-head-singleline {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  white-space: nowrap !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #000 !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  width: 100% !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button {
  width: 220px !important;
  height: 62px !important;
  min-height: 62px !important;
  padding: 0 12px !important;
  border: 2px solid #777 !important;
  border-radius: 0 !important;
  background: #8d8d8d !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel {
  width: 110px !important;
  height: 70px !important;
  min-height: 70px !important;
  background: #e1e1e1 !important;
  color: #000 !important;
  border-color: #c9c9c9 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

#removePatientButton.delete-mode-active {
  background: #e1e1e1 !important;
  color: #000 !important;
  border-color: #777 !important;
  font-weight: 700 !important;
}


/* Build BJ: Delete Records final overrides; cache-bumped in index-2.html. */
.clinical-delete-choice-panel {
  width: 425px !important;
  min-width: 425px !important;
  max-width: 425px !important;
  height: 360px !important;
  min-height: 360px !important;
  max-height: 360px !important;
  padding: 46px 58px 34px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
}

.clinical-delete-choice-panel .delete-dialog-message {
  margin: 0 0 28px !important;
  width: 100% !important;
  text-align: center !important;
}

.clinical-delete-choice-panel .delete-dialog-head {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: none !important;
  white-space: nowrap !important;
  text-align: center !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  color: #000 !important;
}

.clinical-delete-choice-panel .delete-choice-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 24px !important;
  width: 100% !important;
  margin: 0 !important;
}

.clinical-delete-choice-panel .delete-choice-actions button {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  height: 62px !important;
  min-height: 62px !important;
  max-height: 62px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  border: 2px solid #777 !important;
  border-radius: 0 !important;
  background: #8d8d8d !important;
  color: #fff !important;
  font-size: 17px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  height: 70px !important;
  min-height: 70px !important;
  max-height: 70px !important;
  background: #e1e1e1 !important;
  color: #000 !important;
  border-color: #c9c9c9 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

#patientTable tr.blank-patient-row .record-delete-button {
  display: none !important;
}

#confirmDeleteSelectedRecordButton {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  white-space: nowrap !important;
}

#removePatientButton.delete-mode-active {
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}


/* Build BK: Delete Records dialog and selected-delete-mode controls. */
#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel {
  width: 508px !important;
  min-width: 508px !important;
  max-width: 508px !important;
  height: 502px !important;
  min-height: 502px !important;
  max-height: 502px !important;
  padding: 84px 52px 38px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: visible !important;
}

#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-dialog-message,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-dialog-message,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-dialog-message {
  width: 100% !important;
  margin: 0 0 44px !important;
  padding: 0 !important;
  text-align: center !important;
  background: transparent !important;
}

#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-dialog-head,
#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-dialog-head-singleline,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-dialog-head,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-dialog-head-singleline,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-dialog-head,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-dialog-head-singleline {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  white-space: nowrap !important;
  overflow: visible !important;
  font-size: 23px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #000 !important;
}

#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-choice-actions,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-choice-actions,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-choice-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 30px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-choice-actions button,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-choice-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-choice-actions button {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  border: 2px solid #777 !important;
  border-radius: 0 !important;
  background: #8d8d8d !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  margin-top: 4px !important;
  background: #e1e1e1 !important;
  color: #000 !important;
  border-color: #c9c9c9 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

#deletionsCompletedButton {
  display: none;
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 10px auto 0 !important;
  border: 2px solid #777 !important;
  border-radius: 0 !important;
  background: #8d8d8d !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

body.clinical-selected-delete-mode .clinical-data-button-row {
  display: none !important;
}

body.clinical-selected-delete-mode #deletionsCompletedButton {
  display: block !important;
}

#patientTable tr.blank-patient-row .record-delete-button,
#patientTable td.record-delete-cell:empty {
  display: none !important;
}

#confirmDeleteSelectedRecordButton {
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  white-space: nowrap !important;
}

/* Build BL: final Delete Records option panel sizing and Deletions Completed visibility. */
#deletionsCompletedButton {
  display: none !important;
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 10px auto 0 !important;
  border: 2px solid #777 !important;
  border-radius: 0 !important;
  background: #8d8d8d !important;
  color: #fff !important;
  font-size: 18px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
body.clinical-selected-delete-mode #deletionsCompletedButton:not([hidden]) {
  display: block !important;
}
body.clinical-selected-delete-mode .clinical-data-button-row,
.clinical-data-button-row.delete-mode-buttons-hidden {
  display: none !important;
}


/* Build BL: final Delete Records dialog and selected-delete-mode button. */
#clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-delete-panel.clinical-delete-choice-panel {
  width: 508px !important;
  min-width: 508px !important;
  max-width: 508px !important;
  height: 502px !important;
  min-height: 502px !important;
  max-height: 502px !important;
  padding: 84px 52px 38px !important;
  overflow: hidden !important;
  background: #efefef !important;
  border: 3px solid #5e5e5e !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}
#clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-message,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-message,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-message {
  margin: 0 0 44px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
#clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-head,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-head,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-dialog-head {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  color: #000 !important;
  white-space: nowrap !important;
}
#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button {
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  padding: 0 12px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel {
  width: 110px !important;
  min-width: 110px !important;
  max-width: 110px !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  margin-top: 4px !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}
#deletionsCompletedButton {
  display: none !important;
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  margin: 10px auto 0 !important;
  padding: 0 16px !important;
  background: #8d8d8d !important;
  color: #fff !important;
  border: 2px solid #777 !important;
  border-radius: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
}
body.clinical-selected-delete-mode #deletionsCompletedButton {
  display: block !important;
}
body.clinical-selected-delete-mode .clinical-data-button-row,
.clinical-data-button-row.delete-mode-buttons-hidden {
  display: none !important;
}


/* Build BM: final delete-record mode geometry and inactive Delete Records state. */
#removePatientButton:disabled,
#removePatientButton.delete-records-disabled {
  background: #d9d9d9 !important;
  color: #777 !important;
  border-color: #bfbfbf !important;
  cursor: default !important;
  opacity: 1 !important;
}

/* Do not reserve a visible delete column until selected-delete mode is active. */
#patientTable th.record-delete-heading,
#patientTable td.record-delete-cell {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.clinical-selected-delete-mode #patientTable th.record-delete-heading,
body.clinical-selected-delete-mode #patientTable td.record-delete-cell {
  display: table-cell !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  padding: 0 !important;
  border: 1px solid #bfbfbf !important;
  text-align: center !important;
  vertical-align: middle !important;
  background: #fff !important;
}
body.clinical-selected-delete-mode #patientTable tr.blank-patient-row td.record-delete-cell {
  background: #fff !important;
}
body.clinical-selected-delete-mode #patientTable tr.blank-patient-row .record-delete-button {
  display: none !important;
}

/* Replace the four lower buttons with a single, full-width completion button in selected-delete mode. */
body.clinical-selected-delete-mode .clinical-data-button-row,
.clinical-data-button-row.delete-mode-buttons-hidden {
  display: none !important;
}
#deletionsCompletedButton {
  display: none !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 567px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 31px !important;
  min-height: 31px !important;
  max-height: 31px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  border: 2px solid #777 !important;
  border-radius: 0 !important;
  background: #8d8d8d !important;
  color: #fff !important;
  font-size: 15px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 20 !important;
}
body.clinical-selected-delete-mode #deletionsCompletedButton:not([hidden]) {
  display: block !important;
}


/* Build BN: Delete Records choice dialog uses the same form size, fonts, and button styling as Stored Records. */
#clinicalModalRoot .clinical-modal-panel.clinical-stored-panel.clinical-delete-choice-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel.clinical-delete-choice-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel.clinical-delete-choice-panel {
  width: 430px !important;
  height: 275px !important;
  min-width: 430px !important;
  max-width: 650px !important;
  min-height: 275px !important;
  max-height: 275px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #efefef !important;
  border: 3px solid #5e5e5e !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  display: block !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-title,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-title,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-title {
  position: absolute !important;
  top: 31px !important;
  left: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  color: #000 !important;
  text-align: center !important;
  white-space: nowrap !important;
  background: transparent !important;
  border: 0 !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions {
  position: absolute !important;
  top: 70px !important;
  left: 0 !important;
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 17px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  border: 2px solid #777 !important;
  border-radius: 0 !important;
  background: #8d8d8d !important;
  color: #fff !important;
  font-size: 14px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  margin-top: 7px !important;
  padding: 0 4px !important;
  background: #e1e1e1 !important;
  color: #000 !important;
  border-color: #c9c9c9 !important;
  font-size: 14px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .clinical-modal-message,
body > #clinicalModalRoot .clinical-delete-choice-panel .clinical-modal-message,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .clinical-modal-message {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
  font-size: 12px !important;
  line-height: 14px !important;
  text-align: center !important;
}


/* Build BO: final delete-dialog button consistency with Stored Records form. */
#clinicalModalRoot .clinical-modal-panel.clinical-stored-panel.clinical-delete-choice-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel.clinical-delete-choice-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-panel.clinical-delete-choice-panel {
  width: 430px !important;
  height: 275px !important;
  min-width: 430px !important;
  max-width: 650px !important;
  min-height: 275px !important;
  max-height: 275px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #eeeeee !important;
  border: 2px solid #666666 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  position: fixed !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #000000 !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-title,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-title,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-title {
  top: 31px !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions {
  top: 70px !important;
  gap: 17px !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
  border: 1px solid #777777 !important;
  background: #7f7f7f !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

#clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
body > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel,
.worksheet-frame > #clinicalModalRoot .clinical-delete-choice-panel .delete-choice-actions button.delete-choice-cancel {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  margin-top: 7px !important;
  padding: 0 !important;
  background: #d9d9d9 !important;
  color: #000000 !important;
  border: 1px solid #c7c7c7 !important;
  font-size: 14px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
}

#clinicalModalRoot .clinical-delete-panel .delete-actions button,
body > #clinicalModalRoot .clinical-delete-panel .delete-actions button,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel .delete-actions button {
  min-width: 190px !important;
  width: auto !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
  border-radius: 0 !important;
  border: 1px solid #777777 !important;
  background: #7f7f7f !important;
  color: #ffffff !important;
  font-size: 14px !important;
  line-height: 32px !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

#clinicalModalRoot .clinical-delete-panel .delete-actions button.secondary,
body > #clinicalModalRoot .clinical-delete-panel .delete-actions button.secondary,
.worksheet-frame > #clinicalModalRoot .clinical-delete-panel .delete-actions button.secondary {
  min-width: 82px !important;
  width: 82px !important;
  max-width: 82px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  background: #d9d9d9 !important;
  color: #000000 !important;
  border: 1px solid #c7c7c7 !important;
  font-size: 14px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
}

#confirmDeleteSelectedRecordButton {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
}

/* Build BP: do not reserve right-side scrollbar/delete space in normal Patient Data mode.
   When neither the virtual scrollbar nor delete-record icons are displayed, the table fills
   the Patient Data frame so the right margin matches the left margin. */
body:not(.patient-list-scrollbar-visible) #patientTable,
body:not(.patient-list-scrollbar-visible) #patientTable.data-table {
  width: 100% !important;
}

body.patient-list-scrollbar-visible #patientTable,
body.patient-list-scrollbar-visible #patientTable.data-table {
  width: calc(100% - 13px) !important;
}

body:not(.clinical-selected-delete-mode) #patientTable th.record-delete-heading,
body:not(.clinical-selected-delete-mode) #patientTable td.record-delete-cell {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}


/* Build BQ: inactive Save Data button when there are no savable patient-data records. */
#saveDataButton:disabled,
#saveDataButton.clinical-button-disabled,
.clinical-save-split-arrow:disabled,
.clinical-save-split-arrow.clinical-button-disabled {
  background: #d9d9d9 !important;
  color: #777 !important;
  border-color: #bfbfbf !important;
  cursor: default !important;
  opacity: 1 !important;
}

/* Release 0.4BR: BiliGuide access-screen text and registration controls. */
.clinical-region-list {
  margin: 10px 0 4px;
}
.clinical-region-list label {
  display: block;
  margin: 7px 0;
  font-size: 14px;
}
.clinical-access-message.success {
  color: #001a80;
  font-weight: 700;
}
.clinical-access-message.success .clinical-user-code-display {
  color: #001a80;
}
@media (max-width: 700px), (max-height: 520px) {
  .clinical-region-list label {
    font-size: 12.5px;
  }
}

/* Release 0.4BV: registration validation and inactive Register User state. */
.clinical-registration-validation {
  margin-top: 8px;
  min-height: 18px;
  font-size: 13px;
  line-height: 1.3;
  color: #b00000;
  font-weight: 700;
}
#clinicalRegisterButton:disabled {
  background: #d9d9d9 !important;
  color: #777 !important;
  border-color: #bfbfbf !important;
  cursor: default !important;
  opacity: 1 !important;
}


/* Release 0.4BV: registration validation is visible by default and Register User stays inactive until all required registration fields are completed. */
.clinical-registration-validation {
  display: block;
  min-height: 34px;
  margin: 8px 0 6px 0;
  font-size: 13px;
  line-height: 1.3;
  color: #b00000;
  font-weight: 700;
  text-align: left;
}
#clinicalRegisterButton:disabled,
#clinicalRegisterButton.clinical-button-disabled,
#clinicalRegisterButton[aria-disabled="true"] {
  background: #d9d9d9 !important;
  background-color: #d9d9d9 !important;
  color: #777 !important;
  border: 1px solid #bfbfbf !important;
  box-shadow: none !important;
  cursor: default !important;
  opacity: 1 !important;
  pointer-events: none !important;
}
#clinicalRegisterButton:not(:disabled):not(.clinical-button-disabled) {
  pointer-events: auto;
}


/* Release 0.4BX: center registration validation and use narrower Register User button. */
.clinical-registration-validation {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center !important;
  margin: 8px auto 6px auto !important;
}
.clinical-register-button {
  width: 205px !important;
  max-width: 100%;
}


/* Release 0.4CB: User Code copy link after registration. */
.clinical-access-message.success .clinical-copy-code-link {
  color: #001a80;
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
}
.clinical-access-message.success .clinical-copy-code-link:visited {
  color: #001a80;
}


/* Release 0.4CC: show logged-on User Code centered below right-side action buttons. */
.logged-on-user-display {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 683px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  color: #0057c8 !important;
  white-space: nowrap !important;
}


/* Release 0.4CE: align logged-on user text with X-axis control bar bottom and increase font by 1 point. */
.logged-on-user-display {
  top: 690px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

/* Release 0.4CE: bottom-align Logged on User text with the X-axis-range gray bar. */
.logged-on-user-display {
  top: 664px !important;
  font-size: 12px !important;
  line-height: 14px !important;
}


/* Release 0.4CF: move Logged on User up so the bottom of the text aligns with the bottom of the X-axis gray bar. */
.logged-on-user-display {
  top: 650px !important;
  font-size: 12px !important;
  line-height: 14px !important;
}


/* Release 0.4CG: keep the Sign-in form over the graph instead of vertically centering it in tall browser windows. */
.clinical-access-overlay {
  align-items: flex-start !important;
  padding-top: clamp(96px, 22vh, 230px) !important;
  overflow-y: auto !important;
}
@media (max-height: 720px) {
  .clinical-access-overlay {
    padding-top: 24px !important;
  }
}
@media (max-width: 700px), (max-height: 520px) {
  .clinical-access-overlay {
    padding-top: 12px !important;
  }
}

/* Release 0.4CG: align Register User right edge with the Returning user code+Continue control group. */
.clinical-register-button {
  width: 238px !important;
  max-width: 100% !important;
}


/* Release 0.4CK: set Register User width to align with Continue button. */
.clinical-register-button {
  width: 228px !important;
  max-width: 100% !important;
}

/* Release 0.4CL: top-anchor the Sign-in dialog and fine-tune Register User width. */
.clinical-access-overlay {
  align-items: flex-start !important;
  padding: 18px 18px 18px !important;
  overflow-y: auto !important;
}
html.clinical-autologin-pending .clinical-access-overlay {
  display: none !important;
}
.clinical-register-button {
  width: 230px !important;
  max-width: 100% !important;
}

/* Release 0.4CO: align top control frame with the graph plotting frame. */
.top-strip.excel-top-layout {
  margin-left: 60px !important;
  width: 1038px !important;
  max-width: 1038px !important;
  grid-template-columns: 294px 205px 278px 225px !important;
}

/* Release 0.4CR: registration opens only when Save Data is requested; default overlay state is hidden. */
.clinical-access-overlay.hidden {
  display: none !important;
}
.clinical-access-overlay {
  display: none !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 8px 12px 12px !important;
  background: rgba(0,0,0,.38) !important;
  z-index: 1000000 !important;
}
.clinical-access-card {
  position: relative !important;
  width: min(760px, 98vw) !important;
  max-height: 97vh !important;
  padding: 18px 34px 18px !important;
  border: 2px solid #333 !important;
  box-sizing: border-box !important;
}
.clinical-access-card h1 {
  margin: 0 0 12px !important;
  font-size: 25px !important;
  line-height: 1.15 !important;
  text-align: center !important;
}
.clinical-access-cancel {
  position: absolute !important;
  right: 8px !important;
  top: 8px !important;
  min-width: 108px !important;
  height: 30px !important;
  border: 1px solid #999 !important;
  background: #eeeeee !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}
.clinical-access-intro {
  border: 1px solid #bfbfbf !important;
  margin: 0 8px 10px !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  line-height: 1.18 !important;
}
.clinical-access-section {
  border: 1px solid #bfbfbf !important;
  margin: 10px 8px 0 !important;
  padding: 14px 16px !important;
}
.clinical-returning-section {
  padding-top: 12px !important;
  padding-bottom: 16px !important;
}
.clinical-access-section h2 {
  margin: 0 0 8px !important;
  color: #001a80 !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
}
.clinical-code-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}
.clinical-code-input {
  width: 128px !important;
  height: 30px !important;
  font-size: 20px !important;
}
.clinical-access-button {
  min-width: 128px !important;
  height: 30px !important;
  font-size: 14px !important;
}
.clinical-access-divider {
  margin: 12px 0 8px !important;
  font-size: 17px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  font-weight: 700 !important;
}
.clinical-role-grid {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr) !important;
  column-gap: 24px !important;
  row-gap: 7px !important;
  margin-bottom: 16px !important;
}
.clinical-role-grid label,
.clinical-region-row label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}
.clinical-role-other-label {
  min-width: 0 !important;
}
.clinical-role-other {
  width: 245px !important;
  height: 24px !important;
  margin-left: 4px !important;
  flex: 0 1 245px !important;
}
.clinical-region-row {
  display: grid !important;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1fr) !important;
  column-gap: 24px !important;
  align-items: center !important;
  margin: 8px 0 18px !important;
  padding: 8px 0 !important;
  border-top: 1px solid #d0d0d0 !important;
  border-bottom: 1px solid #d0d0d0 !important;
}
.clinical-continent-select {
  width: 285px !important;
  height: 28px !important;
  font-size: 12px !important;
}
.clinical-continent-disabled {
  opacity: .7 !important;
}
.clinical-tos-row,
.clinical-remember-row {
  margin: 13px 0 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}
.clinical-register-button {
  width: 231px !important;
  max-width: 100% !important;
  margin-top: 4px !important;
}
.clinical-registration-validation {
  min-height: 18px !important;
  margin: 12px auto 0 !important;
  color: #e00000 !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.clinical-access-message {
  min-height: 16px !important;
  margin-top: 8px !important;
}
.clinical-clipboard-notice {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 1000002 !important;
  background: #ffffff !important;
  border: 2px solid #555 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.25) !important;
  padding: 14px 20px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #000 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
@media (max-width: 760px) {
  .clinical-access-card {
    width: 98vw !important;
    padding: 14px 14px 12px !important;
  }
  .clinical-access-cancel {
    position: static !important;
    float: right !important;
    margin-bottom: 6px !important;
  }
  .clinical-role-grid,
  .clinical-region-row {
    grid-template-columns: 1fr !important;
    row-gap: 8px !important;
  }
  .clinical-role-grid label,
  .clinical-region-row label {
    white-space: normal !important;
  }
  .clinical-continent-select,
  .clinical-role-other {
    width: min(260px, 70vw) !important;
  }
}


/* Release 0.4CR: definitive closed/open states for Save-triggered registration. */
.clinical-access-overlay {
  display: none !important;
}
.clinical-access-overlay.clinical-access-visible {
  display: flex !important;
}
.clinical-access-overlay.hidden {
  display: none !important;
}


/* Release 0.4CS: Age Calculator label, Register User right-edge alignment, and TOS text styling. */
.age-calc-heading {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: -27px !important;
  height: 22px !important;
  line-height: 22px !important;
  text-align: center !important;
  color: #001a80 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  pointer-events: none !important;
}
.clinical-code-input,
.clinical-access-button,
.clinical-register-button {
  box-sizing: border-box !important;
}
#clinicalContinueButton {
  width: 170px !important;
  min-width: 170px !important;
}
.clinical-register-button {
  width: 231px !important;
  min-width: 231px !important;
  max-width: 231px !important;
  margin-left: 67px !important;
  box-sizing: border-box !important;
}
.clinical-tos-document {
  font-family: Georgia, "Times New Roman", Times, serif !important;
}


/* Release 0.4CT: align Register User right edge with Continue button and keep registration dialog open after code creation. */
.clinical-register-button {
  width: 231px !important;
  min-width: 231px !important;
  max-width: 231px !important;
  margin-left: 81px !important;
  box-sizing: border-box !important;
}

/* Release 0.4CY: About dialog compaction/top anchoring and final sign-in/edit alignment. */
.about-modal-overlay {
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 8px 10px 10px !important;
  overflow: auto !important;
}
.about-modal-panel {
  width: min(1160px, calc(100vw - 20px)) !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 18px 34px 10px !important;
  font-family: Georgia, "Times New Roman", Times, serif !important;
}
.about-modal-content {
  font-size: 16px !important;
  line-height: 1.22 !important;
}
.about-modal-content p {
  margin: 0 0 10px !important;
}
.about-modal-content .about-title {
  margin-bottom: 10px !important;
  font-size: 17px !important;
}
.about-references-title {
  margin: 8px 0 3px !important;
}
.about-references {
  margin: 0 0 4px 22px !important;
  padding-left: 18px !important;
  font-size: 13px !important;
  line-height: 1.16 !important;
}
.about-references li {
  margin-bottom: 3px !important;
  padding-left: 4px !important;
}
.about-modal-button-row {
  position: relative !important;
  min-height: 32px !important;
  margin-top: 4px !important;
  padding-top: 0 !important;
  border-top: none !important;
  text-align: right !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
.about-copyright-final {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  text-align: center !important;
  font-size: 11px !important;
  line-height: 1 !important;
  color: #555 !important;
  pointer-events: none !important;
}
.about-modal-button-row button {
  position: relative !important;
  z-index: 2 !important;
}
#clinicalAccessTitle.clinical-edit-title {
  color: #001a80 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}
.clinical-access-card.clinical-edit-locked {
  position: relative !important;
}
.clinical-edit-cover {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  background: rgba(255,255,255,.50) !important;
  z-index: 6 !important;
  pointer-events: auto !important;
}
.clinical-edit-cover.hidden {
  display: none !important;
}
.clinical-registration-section {
  position: relative !important;
}
.clinical-code-input,
.clinical-access-button,
.clinical-register-button {
  box-sizing: border-box !important;
}
#clinicalContinueButton {
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
}
.clinical-register-button {
  width: 312px !important;
  min-width: 312px !important;
  max-width: 312px !important;
  margin-left: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 760px) {
  .clinical-register-button {
    width: min(312px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* Release 0.4CY refinement: edit-mode cover extends over the dialog body while leaving the header link active. */
#clinicalAccessTitle.clinical-edit-title {
  position: relative !important;
  z-index: 8 !important;
}
.clinical-access-cancel {
  z-index: 9 !important;
}
.clinical-registration-section {
  position: static !important;
}
.clinical-access-card .clinical-edit-cover {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 58px !important;
  bottom: 0 !important;
  background: rgba(255,255,255,.50) !important;
  z-index: 6 !important;
  pointer-events: auto !important;
}

/* Release 0.4CZ: final about sizing and sign-in locked-edit layout. */
.about-modal-panel {
  width: min(920px, calc(100vw - 28px)) !important;
  max-height: calc(100vh - 18px) !important;
  overflow: visible !important;
  padding: 18px 30px 10px !important;
}
.about-modal-content {
  font-size: 16px !important;
  line-height: 1.22 !important;
}
.about-modal-content p {
  margin: 0 0 8px !important;
}
.about-references {
  font-size: 12px !important;
  line-height: 1.14 !important;
}
.about-references li {
  margin-bottom: 2px !important;
}
.clinical-access-divider.clinical-edit-title {
  color: #001a80 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
  font-weight: 400 !important;
}
#clinicalAccessTitle {
  color: #000 !important;
  text-decoration: none !important;
  cursor: default !important;
}
.clinical-registration-section {
  position: relative !important;
}
.clinical-access-card .clinical-edit-cover {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  background: rgba(255,255,255,.50) !important;
  z-index: 6 !important;
  pointer-events: auto !important;
}
.clinical-register-button {
  width: 312px !important;
  min-width: 312px !important;
  max-width: 312px !important;
  margin-left: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 760px) {
  .clinical-register-button {
    width: min(312px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* Release 0.4DA: About dialog readability and final footer layout. */
.about-modal-panel {
  width: min(810px, calc(100vw - 32px)) !important;
  max-height: calc(100vh - 18px) !important;
  overflow: visible !important;
  padding: 18px 28px 16px !important;
  font-family: Georgia, "Times New Roman", Times, serif !important;
}
.about-modal-content {
  font-size: 16px !important;
  line-height: 1.23 !important;
}
.about-modal-content p {
  margin: 0 0 8px !important;
}
.about-links {
  margin-top: 8px !important;
  margin-bottom: 14px !important;
}
.about-links a {
  display: block !important;
  margin-bottom: 4px !important;
}
.about-references-title {
  font-weight: 400 !important;
  margin: 0 0 2px !important;
  font-size: 15px !important;
}
.about-references {
  margin: 0 0 18px 22px !important;
  padding-left: 18px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}
.about-references li {
  margin-bottom: 5px !important;
  padding-left: 4px !important;
}
.about-modal-button-row {
  position: relative !important;
  min-height: 32px !important;
  margin-top: 18px !important;
  padding-top: 0 !important;
  border-top: none !important;
  text-align: right !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
.about-copyright-final {
  display: none !important;
}
.about-footer-final {
  margin: 18px 0 0 !important;
  font-family: Georgia, "Times New Roman", Times, serif !important;
  font-size: 12px !important;
  line-height: 1.16 !important;
  text-align: left !important;
  color: #222 !important;
}

/* Release 0.4DB: About dialog revised centered layout. */
.about-modal-overlay {
  align-items: center !important;
  justify-content: center !important;
  padding: 14px !important;
  overflow: auto !important;
}
.about-modal-panel {
  width: min(648px, calc(100vw - 44px)) !important;
  max-height: calc(100vh - 28px) !important;
  min-height: min(820px, calc(100vh - 28px)) !important;
  overflow: visible !important;
  padding: 24px 28px 28px !important;
  box-sizing: border-box !important;
  font-family: Georgia, "Times New Roman", Times, serif !important;
  display: flex !important;
  flex-direction: column !important;
}
.about-modal-content {
  font-size: 16px !important;
  line-height: 1.23 !important;
}
.about-modal-content p {
  margin: 0 0 12px !important;
}
.about-modal-content .about-title {
  margin: 0 0 16px !important;
  font-size: 17px !important;
}
.about-references-title {
  font-weight: 400 !important;
  margin: 18px 0 4px !important;
  font-size: 14px !important;
}
.about-references {
  margin: 0 0 0 0 !important;
  padding-left: 28px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}
.about-references li {
  margin-bottom: 8px !important;
  padding-left: 6px !important;
}
.about-links-button-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 22px !important;
  margin-top: 34px !important;
  font-family: Georgia, "Times New Roman", Times, serif !important;
}
.about-links {
  margin: 0 !important;
  flex: 1 1 auto !important;
}
.about-links a {
  display: block !important;
  margin-bottom: 9px !important;
}
.about-links a:last-child {
  margin-bottom: 0 !important;
}
.about-links-button-row button {
  flex: 0 0 auto !important;
  align-self: center !important;
  font-family: Arial, Helvetica, sans-serif !important;
  min-width: 96px !important;
  min-height: 44px !important;
}
.about-modal-button-row {
  display: none !important;
}
.about-footer-final {
  margin: 48px 0 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  text-align: center !important;
  color: #222 !important;
}
@media (max-height: 860px) {
  .about-modal-panel {
    min-height: auto !important;
    overflow: auto !important;
  }
  .about-footer-final {
    margin-top: 34px !important;
  }
}

/* Release 0.4DC: About dialog and Sign-In refinements. */
.worksheet-frame > .about-modal-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: visible !important;
  background: rgba(0, 0, 0, .38) !important;
}
.worksheet-frame > .about-modal-overlay .about-modal-panel {
  width: 600px !important;
  max-width: 600px !important;
  min-height: 820px !important;
  max-height: none !important;
  overflow: visible !important;
  transform: none !important;
}
.about-modal-content p strong {
  font-weight: 700 !important;
}
.about-footer-final {
  line-height: 1.35 !important;
}
.clinical-access-cancel {
  font-size: 16px !important;
}
.clinical-access-intro {
  font-family: Georgia, "Times New Roman", Times, serif !important;
}
.clinical-access-card.clinical-code-assigned-mode .clinical-access-cancel {
  visibility: hidden !important;
  pointer-events: none !important;
}
.clinical-access-message.success {
  color: #0050a8 !important;
  font-weight: 700 !important;
}
.clinical-code-assigned-row {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  column-gap: 18px !important;
  width: 100% !important;
  margin: 10px 0 0 !important;
}
.clinical-code-assigned-label {
  justify-self: end !important;
  text-align: right !important;
  line-height: 1.1 !important;
  color: #0050a8 !important;
}
.clinical-code-assigned-row .clinical-user-code-display {
  justify-self: center !important;
  display: inline-block !important;
  min-width: 116px !important;
  padding: 4px 14px !important;
  border: 2px solid #000 !important;
  background: #ffffcc !important;
  color: #0050a8 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 4px !important;
  text-align: center !important;
}
.clinical-assigned-close-button {
  justify-self: end !important;
  width: 140px !important;
  height: 36px !important;
  border: 1px solid #999 !important;
  background: #e6e6e6 !important;
  color: #000 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}


/* Release 0.4DD: requested About and Sign-In refinements. */
.about-links-button-row button {
  font-size: 18px !important;
}
.clinical-access-intro {
  font-size: 15px !important;
}
.about-footer-final {
  line-height: 1.55 !important;
}


/* Release 0.4DE: two-line About title. */
.about-modal-content .about-title {
  margin: 0 0 16px !important;
}
.about-title-main {
  font-size: 17px !important;
  line-height: 1.15 !important;
}
.about-title-version {
  margin-top: 3px !important;
  font-size: 13px !important;
  line-height: 1.1 !important;
  font-weight: 400 !important;
}

/* Release 0.4DF: align Patient Data frame to graph plot frame.
   The Patient Data frame was a few pixels taller than the graph plot frame;
   shift it down slightly and reduce height so its top and bottom borders align. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 11px !important;
  height: 548px !important;
  min-height: 548px !important;
  max-height: 548px !important;
}
.clinical-data-button-row {
  top: 564px !important;
}
.patient-table-scroll {
  height: 514px !important;
  min-height: 514px !important;
  max-height: 514px !important;
}


/* Release 0.4DJ: registered-user edit heading remains Edit User after unlock. */
.clinical-access-divider.clinical-edit-heading {
  color: #333 !important;
  text-decoration: none !important;
  cursor: default !important;
}

/* Release 0.4DO: Print button spacing per Button-space reference. */
.clinical-print-button-row {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 628px !important;
  height: 24px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
.clinical-print-button-row button {
  width: 86px !important;
  height: 23px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}
body.clinical-selected-delete-mode .clinical-print-button-row {
  display: none !important;
}
.logged-on-user-display {
  top: 683px !important;
}


/* Release 0.4DV: bottom-align Logged on User with the Click for more information link. */

#dobDate,
#dataDate {
  width: 72px !important;
  max-width: 72px !important;
  text-align: center !important;
  font-size: 12px !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
}

#dobTime,
#dataTime {
  font-size: 12px !important;
  text-align: center !important;
}

#dobDate::placeholder,
#dataDate::placeholder,
#dobTime::placeholder,
#dataTime::placeholder {
  font-size: 12px !important;
  opacity: 0.75 !important;
}


/* Release 0.4EC: Age Calculator one-hour time selector panel. */
.time-selector-panel {
  position: absolute !important;
  z-index: 10000 !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2px !important;
  padding: 5px !important;
  border: 1px solid #888 !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
.time-selector-option {
  min-width: 44px !important;
  height: 22px !important;
  padding: 0 4px !important;
  border: 1px solid #aaa !important;
  background: #f4f4f4 !important;
  color: #111 !important;
  font-size: 11px !important;
  line-height: 20px !important;
  text-align: center !important;
  cursor: pointer !important;
}
.time-selector-option:hover,
.time-selector-option:focus {
  background: #e6eefb !important;
  outline: 1px solid #5c8edc !important;
}

/* Release 0.4EE: Age Calculator custom date selector panel. */
.date-selector-panel {
  position: absolute !important;
  z-index: 10005 !important;
  width: 174px !important;
  padding: 5px !important;
  border: 1px solid #888 !important;
  background: #fff !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  color: #111 !important;
}
.date-selector-header {
  display: grid !important;
  grid-template-columns: 24px 1fr 24px !important;
  align-items: center !important;
  gap: 2px !important;
  margin-bottom: 3px !important;
}
.date-selector-title {
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
}
.date-selector-nav {
  width: 24px !important;
  height: 20px !important;
  padding: 0 !important;
  border: 1px solid #aaa !important;
  background: #f4f4f4 !important;
  font-size: 14px !important;
  line-height: 18px !important;
  cursor: pointer !important;
}
.date-selector-dow,
.date-selector-grid {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 1px !important;
}
.date-selector-dow div {
  height: 16px !important;
  text-align: center !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  line-height: 16px !important;
  color: #333 !important;
}
.date-selector-empty {
  height: 20px !important;
}
.date-selector-day {
  height: 20px !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 1px solid #bbb !important;
  background: #f8f8f8 !important;
  color: #111 !important;
  font-size: 10px !important;
  line-height: 18px !important;
  text-align: center !important;
  cursor: pointer !important;
}
.date-selector-day:hover,
.date-selector-day:focus {
  background: #e6eefb !important;
  outline: 1px solid #5c8edc !important;
}
.date-selector-day.selected {
  background: #d6e6ff !important;
  border-color: #5c8edc !important;
  font-weight: 700 !important;
}
.date-selector-day:disabled {
  background: #eee !important;
  color: #aaa !important;
  cursor: default !important;
}


/* Build EI: user-controlled Patient Data re-ordering for out-of-order ages. */
#patientTable tbody tr.out-of-order-patient-row > td:first-child {
  position: relative !important;
}
#patientTable tbody tr.out-of-order-patient-row > td:first-child::before {
  content: "" !important;
  position: absolute !important;
  left: -2px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 11px solid transparent !important;
  border-bottom: 11px solid transparent !important;
  border-left: 18px solid #ff0000 !important;
  z-index: 25 !important;
}
.patient-reorder-row {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 561px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 400 !important;
  z-index: 30 !important;
}
.patient-reorder-row[hidden] {
  display: none !important;
}
.patient-reorder-row a,
.patient-reorder-row a:visited {
  color: #0057c8 !important;
  text-decoration: underline !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}
.patient-reorder-auto-note {
  color: #000000 !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
body.patient-reorder-needed .clinical-data-button-row {
  top: 584px !important;
}
body.patient-reorder-needed .clinical-print-button-row {
  top: 648px !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 683px !important;
}

/* Build EU: make programmatic Patient Data focus visible after Return/Tab navigation. */
#patientTable tbody input.patient-programmatic-focus,
#patientTable tbody input:focus {
  outline: 2px solid #0067c5 !important;
  outline-offset: -1px !important;
  caret-color: #000000 !important;
}

/* EV: make programmatic focus after Return/Tab unmistakable in Patient Data. */
#patientTable tbody input.patient-programmatic-focus,
#patientTable tbody input:focus {
  caret-color: #000000 !important;
}


/* Build EW: a Patient Data cell reached by Return/Tab must remain visibly focused even if it is in an extra blank row. */
#patientTable tbody tr:nth-child(n+18) input.patient-programmatic-focus,
#patientTable tbody tr:nth-child(n+18) input:focus {
  border: 1px solid #000000 !important;
  outline: 2px solid #0067c5 !important;
  outline-offset: -1px !important;
  box-shadow: none !important;
  background: #ffffff !important;
  color: #000000 !important;
  caret-color: #000000 !important;
  pointer-events: auto !important;
}

/* Release 0.4FS: Age Calculator horizontal polish.
   - shift date and age fields, including the (days) label, 4 px left
   - widen hh:mm fields and New Record button by 4 px
   - increase New Record label size for readability */
.age-calc-row,
.age-calc-row-final {
  grid-template-columns: 60px 84px 72px !important;
  column-gap: 4px !important;
}
.age-calc-label {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  padding-right: 5px !important;
}
#dobDate,
#dataDate {
  width: 84px !important;
  max-width: 84px !important;
}
#dobTime,
#dataTime {
  width: 72px !important;
  max-width: 72px !important;
}
.age-calc-value-unit {
  width: 84px !important;
  max-width: 84px !important;
}
#createAgeRecordButton {
  grid-column: 3 !important;
  justify-self: start !important;
  width: 72px !important;
  min-width: 72px !important;
  max-width: 72px !important;
  font-size: 9.8px !important;
  line-height: 1.05 !important;
  padding-left: 1px !important;
  padding-right: 1px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}


/* Release 0.4FT: Age Calculator right-edge width adjustment.
   - keep the left alignment from 0.4FS
   - widen hh:mm fields and New Record button on the right side by 4 px */
.age-calc-row,
.age-calc-row-final {
  grid-template-columns: 60px 84px 76px !important;
}
#dobTime,
#dataTime {
  width: 76px !important;
  max-width: 76px !important;
}
#createAgeRecordButton {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  font-size: 9.8px !important;
}

/* Build FY: Delete Records split-menu button, matching Save Data menu behavior. */
.clinical-data-button-row .clinical-delete-split {
  position: relative !important;
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  order: 4 !important;
}

.clinical-data-button-row .clinical-delete-split #removePatientButton {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 21px !important;
  min-height: 21px !important;
  max-height: 21px !important;
  border-right: 0 !important;
  box-sizing: border-box !important;
}

.clinical-data-button-row .clinical-delete-split-arrow {
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  height: 21px !important;
  min-height: 21px !important;
  max-height: 21px !important;
  padding: 0 !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
  border: 1px solid #999 !important;
  background: #e6e6e6 !important;
  color: #000 !important;
}

.clinical-delete-split-menu {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 2px) !important;
  z-index: 100010 !important;
  width: 156px !important;
  background: #ffffff !important;
  border: 1px solid #777 !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25) !important;
  padding: 2px !important;
  box-sizing: border-box !important;
}

.clinical-delete-split-menu.hidden {
  display: none !important;
}

.clinical-delete-split-menu button {
  width: 100% !important;
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 6px !important;
  border: 0 !important;
  background: #ffffff !important;
  text-align: left !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #000 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.clinical-delete-split-menu button:hover {
  background: #dfefff !important;
}

.clinical-delete-split-arrow:disabled,
.clinical-delete-split-arrow.clinical-button-disabled {
  opacity: 0.55 !important;
  cursor: default !important;
}


/* Build FZ: refine Save Data/Delete Records split buttons.
   - Delete split button height matches New Patient.
   - Right-column split buttons are slightly wider; left-column buttons slightly narrower.
   - Arrow segments remain on the right side of the split buttons.
   - Delete arrow is not displayed when Delete Records is inactive. */
.clinical-data-button-row {
  grid-template-columns: 0.985fr 1.015fr !important;
}

.clinical-data-button-row .clinical-save-split,
.clinical-data-button-row .clinical-delete-split {
  width: calc(100% + 2px) !important;
  justify-self: start !important;
  overflow: visible !important;
}

#storedRecordsButton,
#clearButton {
  width: calc(100% - 2px) !important;
  justify-self: start !important;
}

.clinical-data-button-row .clinical-save-split #saveDataButton,
.clinical-data-button-row .clinical-delete-split #removePatientButton {
  order: 1 !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  line-height: 1.05 !important;
}

.clinical-data-button-row .clinical-save-split-arrow,
.clinical-data-button-row .clinical-delete-split-arrow {
  order: 2 !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
}

.clinical-data-button-row .clinical-delete-split #removePatientButton {
  border-right: 0 !important;
}

.clinical-data-button-row .clinical-delete-split.delete-records-disabled #removePatientButton,
.clinical-data-button-row .clinical-delete-split.single-mode #removePatientButton {
  border-right: 1px solid #999 !important;
}

.clinical-data-button-row .clinical-delete-split.delete-records-disabled .clinical-delete-split-arrow,
.clinical-data-button-row .clinical-delete-split .clinical-delete-split-arrow:disabled,
.clinical-data-button-row .clinical-delete-split .clinical-delete-split-arrow.clinical-button-disabled {
  display: none !important;
}

.clinical-data-button-row .clinical-delete-split:not(.delete-records-disabled) .clinical-delete-split-arrow:not(:disabled) {
  display: inline-block !important;
}


/* Build GD: tighten Team Code stored-records list and reduce Latest Bilirubin column. */
#clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
.clinical-modal-panel.clinical-stored-team-panel {
  width: 680px !important;
  min-width: 680px !important;
  max-width: 680px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.clinical-stored-team-panel .stored-team-table-wrap {
  left: 40px !important;
  width: 600px !important;
  max-width: 600px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table,
.clinical-stored-team-panel .stored-team-table,
.clinical-stored-team-panel .clinical-team-table.stored-team-table {
  width: 600px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.clinical-stored-team-panel .stored-team-display-row {
  left: 253px !important;
}

.clinical-stored-team-panel .stored-team-table th:nth-child(1),
.clinical-stored-team-panel .stored-team-table td:nth-child(1) { width: 78px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(2),
.clinical-stored-team-panel .stored-team-table td:nth-child(2) { width: 56px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(3),
.clinical-stored-team-panel .stored-team-table td:nth-child(3) { width: 92px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(4),
.clinical-stored-team-panel .stored-team-table td:nth-child(4) { width: 118px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(5),
.clinical-stored-team-panel .stored-team-table td:nth-child(5) { width: 82px !important; }
.clinical-stored-team-panel .stored-team-table th:nth-child(6),
.clinical-stored-team-panel .stored-team-table td:nth-child(6) { width: 174px !important; }


/* Build GE: add units to Latest Age header and tighten Team Code dialog further. */
#clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
.clinical-modal-panel.clinical-stored-team-panel {
  width: 640px !important;
  min-width: 640px !important;
  max-width: 640px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.clinical-stored-team-panel .stored-team-table-wrap {
  left: 30px !important;
  width: 580px !important;
  max-width: 580px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table,
.clinical-stored-team-panel .stored-team-table,
.clinical-stored-team-panel .clinical-team-table.stored-team-table {
  width: 580px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.clinical-stored-team-panel .stored-team-display-row {
  left: 233px !important;
}

.clinical-stored-team-panel .stored-team-table th:nth-child(6),
.clinical-stored-team-panel .stored-team-table td:nth-child(6) { width: 154px !important; }

/* Build GF: re-center Team Code rectangle over the Team Code patient-list table. */
#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.clinical-stored-team-panel .stored-team-display-row {
  left: 185px !important;
}


/* Build GG: center the Team Code data rectangle itself over the Team Code patient-list form.
   The code box is fixed to the horizontal center of the panel; the label sits immediately to its left. */
#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.clinical-stored-team-panel .stored-team-display-row {
  left: 0 !important;
  width: 640px !important;
  justify-content: center !important;
  gap: 0 !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-code,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-code,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-code,
.clinical-stored-team-panel .stored-team-display-code {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-label,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-label,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-label,
.clinical-stored-team-panel .stored-team-display-label {
  position: absolute !important;
  right: calc(50% + 47px) !important;
}


/* Build GH: hard-center the Team Code data rectangle with explicit pixel geometry.
   Panel width is 640px and code box width is 78px, so left = (640 - 78) / 2 = 281px.
   The label is independently positioned immediately to the left and no longer affects centering. */
#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.clinical-stored-team-panel .stored-team-display-row {
  position: absolute !important;
  top: 20px !important;
  left: 0 !important;
  right: auto !important;
  width: 640px !important;
  height: 34px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-code,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-code,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-code,
.clinical-stored-team-panel .stored-team-display-code {
  position: absolute !important;
  left: 281px !important;
  right: auto !important;
  top: 0 !important;
  transform: none !important;
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-label,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-label,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-label,
.clinical-stored-team-panel .stored-team-display-label {
  position: absolute !important;
  left: 185px !important;
  right: auto !important;
  top: 0 !important;
  width: 88px !important;
  transform: none !important;
}


/* Build GI: keep the centered Team Code display row from intercepting Cancel clicks.
   GH made the display row full-width to center the code rectangle; that row overlapped
   the Cancel button. Put Cancel above it and make the display row non-interactive. */
#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.clinical-stored-team-panel .stored-team-display-row {
  pointer-events: none !important;
  z-index: 1 !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-cancel-button,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-cancel-button,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-cancel-button,
.clinical-stored-team-panel .stored-team-cancel-button {
  z-index: 10 !important;
  pointer-events: auto !important;
}

/* GK: when the Terms dialog is open, do not let background app/about-dialog
   content participate in Select-All/Copy. */
body.tos-modal-open .worksheet-frame > *:not(#tosModalOverlay),
body.tos-modal-open > *:not(.worksheet-frame):not(#tosModalOverlay) {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* GJ/GK/GL: in-app Terms of Service modal dialog. */
.tos-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.32);
  box-sizing: border-box;
  padding: 18px;
}
.tos-modal-panel {
  width: 816px;
  max-width: min(816px, 94vw);
  max-height: min(760px, 88vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid #333;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #000;
}
.tos-modal-header {
  padding: 14px 18px 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}
.tos-modal-content {
  margin: 0 18px;
  padding: 10px 14px;
  border: 1px solid #bbb;
  overflow: auto;
  max-height: min(600px, 68vh);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.38;
  background: #fff;
}
.tos-modal-content h1 {
  display: none;
}
.tos-modal-content .effective-date {
  margin-top: 0;
  font-weight: 700;
}
.tos-modal-content ul,
.tos-modal-content ol {
  padding-left: 24px;
}
.tos-modal-actions {
  padding: 12px 18px 14px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.tos-modal-actions button {
  min-width: 90px;
  height: 30px;
  padding: 0 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #777;
  background: #e6e6e6;
  cursor: pointer;
}
@media print {
  body.tos-printing * {
    visibility: hidden !important;
  }
  body.tos-printing #tosModalContent,
  body.tos-printing #tosModalContent * {
    visibility: visible !important;
  }
  body.tos-printing #tosModalContent {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0.4in !important;
    border: 0 !important;
    font-family: Georgia, "Times New Roman", Times, serif !important;
    font-size: 12pt !important;
    line-height: 1.35 !important;
  }
  body.tos-printing #tosModalContent h1 {
    display: block !important;
    text-align: center !important;
  }
}
.tos-load-error {
  color: #b00000;
  font-weight: 700;
}

/* Build GM: User Team Code workflow in sign-in dialog. */
.clinical-access-card {
  width: min(920px, 98vw) !important;
}
.clinical-returning-grid {
  display: grid !important;
  grid-template-columns: 420px minmax(320px, 1fr) !important;
  column-gap: 26px !important;
  align-items: start !important;
}
.clinical-returning-left {
  min-width: 0 !important;
}
.clinical-returning-label-row {
  display: grid !important;
  grid-template-columns: 178px 178px 58px !important;
  column-gap: 12px !important;
  align-items: end !important;
  margin-bottom: 4px !important;
}
.clinical-returning-label-row .clinical-access-label {
  margin: 0 !important;
}
.clinical-user-team-row {
  display: grid !important;
  grid-template-columns: 178px 178px 58px !important;
  column-gap: 12px !important;
  align-items: center !important;
  margin-bottom: 10px !important;
}
.clinical-code-input,
.clinical-team-code-input {
  width: 178px !important;
  min-width: 178px !important;
  height: 32px !important;
  box-sizing: border-box !important;
}
.clinical-team-code-input[readonly] {
  background: #fff !important;
  color: #000 !important;
  cursor: default !important;
}
.clinical-team-code-editing {
  background: #fff !important;
}
.clinical-team-edit-row {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
#clinicalContinueButton,
.clinical-continue-wide,
.clinical-register-button {
  width: 360px !important;
  min-width: 360px !important;
  max-width: 360px !important;
  margin-left: 0 !important;
  box-sizing: border-box !important;
}
.clinical-team-explain {
  color: #0040b8 !important;
  font-size: 12px !important;
  line-height: 1.14 !important;
  font-weight: 700 !important;
  padding-top: 3px !important;
}
.clinical-team-explain ul {
  margin: 4px 0 0 14px !important;
  padding-left: 10px !important;
}
.clinical-team-explain li {
  margin: 3px 0 !important;
}
@media (max-width: 860px) {
  .clinical-returning-grid {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
  }
}

/* Build GX: targeted restore/fixes after clean-schema migration.
   Preserve GQ/GT Patient Data behavior; nudge Patient Data bottom frame up only. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  height: 544px !important;
  min-height: 544px !important;
  max-height: 544px !important;
}
.patient-table-scroll {
  height: 510px !important;
  min-height: 510px !important;
  max-height: 510px !important;
}

/* Returning-user layout: Continue/Register right edge aligns with Team Code rectangle right edge. */
.clinical-user-team-row {
  grid-template-columns: 178px 178px 58px !important;
  column-gap: 12px !important;
}
#clinicalContinueButton,
.clinical-continue-wide,
.clinical-register-button {
  width: 368px !important;
  min-width: 368px !important;
  max-width: 368px !important;
  margin-left: 0 !important;
  box-sizing: border-box !important;
}

/* New-user result box: display User Code and Team Code, then the copied-to-clipboard note. */
.clinical-access-message.success {
  color: #0050a8 !important;
  font-weight: 700 !important;
}
.clinical-code-assigned-box {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 26px !important;
  width: 500px !important;
  min-height: 62px !important;
  margin: 10px auto 0 !important;
  padding: 8px 18px 18px !important;
  border: 2px solid #000 !important;
  background: #fff9b8 !important;
  color: #000 !important;
  box-sizing: border-box !important;
  font-size: 17px !important;
  line-height: 1.1 !important;
}
.clinical-code-assigned-box .clinical-code-assigned-label {
  color: #000 !important;
  font-weight: 700 !important;
}
.clinical-code-assigned-box .clinical-user-code-display,
.clinical-code-assigned-box .clinical-team-code-display {
  display: inline !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #0050c8 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  text-align: left !important;
}
.clinical-code-assigned-box .clinical-copied-note {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 8px !important;
  text-align: center !important;
  color: #000 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}
.clinical-code-assigned-box .clinical-assigned-close-button {
  position: absolute !important;
  left: calc(100% - 6px) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  flex: 0 0 auto !important;
  margin-left: 0 !important;
  width: 150px !important;
  height: 36px !important;
  border: 1px solid #999 !important;
  background: #e6e6e6 !important;
  color: #000 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}


/* Build GX: final targeted alignment and logged-in user display refinements. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 11px !important;
  height: 546px !important;
  min-height: 546px !important;
  max-height: 546px !important;
}
.patient-table-scroll {
  height: 512px !important;
  min-height: 512px !important;
  max-height: 512px !important;
}
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  height: 23.3px !important;
  min-height: 23.3px !important;
  max-height: 23.3px !important;
}
#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: 23.3px !important;
  min-height: 23.3px !important;
  max-height: 23.3px !important;
}
#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: 22.3px !important;
  min-height: 22.3px !important;
  max-height: 22.3px !important;
}
.patient-virtual-scrollbar {
  height: 466px !important;
}
.xaxis-controls {
  transform: translateX(18px) !important;
}
.logged-on-user-display {
  top: 680px !important;
  font-size: 13px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
  color: #001a80 !important;
}
.logged-on-user-display .current-user-line {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}
.logged-on-user-display .current-user-links {
  display: flex !important;
  justify-content: center !important;
  gap: 210px !important;
  margin-top: 5px !important;
  font-size: 12px !important;
  line-height: 14px !important;
}
.logged-on-user-display .current-user-links a {
  color: #001a80 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 704px !important;
}


/* Build GY: targeted corrections after GX test.
   - Keep Patient Data bottom frame aligned with graph frame.
   - Increase row height by 0.5px after reducing GX's excessive bottom gap.
   - Move current-user display up so the links fit below the Patient Data controls. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 11px !important;
  height: 544px !important;
  min-height: 544px !important;
  max-height: 544px !important;
}
.patient-table-scroll {
  height: 510px !important;
  min-height: 510px !important;
  max-height: 510px !important;
}
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  height: 23.8px !important;
  min-height: 23.8px !important;
  max-height: 23.8px !important;
}
#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: 23.8px !important;
  min-height: 23.8px !important;
  max-height: 23.8px !important;
}
#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: 22.8px !important;
  min-height: 22.8px !important;
  max-height: 22.8px !important;
}
.patient-virtual-scrollbar {
  height: 476px !important;
}
.logged-on-user-display {
  top: 662px !important;
  font-size: 13px !important;
  line-height: 14px !important;
}
.logged-on-user-display .current-user-line {
  font-size: 14px !important;
  line-height: 16px !important;
}
.logged-on-user-display .current-user-links {
  gap: 170px !important;
  margin-top: 1px !important;
  font-size: 12px !important;
  line-height: 13px !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 686px !important;
}


/* Build GZ: targeted corrections after GY test. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 11px !important;
  height: 542px !important;
  min-height: 542px !important;
  max-height: 542px !important;
  box-sizing: border-box !important;
}
.patient-table-scroll {
  height: 508px !important;
  min-height: 508px !important;
  max-height: 508px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  height: 24.3px !important;
  min-height: 24.3px !important;
  max-height: 24.3px !important;
}
#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: 24.3px !important;
  min-height: 24.3px !important;
  max-height: 24.3px !important;
}
#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: 23.3px !important;
  min-height: 23.3px !important;
  max-height: 23.3px !important;
}
.patient-virtual-scrollbar { height: 474px !important; }
.logged-on-user-display {
  top: 664px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}
.logged-on-user-display .current-user-line {
  font-size: 11px !important;
  line-height: 13px !important;
}
.logged-on-user-display .current-user-links {
  gap: 170px !important;
  margin-top: 0 !important;
  font-size: 10px !important;
  line-height: 12px !important;
}
.logged-on-user-display .current-user-links-logged-out {
  justify-content: flex-end !important;
  padding-right: 10px !important;
  gap: 0 !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 688px !important;
}


/* Build HA: targeted corrections after GZ test. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 11px !important;
  height: 542px !important;
  min-height: 542px !important;
  max-height: 542px !important;
  box-sizing: border-box !important;
}
.patient-table-scroll {
  height: 508px !important;
  min-height: 508px !important;
  max-height: 508px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  height: 23.8px !important;
  min-height: 23.8px !important;
  max-height: 23.8px !important;
}
#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: 23.8px !important;
  min-height: 23.8px !important;
  max-height: 23.8px !important;
}
#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: 22.8px !important;
  min-height: 22.8px !important;
  max-height: 22.8px !important;
}
.logged-on-user-display {
  top: 664px !important;
  font-size: 11px !important;
  line-height: 12px !important;
  font-weight: 700 !important;
  color: #001a80 !important;
}
.logged-on-user-display .current-user-line {
  font-size: 13px !important;
  line-height: 15px !important;
  font-weight: 700 !important;
}
.logged-on-user-display .current-user-links {
  display: flex !important;
  justify-content: center !important;
  gap: 170px !important;
  margin-top: 1px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}
.logged-on-user-display .current-user-links-logged-out {
  justify-content: center !important;
  padding-right: 0 !important;
  gap: 170px !important;
}
.logged-on-user-display .inactive-profile-link,
.logged-on-user-display .inactive-profile-link:visited {
  color: #8a8a8a !important;
  cursor: default !important;
  pointer-events: none !important;
}
#storedRecordsButton.clinical-button-disabled,
#storedRecordsButton:disabled {
  color: #888 !important;
  background: #d8d8d8 !important;
  cursor: default !important;
}
.clinical-code-assigned-box {
  align-items: center !important;
  min-height: 72px !important;
  padding: 10px 18px 26px !important;
  gap: 18px !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
}
.clinical-code-assigned-box .clinical-assigned-pair {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 6px !important;
}
.clinical-code-assigned-box .clinical-code-assigned-label {
  line-height: 1 !important;
}
.clinical-code-assigned-box .clinical-user-code-display,
.clinical-code-assigned-box .clinical-team-code-display {
  line-height: 1 !important;
  vertical-align: baseline !important;
}
.clinical-code-assigned-box .clinical-copied-note {
  bottom: 8px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 688px !important;
}


/* Build HB: targeted layout corrections after HA/GZ feedback. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 11px !important;
  height: 542px !important;
  min-height: 542px !important;
  max-height: 542px !important;
  box-sizing: border-box !important;
}
.patient-table-scroll {
  height: 508px !important;
  min-height: 508px !important;
  max-height: 508px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row,
#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: 23.8px !important;
  min-height: 23.8px !important;
  max-height: 23.8px !important;
}
#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: 22.8px !important;
  min-height: 22.8px !important;
  max-height: 22.8px !important;
}
.xaxis-controls {
  transform: none !important;
  box-sizing: border-box !important;
}
.logged-on-user-display {
  top: 664px !important;
  left: 0 !important;
  right: 0 !important;
  width: 245px !important;
  color: #001a80 !important;
  font-weight: 700 !important;
  text-align: center !important;
}
.logged-on-user-display .current-user-line {
  font-size: 16px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.logged-on-user-display .current-user-links {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 0 !important;
  width: 100% !important;
  margin-top: 4px !important;
  padding: 0 26px !important;
  box-sizing: border-box !important;
  font-size: 13px !important;
  line-height: 15px !important;
}
.logged-on-user-display .current-user-links a,
.logged-on-user-display .current-user-links a:visited {
  color: #001a80 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}
.logged-on-user-display .current-user-links-logged-out {
  justify-content: center !important;
  padding: 0 !important;
  margin-top: 14px !important;
  font-size: 17px !important;
  line-height: 20px !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 688px !important;
}


/* Build HC: targeted corrections after HB review. */
.top-strip.excel-top-layout,
.top-strip {
  width: 1110px !important;
  max-width: 1110px !important;
  margin-left: 0 !important;
}
.xaxis-controls {
  width: 1110px !important;
  max-width: 1110px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
}
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 10px !important;
  height: 544px !important;
  min-height: 544px !important;
  max-height: 544px !important;
  box-sizing: border-box !important;
}
.patient-table-scroll {
  height: 510px !important;
  min-height: 510px !important;
  max-height: 510px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.logged-on-user-display .current-user-links a#viewUserProfileLink,
.logged-on-user-display .current-user-links a#viewUserProfileLink:visited {
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  white-space: nowrap !important;
}


/* Build HD: make graph-dependent controls follow the rendered graph frame. */
.top-strip.excel-top-layout,
.top-strip,
.xaxis-controls {
  transform: none !important;
  box-sizing: border-box !important;
}
.clinical-data-panel,
.data-panel.clinical-data-panel {
  box-sizing: border-box !important;
}
.clinical-data-title-row,
.data-header-row.clinical-data-title-row {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  overflow: hidden !important;
}

/* Build HK: stable outer-frame geometry. Content changes must not move frames. */
.top-strip.excel-top-layout,
.top-strip {
  width: 1110px !important;
  max-width: 1110px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
}
.xaxis-controls {
  width: 1110px !important;
  max-width: 1110px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
}
.clinical-side-panel { position: relative !important; height: 610px !important; }
.clinical-data-panel,
.data-panel.clinical-data-panel {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 10px !important;
  height: 544px !important;
  min-height: 544px !important;
  max-height: 544px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.clinical-data-button-row { top: 560px !important; }

/* Build HK: stable outer-frame geometry. Content changes must not move frames. */
.top-strip.excel-top-layout, .top-strip { width:1110px!important; max-width:1110px!important; margin-left:0!important; margin-right:0!important; transform:none!important; }
.xaxis-controls { width:1110px!important; max-width:1110px!important; margin-left:0!important; margin-right:0!important; transform:none!important; }
.clinical-side-panel { position:relative!important; height:610px!important; min-height:610px!important; max-height:610px!important; }
.clinical-data-panel, .data-panel.clinical-data-panel { position:absolute!important; left:0!important; right:0!important; top:10px!important; height:544px!important; min-height:544px!important; max-height:544px!important; box-sizing:border-box!important; overflow:hidden!important; }
.clinical-data-button-row { top:560px!important; }
/* HK rendered validation correction: graph border is 11px below chart-wrap top. */
.clinical-data-panel, .data-panel.clinical-data-panel {
  top: 11px !important;
  height: 545px !important;
  min-height: 545px !important;
  max-height: 545px !important;
}

/* Build HL: the top GA/Guidelines/Risk/Legend frame follows the graph's
   rendered outer left and right boundaries. Internal content must not alter
   the frame geometry. renderer.js supplies the measured left offset/width. */
.top-strip.excel-top-layout,
.top-strip {
  max-width: none !important;
  box-sizing: border-box !important;
  transform: none !important;
}

/* Build HM: the visible GA/Guidelines/Risk/Legend border is aligned by
   renderer.js to chartInstance.chartArea, not to the larger chart canvas. */
.top-strip.excel-top-layout,
.top-strip {
  max-width: none !important;
  box-sizing: border-box !important;
  transform: none !important;
}


/* Build HQ: final requested one-pixel frame refinements and logged-in typography. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: 11px !important;
  height: 546px !important;
  min-height: 546px !important;
  max-height: 546px !important;
}
.logged-on-user-display .current-user-line {
  font-size: 14px !important;
  line-height: 16px !important;
}
.logged-on-user-display .current-user-links {
  font-size: 11px !important;
  line-height: 13px !important;
}
.logged-on-user-display .current-user-links a,
.logged-on-user-display .current-user-links a:visited {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  font-weight: 400 !important;
}


/* Build IA: Stored Team Records dialog expansion and New Patient action. */
#clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
.worksheet-frame > #clinicalModalRoot .clinical-modal-panel.clinical-stored-team-panel,
.clinical-modal-panel.clinical-stored-team-panel {
  height: var(--stored-team-panel-height, 246px) !important;
  min-height: var(--stored-team-panel-height, 246px) !important;
  max-height: var(--stored-team-panel-height, 246px) !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-cancel-button,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-cancel-button,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-cancel-button,
.clinical-stored-team-panel .stored-team-cancel-button {
  top: 8px !important;
  right: 8px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-new-patient-button,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-new-patient-button,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-new-patient-button,
.clinical-stored-team-panel .stored-team-new-patient-button {
  position: absolute !important;
  top: 8px !important;
  right: 98px !important;
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
  color: #fff !important;
  background: #5f6f78 !important;
  border: 1px solid #163645 !important;
  border-radius: 0 !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-display-row,
.clinical-stored-team-panel .stored-team-display-row {
  top: 12px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-note,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-note,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-note,
.clinical-stored-team-panel .stored-team-note {
  top: 55px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.clinical-stored-team-panel .stored-team-table-wrap {
  top: 74px !important;
  height: var(--stored-team-table-height, 148px) !important;
  min-height: var(--stored-team-table-height, 148px) !important;
  max-height: var(--stored-team-table-height, 148px) !important;
  overflow-y: var(--stored-team-overflow-y, hidden) !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table th,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table th,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table th,
.clinical-stored-team-panel .stored-team-table th {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  padding: 0 3px !important;
}

#clinicalModalRoot .clinical-stored-team-panel .stored-team-table td,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table td,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table td,
.clinical-stored-team-panel .stored-team-table td {
  height: 25px !important;
  min-height: 25px !important;
  max-height: 25px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  padding: 0 3px !important;
}

/* Build IC: stored-team dialogs use true screen centering; scrollbars appear only when more than 25 records are present. */


/* Build IF: Print/Paste Data button row and Paste Data information dialog. */
.clinical-print-button-row {
  display: grid !important;
  grid-template-columns: 0.985fr 1.015fr !important;
  gap: 4px !important;
  justify-content: stretch !important;
  align-items: center !important;
}
.clinical-print-button-row button {
  width: 100% !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  padding: 0 2px !important;
}
#pasteDataButton { display: block !important; }

.paste-data-about-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1100000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,.18) !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
.paste-data-about-panel {
  width: 720px !important;
  max-width: calc(100% - 48px) !important;
  max-height: calc(100% - 48px) !important;
  overflow: auto !important;
  box-sizing: border-box !important;
  padding: 22px 24px 18px !important;
  background: #fff !important;
  border: 2px solid #666 !important;
  box-shadow: 0 8px 28px rgba(0,0,0,.25) !important;
  color: #111 !important;
  font-size: 14px !important;
  line-height: 1.3 !important;
}
.paste-data-about-content h2 {
  margin: 0 0 14px !important;
  text-align: center !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
}
.paste-data-about-content p { margin: 0 0 10px !important; }
.paste-data-about-content ul { margin: 4px 0 12px 22px !important; padding-left: 18px !important; }
.paste-data-about-content li { margin: 0 0 7px !important; padding-left: 2px !important; }
.paste-data-template-note { font-size: 12px !important; }
.paste-data-about-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-top: 16px !important;
}
.paste-data-about-actions button {
  min-width: 104px !important;
  height: 29px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}


/* Build IF2: Paste Data split button, profile preference, and serif explanatory text. */
.clinical-paste-split {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 20px !important;
  width: 100% !important;
  height: 27px !important;
}
.clinical-paste-split #pasteDataButton {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  min-width: 0 !important;
}
.clinical-paste-split-arrow {
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  padding: 0 !important;
  border-left: 1px solid rgba(0,0,0,.25) !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  font-size: 8px !important;
}
.clinical-paste-split-menu {
  position: absolute !important;
  right: 0 !important;
  bottom: 31px !important;
  z-index: 1050000 !important;
  min-width: 170px !important;
  padding: 3px !important;
  background: #fff !important;
  border: 1px solid #777 !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.24) !important;
}
.clinical-paste-split-menu.hidden { display: none !important; }
.clinical-paste-split-menu button {
  display: block !important;
  width: 100% !important;
  height: 27px !important;
  border: 0 !important;
  background: #fff !important;
  text-align: left !important;
  padding: 0 9px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
}
.clinical-paste-split-menu button:hover,
.clinical-paste-split-menu button:focus { background: #eaf2ff !important; }
.paste-data-about-content {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 14px !important;
  line-height: 1.38 !important;
}
.paste-data-about-content h2 {
  font-family: Arial, Helvetica, sans-serif !important;
}
.paste-data-preference-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #bbb !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}
.paste-data-preference-row input { margin-top: 2px !important; }
.paste-data-preference-help { font-size: 11px !important; color: #444 !important; }

/* Long-form explanatory dialog typography. */
.about-modal-content,
.about-modal-content p,
.about-modal-content ol,
.about-modal-content li {
  font-family: Georgia, "Times New Roman", serif !important;
}
.about-modal-content .about-title,
.about-modal-content .about-references-title,
.about-links-button-row,
.about-footer-final {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Build IG: standard Paste Data button and two-state confirmation dialog. */
.clinical-data-button-row > #pasteDataButton {
  width: 100% !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
  font-weight: 700 !important;
  padding: 0 2px !important;
}
.paste-data-about-panel.compact {
  width: 590px !important;
  padding: 20px 24px 18px !important;
}
.paste-data-about-panel.expanded {
  width: 720px !important;
}
.paste-data-about-information {
  font-family: Georgia, "Times New Roman", serif !important;
}
.paste-data-ready-row,
.paste-data-preference-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}
.paste-data-ready-row {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #bbb !important;
}
.paste-data-preference-row {
  margin-top: 9px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.paste-data-ready-row input,
.paste-data-preference-row input { margin-top: 2px !important; }
.paste-data-about-actions button:disabled {
  background: #d4d4d4 !important;
  border-color: #aaa !important;
  color: #777 !important;
  cursor: default !important;
}


/* Build IM: exact approved six-button geometry. */
.clinical-data-button-row {
  display: grid !important;
  grid-template-columns: 0.985fr 1.015fr !important;
  column-gap: 4px !important;
  row-gap: 4px !important;
}
#storedRecordsButton { order: 1 !important; }
.clinical-save-split { order: 2 !important; }
#clearButton { order: 3 !important; }
#pasteDataButton { order: 4 !important; }
.clinical-print-button-row {
  display: grid !important;
  grid-template-columns: 0.985fr 1.015fr !important;
  gap: 4px !important;
  justify-content: stretch !important;
  align-items: center !important;
}
.clinical-print-button-row > #printButton,
.clinical-print-button-row > #removePatientButton {
  width: 100% !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  margin: 0 !important;
}

/* Build IN: restore Delete Records split selector and normalize button widths. */
.clinical-data-button-row > #storedRecordsButton,
.clinical-data-button-row > #clearButton,
.clinical-data-button-row > #pasteDataButton,
.clinical-data-button-row > .clinical-save-split,
.clinical-print-button-row > #printButton,
.clinical-print-button-row > .clinical-delete-split {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  justify-self: stretch !important;
  box-sizing: border-box !important;
}
.clinical-print-button-row > .clinical-delete-split {
  position: relative !important;
  display: flex !important;
  height: 27px !important;
}
.clinical-print-button-row .clinical-delete-split #removePatientButton {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  margin: 0 !important;
  border-right: 0 !important;
  box-sizing: border-box !important;
}
.clinical-print-button-row .clinical-delete-split-arrow {
  flex: 0 0 22px !important;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 27px !important;
  min-height: 27px !important;
  max-height: 27px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid #999 !important;
  border-left: 1px solid rgba(0,0,0,.25) !important;
  background: #e6e6e6 !important;
  color: #000 !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  box-sizing: border-box !important;
}
.clinical-print-button-row .clinical-delete-split-menu {
  right: 0 !important;
  top: calc(100% + 2px) !important;
  width: 156px !important;
}
.clinical-print-button-row .clinical-delete-split.delete-records-disabled #removePatientButton,
.clinical-print-button-row .clinical-delete-split.single-mode #removePatientButton {
  border-right: 1px solid #999 !important;
}
.clinical-print-button-row .clinical-delete-split.delete-records-disabled .clinical-delete-split-arrow,
.clinical-print-button-row .clinical-delete-split .clinical-delete-split-arrow:disabled,
.clinical-print-button-row .clinical-delete-split .clinical-delete-split-arrow.clinical-button-disabled {
  display: none !important;
}
.clinical-print-button-row .clinical-delete-split:not(.delete-records-disabled) .clinical-delete-split-arrow:not(:disabled) {
  display: inline-block !important;
}

/* Build IN: Paste Data form layout from approved Paste.pdf. */
.paste-data-about-panel.expanded {
  display: flex !important;
  flex-direction: column !important;
  min-height: 610px !important;
  box-sizing: border-box !important;
}
.paste-data-about-panel.expanded .paste-data-about-content {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
}
.paste-data-about-panel.expanded .paste-data-about-information h2 {
  margin-top: 0 !important;
  text-align: center !important;
}
.paste-data-about-panel.expanded .paste-data-about-information ul {
  margin-top: 8px !important;
  margin-bottom: 12px !important;
}
.paste-data-controls {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  column-gap: 22px !important;
  row-gap: 12px !important;
  align-items: center !important;
  margin-top: 10px !important;
  padding-top: 14px !important;
  border-top: 1px solid #bbb !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
.paste-data-controls .paste-data-ready-row {
  grid-column: 1 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  align-items: flex-start !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
}
.paste-data-controls .paste-data-ready-row input,
.paste-data-controls .paste-data-preference-row input {
  flex: 0 0 auto !important;
  margin-top: 2px !important;
}
.paste-data-controls .paste-data-about-actions {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.paste-data-controls .paste-data-about-actions button {
  width: 104px !important;
  min-width: 104px !important;
  height: 30px !important;
  margin: 0 !important;
}
.paste-data-controls .paste-data-preference-row {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
}
.paste-data-about-panel.expanded .paste-data-template-note {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 34px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

/* Build IO: keep the Delete Records selector segment on the right. */
.clinical-print-button-row .clinical-delete-split {
  flex-direction: row !important;
}
.clinical-print-button-row .clinical-delete-split #removePatientButton {
  order: 1 !important;
}
.clinical-print-button-row .clinical-delete-split .clinical-delete-split-arrow {
  order: 2 !important;
}
.clinical-print-button-row .clinical-delete-split .clinical-delete-split-menu {
  order: 3 !important;
}


/* Build IS: Sign-In Terms link and vertical centering of Team Code explanation. */
.clinical-returning-grid {
  align-items: stretch !important;
}
.clinical-team-explain {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-self: stretch !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
#clinicalTosLink {
  color: #001a80 !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}


/* Build IT: keep the Terms document above the Sign-In form and center the
   Team Code explanation within the complete Returning user frame. */
body > #tosModalOverlay.tos-modal-overlay {
  z-index: 2000001 !important;
}
.clinical-returning-section {
  position: relative !important;
  min-height: 132px !important;
}
.clinical-returning-section .clinical-returning-grid {
  display: block !important;
  padding-right: 430px !important;
}
.clinical-returning-section .clinical-returning-left {
  width: 420px !important;
}
.clinical-returning-section .clinical-team-explain {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  width: 398px !important;
  transform: translateY(-50%) !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.clinical-returning-section .clinical-team-explain ul {
  margin-bottom: 0 !important;
}
@media (max-width: 860px) {
  .clinical-returning-section .clinical-returning-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding-right: 0 !important;
  }
  .clinical-returning-section .clinical-returning-left {
    width: auto !important;
  }
  .clinical-returning-section .clinical-team-explain {
    position: static !important;
    width: auto !important;
    transform: none !important;
    margin-top: 10px !important;
  }
}


/* Build IU: ensure Terms is above Sign-In and move Team Code explanation up two text lines. */
body > #tosModalOverlay.tos-modal-overlay {
  z-index: 2147483647 !important;
}
.clinical-returning-section .clinical-team-explain {
  top: calc(50% - 27px) !important;
}


/* Build IV: raise Terms of Service dialog, correct About reference #2, and restore desired Team Code explanation alignment. */
body > #tosModalOverlay.tos-modal-overlay {
  align-items: flex-start !important;
  justify-content: center !important;
  padding-top: 56px !important;
  padding-bottom: 18px !important;
}
.clinical-returning-section {
  min-height: 0 !important;
}
.clinical-returning-section .clinical-returning-grid {
  display: grid !important;
  grid-template-columns: 420px minmax(320px, 1fr) !important;
  column-gap: 26px !important;
  align-items: center !important;
  padding-right: 0 !important;
}
.clinical-returning-section .clinical-returning-left {
  width: auto !important;
}
.clinical-returning-section .clinical-team-explain {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: auto !important;
  transform: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-self: center !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 860px) {
  .clinical-returning-section .clinical-returning-grid {
    grid-template-columns: 1fr !important;
  }
  .clinical-returning-section .clinical-team-explain {
    margin-top: 10px !important;
  }
}


/* Build IX: expanded About BiliGuide content and wider dialog. */
.worksheet-frame > .about-modal-overlay .about-modal-panel {
  width: 760px !important;
  max-width: min(760px, calc(100vw - 36px)) !important;
  min-height: auto !important;
  max-height: calc(100vh - 28px) !important;
  overflow-y: auto !important;
}
.about-modal-content {
  font-size: 15px !important;
  line-height: 1.22 !important;
}
.about-modal-content p {
  margin-bottom: 10px !important;
}
.about-links-button-row {
  margin-top: 22px !important;
}
.about-footer-final {
  margin-top: 30px !important;
}


/* Build IZ: About dialog hyperlink text/domain update, revised confidentiality wording, and viewport-responsive sizing so the full dialog remains visible. */
.worksheet-frame > .about-modal-overlay {
  padding: 12px !important;
  overflow: hidden !important;
  align-items: center !important;
  justify-content: center !important;
}
.worksheet-frame > .about-modal-overlay .about-modal-panel {
  width: min(760px, calc(100vw - 24px)) !important;
  max-width: min(760px, calc(100vw - 24px)) !important;
  height: min(860px, calc(100vh - 24px)) !important;
  max-height: calc(100vh - 24px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 18px 22px 18px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}
.about-modal-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-right: 8px !important;
}
.about-links-button-row {
  flex: 0 0 auto !important;
  margin-top: 14px !important;
  gap: 18px !important;
}
.about-footer-final {
  flex: 0 0 auto !important;
  margin-top: 14px !important;
}
@media (max-height: 860px) {
  .worksheet-frame > .about-modal-overlay .about-modal-panel {
    padding: 16px 18px 14px !important;
  }
  .about-modal-content {
    font-size: 14px !important;
    line-height: 1.18 !important;
  }
  .about-modal-content p {
    margin: 0 0 9px !important;
  }
  .about-references-title {
    margin: 12px 0 4px !important;
    font-size: 13px !important;
  }
  .about-references {
    font-size: 11px !important;
    line-height: 1.12 !important;
  }
  .about-references li {
    margin-bottom: 6px !important;
  }
  .about-links-button-row {
    margin-top: 10px !important;
  }
  .about-footer-final {
    margin-top: 10px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }
}
@media (max-height: 740px) {
  .worksheet-frame > .about-modal-overlay .about-modal-panel {
    padding: 14px 16px 12px !important;
  }
  .about-modal-content {
    font-size: 13px !important;
    line-height: 1.14 !important;
  }
  .about-modal-content .about-title {
    margin: 0 0 10px !important;
    font-size: 16px !important;
  }
  .about-modal-content p {
    margin: 0 0 8px !important;
  }
  .about-references-title {
    margin: 10px 0 3px !important;
    font-size: 12px !important;
  }
  .about-references {
    padding-left: 24px !important;
    font-size: 10px !important;
    line-height: 1.08 !important;
  }
  .about-links a {
    margin-bottom: 5px !important;
  }
  .about-links-button-row button {
    min-width: 88px !important;
    min-height: 38px !important;
  }
  .about-footer-final {
    margin-top: 8px !important;
    font-size: 8px !important;
    line-height: 1.15 !important;
  }
}


/* Build JA: keep the About dialog at fixed worksheet dimensions so it scales proportionally with the application at every screen size. */
.worksheet-frame > .about-modal-overlay {
  padding: 0 !important;
  overflow: visible !important;
  align-items: center !important;
  justify-content: center !important;
}
.worksheet-frame > .about-modal-overlay .about-modal-panel {
  width: 760px !important;
  min-width: 760px !important;
  max-width: 760px !important;
  height: 860px !important;
  min-height: 860px !important;
  max-height: 860px !important;
  padding: 18px 22px 18px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}
.about-modal-content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding-right: 0 !important;
  font-size: 15px !important;
  line-height: 1.22 !important;
}
.about-modal-content .about-title {
  margin: 0 0 16px !important;
  font-size: 17px !important;
}
.about-modal-content p {
  margin: 0 0 10px !important;
}
.about-references-title {
  margin: 14px 0 4px !important;
  font-size: 14px !important;
}
.about-references {
  margin: 0 !important;
  padding-left: 28px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}
.about-references li {
  margin-bottom: 7px !important;
  padding-left: 6px !important;
}
.about-links-button-row {
  flex: 0 0 auto !important;
  margin-top: 22px !important;
  gap: 22px !important;
}
.about-footer-final {
  flex: 0 0 auto !important;
  margin-top: 30px !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}


/* Build JB: About helper-link sentence updated and hyperlink centered on its own line. */
.about-helper-link {
  text-align: center !important;
  margin: -2px 0 12px !important;
}
.about-helper-link a {
  display: inline-block !important;
}
@media (max-height: 860px) {
  .about-helper-link {
    margin: -1px 0 10px !important;
  }
}
@media (max-height: 740px) {
  .about-helper-link {
    margin: -1px 0 8px !important;
  }
}


/* Build JE: import dialog wording updates and centered helper-template hyperlink. */
.paste-data-about-panel.expanded .paste-data-template-note {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 34px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.paste-data-about-panel.expanded .paste-data-template-note p {
  margin: 0 !important;
}
.paste-data-about-panel.expanded .paste-data-template-link {
  text-align: center !important;
  margin: 2px 0 !important;
}
.paste-data-about-panel.expanded .paste-data-template-link a {
  display: inline-block !important;
}


/* Build JG: center import footer and provide clear space below reorder alert. */
.paste-data-about-panel.expanded .paste-data-template-note {
  text-align: center !important;
}
body.patient-reorder-needed .clinical-data-button-row {
  top: 592px !important;
}
body.patient-reorder-needed .clinical-print-button-row {
  top: 656px !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 691px !important;
}


/* Build JH: reserve a full row below the Age re-order alert. */
body.patient-reorder-needed .clinical-data-button-row {
  top: 620px !important;
}
body.patient-reorder-needed .clinical-print-button-row {
  top: 684px !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 719px !important;
}

/* Build JI: reserve space for the Age re-order alert without moving User/Team information. */
body.patient-reorder-needed .clinical-data-button-row {
  top: 584px !important;
}
body.patient-reorder-needed .clinical-print-button-row {
  top: 648px !important;
}
body.patient-reorder-needed #deletionsCompletedButton {
  top: 591px !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 683px !important;
}


/* Build JJ: use the first button row for the Age re-order alert.
   Preserve the normal positions of the remaining controls and User/Team display. */
body.patient-reorder-needed .clinical-data-button-row,
body.patient-reorder-needed .clinical-print-button-row,
body.patient-reorder-needed .logged-on-user-display {
  top: revert-layer;
}
/* Explicit normal geometry because this stylesheet contains earlier build overrides. */
body.patient-reorder-needed .clinical-data-button-row {
  top: 560px !important;
}
body.patient-reorder-needed .clinical-print-button-row {
  top: 624px !important;
}
body.patient-reorder-needed .logged-on-user-display {
  top: 683px !important;
}
body.patient-reorder-needed #storedRecordsButton,
body.patient-reorder-needed .clinical-save-split {
  visibility: hidden !important;
  pointer-events: none !important;
}
/* The alert occupies the vacated Stored Records / Save Data row. */
body.patient-reorder-needed .patient-reorder-row {
  top: 560px !important;
  height: 27px !important;
  line-height: 27px !important;
  z-index: 60 !important;
}
/* In selected-delete mode, retain a separate row for the completion control. */
body.patient-reorder-needed.clinical-selected-delete-mode #deletionsCompletedButton:not([hidden]) {
  top: 592px !important;
}


/* Build JK: keep User/Team information at its normal vertical position while the Age re-order alert is displayed. */
body.patient-reorder-needed .logged-on-user-display {
  top: 664px !important;
}


/* Build JM: Stored Records start dialog — one Show Records button per code field. */
#clinicalModalRoot .clinical-stored-panel .stored-patient-row,
body > #clinicalModalRoot .clinical-stored-panel .stored-patient-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-patient-row {
  top: 70px !important;
}
#clinicalModalRoot .clinical-stored-panel .stored-team-row,
body > #clinicalModalRoot .clinical-stored-panel .stored-team-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-team-row {
  top: 117px !important;
}
#clinicalModalRoot .clinical-stored-panel .stored-row-show-button,
body > #clinicalModalRoot .clinical-stored-panel .stored-row-show-button,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-row-show-button {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 4px !important;
  border: 1px solid #777 !important;
  background: #7f7f7f !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 28px !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
#clinicalModalRoot .clinical-stored-panel .stored-row-show-button:disabled,
body > #clinicalModalRoot .clinical-stored-panel .stored-row-show-button:disabled,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-row-show-button:disabled {
  background: #d9d9d9 !important;
  color: #777 !important;
  border-color: #bdbdbd !important;
  cursor: default !important;
}
#clinicalModalRoot .clinical-stored-panel .stored-start-cancel,
body > #clinicalModalRoot .clinical-stored-panel .stored-start-cancel,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-start-cancel {
  position: absolute !important;
  top: 171px !important;
  left: 0 !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}
#clinicalModalRoot .clinical-stored-panel .stored-start-cancel button.secondary,
body > #clinicalModalRoot .clinical-stored-panel .stored-start-cancel button.secondary,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-start-cancel button.secondary {
  width: 82px !important;
  min-width: 82px !important;
  max-width: 82px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  margin: 0 !important;
  background: #d9d9d9 !important;
  color: #000 !important;
  border: 1px solid #c7c7c7 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  line-height: 28px !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}




/* Build JO: final Stored Records start-dialog geometry.
   Center only the 104px code field + 12px gap + 100px Show Records button.
   Labels are positioned independently to the left and do not affect centering. */
#clinicalModalRoot .clinical-stored-panel .stored-code-row,
body > #clinicalModalRoot .clinical-stored-panel .stored-code-row,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-code-row {
  position: absolute !important;
  display: grid !important;
  grid-template-columns: 104px 100px !important;
  column-gap: 12px !important;
  align-items: center !important;
  left: 107px !important;
  width: 216px !important;
  height: 30px !important;
}
#clinicalModalRoot .clinical-stored-panel .stored-code-row label,
body > #clinicalModalRoot .clinical-stored-panel .stored-code-row label,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-code-row label {
  position: absolute !important;
  left: -107px !important;
  top: 0 !important;
  width: 98px !important;
  height: 30px !important;
  line-height: 30px !important;
  text-align: right !important;
  margin: 0 !important;
  padding: 0 !important;
}
#clinicalModalRoot .clinical-stored-panel .stored-code-row input,
body > #clinicalModalRoot .clinical-stored-panel .stored-code-row input,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-code-row input {
  grid-column: 1 !important;
}
#clinicalModalRoot .clinical-stored-panel .stored-code-row .stored-row-show-button,
body > #clinicalModalRoot .clinical-stored-panel .stored-code-row .stored-row-show-button,
.worksheet-frame > #clinicalModalRoot .clinical-stored-panel .stored-code-row .stored-row-show-button {
  grid-column: 2 !important;
}

/* Build JP: final tested top-control / Age Calculator geometry.
   Top edges remain fixed; both upper frames extend 3px downward.
   Age value box and New Record button are aligned at 25px high.
   Superseded height declarations for these controls were removed above. */
.top-strip.excel-top-layout {
  height: 87px !important;
  min-height: 87px !important;
  max-height: 87px !important;
}

.age-calculator {
  height: 87px !important;
  min-height: 87px !important;
  max-height: 87px !important;
}

.age-calc-value-unit,
#createAgeRecordButton {
  transform: translateY(3px) !important;
  height: 25px !important;
  min-height: 25px !important;
  max-height: 25px !important;
}

/* Build JQ: align Age Calculator frame with the GA/Guidelines/Risk/Legend frame.
   Move the entire Age Calculator frame up 3px without changing its height
   or any of the approved internal spacing. */
.age-calculator {
  transform: translateY(-3px) !important;
}


/* Build JV: registration completion uses the existing top-left Cancel button, relabeled Close. */
.clinical-code-assigned-box .clinical-assigned-close-button,
#clinicalAssignedCloseButton {
  display: none !important;
}
.clinical-access-card.clinical-code-assigned-mode #clinicalAccessCancelButton {
  display: block !important;
}

/* Build JW: unsaved alert occupies the Patient Data header area to the right of the title. */
.clinical-data-title-row { position: relative !important; }
.clinical-data-title-row .box-title { flex: 0 0 auto !important; overflow: visible !important; }
.clinical-current-user { flex: 1 1 auto !important; min-width: 0 !important; overflow: hidden !important; }
.clinical-current-user .clinical-unsaved-alert-inline {
  display: inline-block !important;
  margin-left: 14px !important;
  color: #d00 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 22px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  vertical-align: baseline !important;
}


/* Build JZ: taller New Patient save-choice dialog with a smaller plain Cancel button. */
.clinical-modal-panel.clinical-new-patient-panel,
#clinicalModalRoot .clinical-modal-panel.clinical-new-patient-panel,
body > #clinicalModalRoot .clinical-modal-panel.clinical-new-patient-panel {
  height: 172px !important;
  min-height: 172px !important;
  max-height: 172px !important;
}

.clinical-new-patient-panel .new-patient-save-message {
  margin: 18px 0 16px !important;
}

.clinical-new-patient-panel .new-patient-save-actions {
  margin-top: 0 !important;
}

.clinical-new-patient-panel .new-patient-cancel-actions {
  display: flex !important;
  justify-content: center !important;
  margin-top: 12px !important;
}

.clinical-new-patient-panel .new-patient-cancel-actions #newPatientCancel {
  width: 78px !important;
  min-width: 78px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  line-height: 24px !important;
  font-weight: 400 !important;
}

/* Build KH: Patient Data occupies the vertical interval from the top-control
   frame to the graph's Y=0 plot border. Geometry is set by renderer.js. */
.age-calculator { display: none !important; }
.clinical-left-column,
.clinical-side-panel { overflow: visible !important; }
.clinical-data-panel,
.data-panel.clinical-data-panel {
  margin: 0 !important;
  padding: 5px !important;
  border: 2px solid #999 !important;
  box-sizing: border-box !important;
  display: block !important;
  background: #fff !important;
}

/* Preserve the established Patient Data row height while showing 23 rows. */
.patient-table-scroll {
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  top: 29px !important;
  bottom: 34px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#patientTable { height: auto !important; border-collapse: collapse !important; }
#patientTable tbody tr:nth-child(-n+23),
#patientTable tbody tr.blank-patient-row { display: table-row !important; }
#patientTable tbody tr:nth-child(n+24) { display: none !important; }

/* The Age Calculator control is a link, centered at the bottom of Patient Data. */
.patient-age-calculator-link-row {
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  bottom: 5px !important;
  height: 24px !important;
  min-height: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}
.patient-age-calculator-link,
.patient-age-calculator-link:visited {
  color: #001a80 !important;
  text-decoration: underline !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  cursor: pointer !important;
}
.patient-age-calculator-link:focus-visible {
  outline: 1px dotted #000 !important;
  outline-offset: 2px !important;
}
.patient-virtual-scrollbar {
  top: 24px !important;
  height: calc(100% - 24px) !important;
}


/* Build KI: corrected Patient Data geometry and 25-row layout. */
.patient-table-scroll {
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  top: 29px !important;
  bottom: 24px !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#patientTable tbody tr:nth-child(-n+25),
#patientTable tbody tr.blank-patient-row { display: table-row !important; }
#patientTable tbody tr:nth-child(n+26) { display: none !important; }
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  height: var(--patient-row-height, 24.3px) !important;
  min-height: var(--patient-row-height, 24.3px) !important;
  max-height: var(--patient-row-height, 24.3px) !important;
}
#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: var(--patient-row-height, 24.3px) !important;
  min-height: var(--patient-row-height, 24.3px) !important;
  max-height: var(--patient-row-height, 24.3px) !important;
}
#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: var(--patient-input-height, 23.3px) !important;
  min-height: var(--patient-input-height, 23.3px) !important;
  max-height: var(--patient-input-height, 23.3px) !important;
}
.patient-age-calculator-link-row {
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  bottom: 4px !important;
  height: 16px !important;
  min-height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 !important;
}
.patient-age-calculator-link,
.patient-age-calculator-link:visited {
  display: inline !important;
  color: #001a80 !important;
  text-decoration: underline !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
}
.patient-virtual-scrollbar {
  top: 28px !important;
  height: calc(100% - 28px) !important;
}

/* Build KJ: 25 visible Patient Data rows with a slightly reduced row height.
   Keep the Age Calculator link centered in a reserved footer area. */
.patient-table-scroll {
  top: 29px !important;
  bottom: 24px !important;
  overflow: hidden !important;
}
#patientTable tbody tr:nth-child(-n+25),
#patientTable tbody tr.blank-patient-row {
  display: table-row !important;
}
#patientTable tbody tr:nth-child(n+26) {
  display: none !important;
}
.patient-age-calculator-link-row {
  left: 5px !important;
  right: 5px !important;
  bottom: 4px !important;
  height: 16px !important;
  min-height: 16px !important;
  justify-content: center !important;
  text-align: center !important;
}
.patient-age-calculator-link,
.patient-age-calculator-link:visited {
  font-size: 10px !important;
  font-weight: 400 !important;
  line-height: 14px !important;
}

/* Build KK: make the Patient Data table use the full dynamically-sized panel height.
   Earlier fixed 510px height/max-height declarations were still limiting the table to 21 rows. */
.patient-table-scroll {
  top: 29px !important;
  bottom: 28px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}
#patientTable tbody tr:nth-child(-n+25),
#patientTable tbody tr.blank-patient-row {
  display: table-row !important;
}
#patientTable tbody tr:nth-child(n+26) {
  display: none !important;
}
.patient-age-calculator-link-row {
  left: 5px !important;
  right: 5px !important;
  bottom: 4px !important;
  height: 20px !important;
  min-height: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 !important;
}
.patient-age-calculator-link,
.patient-age-calculator-link:visited {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
}


/* Build KL: fit all 25 Patient Data rows fully above the Age Calculator footer.
   The table scroll area reserves 28px at the bottom, so the JavaScript row-fit
   calculation uses the same 28px reservation plus a 1px safety margin. */

/* Build KM: hard-size the 25 Patient Data body rows so the 25th row is fully visible.
   Do not rely on the runtime CSS variable for this fit: prior builds could still render
   the historical row height in Safari. 23.8px is only 0.5px below the established
   24.3px row height and recovers 12.5px over 25 rows. */
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  height: 23.8px !important;
  min-height: 23.8px !important;
  max-height: 23.8px !important;
}
#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: 23.8px !important;
  min-height: 23.8px !important;
  max-height: 23.8px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: 22.8px !important;
  min-height: 22.8px !important;
  max-height: 22.8px !important;
  box-sizing: border-box !important;
}
.patient-virtual-scrollbar {
  height: 595px !important; /* 25 x 23.8px */
}


/* Build KO: use 24 fully visible Patient Data rows.
   The KM screenshot/field report established that 24 rows fit completely while the 25th
   is clipped in Safari. Favor a complete final row over forcing a partially visible 25th. */
#patientTable tbody tr:nth-child(-n+24),
#patientTable tbody tr.blank-patient-row {
  display: table-row !important;
}
#patientTable tbody tr:nth-child(n+25) {
  display: none !important;
}
.patient-virtual-scrollbar {
  height: 571.2px !important; /* 24 x 23.8px */
}


/* Build KP: 24 complete Patient Data rows.
   KO did not apply the intended 23.2px row height because its final CSS block
   was accidentally written with literal \n characters. This valid block replaces it. */
#patientTable tbody tr,
#patientTable tbody tr:nth-child(n),
#patientTable tbody tr:nth-child(n+18),
#patientTable tbody tr.blank-patient-row {
  height: 23.2px !important;
  min-height: 23.2px !important;
  max-height: 23.2px !important;
}
#patientTable tbody td,
#patientTable tbody tr:nth-child(n+18) td,
#patientTable tbody tr.blank-patient-row td {
  height: 23.2px !important;
  min-height: 23.2px !important;
  max-height: 23.2px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  height: 22.2px !important;
  min-height: 22.2px !important;
  max-height: 22.2px !important;
  box-sizing: border-box !important;
}
#patientTable tbody tr:nth-child(-n+24),
#patientTable tbody tr.blank-patient-row {
  display: table-row !important;
}
#patientTable tbody tr:nth-child(n+25) {
  display: none !important;
}
.patient-virtual-scrollbar {
  height: 556.8px !important; /* 24 x 23.2px */
}


/* KQ: Age Calculator link size */
.clinical-age-calculator-link,
.clinical-age-calculator-link a,
#ageCalculatorLink {
  font-size: 14px !important;
}


/* Build KR: static Patient Data geometry.
   The whole worksheet scales as one unit, so fixed worksheet coordinates preserve
   the requested alignments without runtime DOM measurement/reflow. */
.clinical-side-panel {
  position: relative !important;
  overflow: visible !important;
}
.clinical-data-panel,
.data-panel.clinical-data-panel {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: -82px !important;
  height: 678px !important;
  min-height: 678px !important;
  max-height: 678px !important;
  overflow: hidden !important;
}
.clinical-data-button-row {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 604px !important;
  margin-top: 0 !important;
}
.clinical-print-button-row {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 666px !important;
}
.logged-on-user-display { top: 698px !important; }
#patientReorderRow { top: 604px !important; }
#deletionsCompletedButton { top: 636px !important; }
.patient-age-calculator-link,
.patient-age-calculator-link:visited { font-size: 14px !important; }

/* Build KU: correct only the vertical placement/height of the Patient Data container.
   Keep the working 24-row table mechanics, row height, scrolling, ordering, and footer unchanged.
   Static worksheet coordinates avoid the runtime geometry/reflow loop that caused severe slowdown. */
.clinical-data-panel,
.data-panel.clinical-data-panel {
  top: -96px !important;
  height: 654px !important;
  min-height: 654px !important;
  max-height: 654px !important;
}
.clinical-data-button-row {
  top: 566px !important;
}
.clinical-print-button-row {
  top: 628px !important;
}
.logged-on-user-display {
  top: 660px !important;
}
#patientReorderRow {
  top: 566px !important;
}
#deletionsCompletedButton {
  top: 598px !important;
}


/* KV: apply the approved graph alignment on initial paint, not only after resize.
   These values exactly match alignTopStripToPlotArea() and alignXAxisControlsToPlotArea(). */
.top-strip.excel-top-layout {
  position: relative !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  left: 61px !important;
  width: 1036px !important;
  max-width: none !important;
}
.xaxis-controls {
  position: relative !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
  left: 62px !important;
  width: 1034px !important;
  max-width: none !important;
}

/* Build KX: one consistent BiliGuide blue for headings, entered GA values,
   links, Patient/Team information, and User/Team information. */
:root { --blue: #001a80 !important; }
.about-info-link,
.about-info-link:visited,
.patient-age-calculator-link,
.patient-age-calculator-link:visited,
.logged-on-user-display,
.logged-on-user-display .current-user-links a,
.logged-on-user-display .current-user-links a:visited,
.clinical-current-user,
.clinical-current-user a,
.clinical-current-user a:visited,
.ga-cell:not(.ga-cell-disabled) {
  color: #001a80 !important;
}

/* Build LV: clean Patient Data layout.
   Replaces the accumulated LH-LU Patient Data overrides with one compact block.
   All 24 rows are fixed at 23.5px, with each grid rule drawn exactly once. */

.patient-table-scroll {
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  top: 29px !important;
  bottom: 24px !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  border: 0 !important;
  box-shadow: none !important;
}

#patientTable,
#patientTable.data-table {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 592px !important; /* 28px header + 24 x 23.5px rows */
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  background: #fff !important;
}

#patientTable > thead {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}

#patientTable > thead > tr {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
}

#patientTable > thead > tr > th {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-top: 1px solid #bfbfbf !important;
  border-right: 1px solid #bfbfbf !important;
  border-bottom: 1px solid #bfbfbf !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

#patientTable > thead > tr > th:first-child {
  border-left: 1px solid #bfbfbf !important;
}

#patientTable > thead > tr > th.hours-header {
  flex-direction: column !important;
  white-space: nowrap !important;
  gap: 0 !important;
}

#patientTable > thead > tr > th.hours-header > span {
  display: block !important;
  line-height: 1 !important;
}

#patientTable > tbody {
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 28px !important;
  height: 564px !important; /* 24 x 23.5px */
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 0 !important;
}

#patientTable tbody > tr,
#patientTable tbody > tr:nth-child(n),
#patientTable tbody > tr:nth-child(n+18),
#patientTable tbody > tr.blank-patient-row {
  display: grid !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 23.5px !important;
  min-height: 23.5px !important;
  max-height: 23.5px !important;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  visibility: visible !important;
}

#patientTable tbody > tr:nth-child(1)  { top: 0px !important; }
#patientTable tbody > tr:nth-child(2)  { top: 23.5px !important; }
#patientTable tbody > tr:nth-child(3)  { top: 47px !important; }
#patientTable tbody > tr:nth-child(4)  { top: 70.5px !important; }
#patientTable tbody > tr:nth-child(5)  { top: 94px !important; }
#patientTable tbody > tr:nth-child(6)  { top: 117.5px !important; }
#patientTable tbody > tr:nth-child(7)  { top: 141px !important; }
#patientTable tbody > tr:nth-child(8)  { top: 164.5px !important; }
#patientTable tbody > tr:nth-child(9)  { top: 188px !important; }
#patientTable tbody > tr:nth-child(10) { top: 211.5px !important; }
#patientTable tbody > tr:nth-child(11) { top: 235px !important; }
#patientTable tbody > tr:nth-child(12) { top: 258.5px !important; }
#patientTable tbody > tr:nth-child(13) { top: 282px !important; }
#patientTable tbody > tr:nth-child(14) { top: 305.5px !important; }
#patientTable tbody > tr:nth-child(15) { top: 329px !important; }
#patientTable tbody > tr:nth-child(16) { top: 352.5px !important; }
#patientTable tbody > tr:nth-child(17) { top: 376px !important; }
#patientTable tbody > tr:nth-child(18) { top: 399.5px !important; }
#patientTable tbody > tr:nth-child(19) { top: 423px !important; }
#patientTable tbody > tr:nth-child(20) { top: 446.5px !important; }
#patientTable tbody > tr:nth-child(21) { top: 470px !important; }
#patientTable tbody > tr:nth-child(22) { top: 493.5px !important; }
#patientTable tbody > tr:nth-child(23) { top: 517px !important; }
#patientTable tbody > tr:nth-child(24) { top: 540.5px !important; }

#patientTable tbody > tr > td,
#patientTable tbody > tr:nth-child(n+18) > td,
#patientTable tbody > tr.blank-patient-row > td {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: 23.5px !important;
  min-height: 23.5px !important;
  max-height: 23.5px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-right: 1px solid #bfbfbf !important;
  border-bottom: 1px solid #bfbfbf !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
  overflow: hidden !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  color: #000 !important;
  font-size: 11.5px !important;
}

#patientTable tbody > tr > td:first-child,
#patientTable tbody > tr:nth-child(n+18) > td:first-child,
#patientTable tbody > tr.blank-patient-row > td:first-child {
  border-left: 1px solid #bfbfbf !important;
}

#patientTable tbody input,
#patientTable tbody tr:nth-child(n+18) input,
#patientTable tbody tr.blank-patient-row input {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #000 !important;
  text-align: center !important;
  line-height: 1 !important;
  font-size: 11.5px !important;
}

#patientTable tbody input:focus {
  outline: 2px solid #0a66c2 !important;
  outline-offset: -2px !important;
}

body:not(.clinical-selected-delete-mode) #patientTable th.record-delete-heading,
body:not(.clinical-selected-delete-mode) #patientTable td.record-delete-cell {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.clinical-selected-delete-mode #patientTable > thead > tr,
body.clinical-selected-delete-mode #patientTable tbody > tr {
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)) 18px !important;
}

body.clinical-selected-delete-mode #patientTable th.record-delete-heading,
body.clinical-selected-delete-mode #patientTable td.record-delete-cell {
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
}

/* The table ends at panel Y=621px (29 + 592). Center the Age Calculator link
   in all remaining panel space rather than pinning it to the bottom. */
.patient-age-calculator-link-row {
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  top: 621px !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.patient-age-calculator-link,
.patient-age-calculator-link:visited {
  color: #001a80 !important;
  text-decoration: underline !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
}

/* The virtual scroll height is derived in renderer.js from tbody.clientHeight/24. */
.patient-virtual-scrollbar {
  top: 28px !important;
  height: 564px !important;
  bottom: auto !important;
}

/* Build MA: narrow first-17-row normalization.
   Older first-17 rules remain in the stylesheet, but these final selectors make
   their cell/input box model identical to rows 18-24 without broad rewrites. */
#patientTable tbody > tr:nth-child(-n+17) > td {
  height: 23.5px !important;
  min-height: 23.5px !important;
  max-height: 23.5px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  border-right: 1px solid #bfbfbf !important;
  border-bottom: 1px solid #bfbfbf !important;
  outline: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: #fff !important;
}
#patientTable tbody > tr:nth-child(-n+17) > td:first-child {
  border-left: 1px solid #bfbfbf !important;
}
#patientTable tbody > tr:nth-child(-n+17) input {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  line-height: 1 !important;
}

/* Build MB: bottom-align X-axis controls with Print/Delete Records,
   and Log Off/View Profile with Click for more information.
   Patient Data geometry from MA is untouched. */

/* Chart-wrap height = 610px. The X-axis panel is 48px high.
   Original margin-top 8px put its bottom at about 666px.
   Print/Delete buttons end at 655px, so move the X-axis panel and the
   following information link upward by 11px via normal-flow margin. */
.xaxis-controls {
  margin-top: -3px !important;
}

/* With the information link moving upward by the same 11px, move the
   logged-on display upward 6px so the bottoms of Log Off / View Profile
   align with the bottom of Click for more information. */
.logged-on-user-display {
  top: 654px !important;
}

/* Build MC: lower the footer/link rows slightly while preserving MB's
   X-axis-to-button alignment and MA Patient Data geometry. */

/* Move User/Team plus Log Off/View Profile down 6px from MB. */
.logged-on-user-display {
  top: 660px !important;
}

/* Move Click for more information down by the same 6px without moving the
   X-axis gray rectangle. */
.about-info-link {
  position: relative !important;
  top: 6px !important;
}

/* Build MO: session-only expanded Age Calculator table. */
#patientTable .age-calculator-only,
.expanded-age-calculator-header,
.patient-age-calculator-done-link {
  display: none !important;
}

#patientTable > thead > tr > th.patient-age-heading,
#patientTable tbody > tr > td:nth-child(3) {
  border-left: 1px solid #bfbfbf !important;
}

body.age-calculator-expanded .expanded-age-calculator-header {
  display: block !important;
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  top: 29px !important;
  height: 88px !important;
  box-sizing: border-box !important;
  background: #fff !important;
  z-index: 2 !important;
}

.expanded-birth-fields {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  align-items: start !important;
  gap: 8px !important;
  padding: 6px 4px 0 !important;
  font-size: 12px !important;
}

.expanded-birth-fields label {
  display: grid !important;
  grid-template-rows: auto 26px !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 2px !important;
  white-space: nowrap !important;
}

.expanded-birth-fields input {
  width: 92px !important;
  height: 26px !important;
  box-sizing: border-box !important;
  border: 1px solid #aaa !important;
  padding: 2px 4px !important;
  text-align: center !important;
  font-size: 12px !important;
}

.expanded-age-calculator-message {
  margin-top: 12px !important;
  color: #04e !important;
  text-align: center !important;
  font-size: 12px !important;
  line-height: 15px !important;
}

.expanded-age-calculator-message.error {
  color: #b00000 !important;
  font-weight: 700 !important;
}

body.age-calculator-expanded.age-calculator-dob-required #patientTable td.age-calculator-only .date-selector-input-wrap {
  visibility: hidden !important;
}

body.age-calculator-expanded .patient-table-scroll {
  top: 117px !important;
  bottom: 30px !important;
}

body.age-calculator-expanded #patientTable .age-calculator-only {
  display: flex !important;
}

body.age-calculator-expanded #patientTable,
body.age-calculator-expanded #patientTable.data-table {
  height: 508px !important;
}

body.age-calculator-expanded #patientTable > thead > tr,
body.age-calculator-expanded #patientTable tbody > tr {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.3fr) minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, 1fr) minmax(0, 1fr) !important;
}

body.age-calculator-expanded #patientTable > tbody {
  height: 480px !important;
}

body.age-calculator-expanded #patientTable tbody > tr,
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n),
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n+18),
body.age-calculator-expanded #patientTable tbody > tr.blank-patient-row,
body.age-calculator-expanded #patientTable tbody > tr > td,
body.age-calculator-expanded #patientTable tbody input {
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
}

body.age-calculator-expanded #patientTable tbody > tr:nth-child(1)  { top: 0 !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(2)  { top: 20px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(3)  { top: 40px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(4)  { top: 60px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(5)  { top: 80px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(6)  { top: 100px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(7)  { top: 120px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(8)  { top: 140px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(9)  { top: 160px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(10) { top: 180px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(11) { top: 200px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(12) { top: 220px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(13) { top: 240px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(14) { top: 260px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(15) { top: 280px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(16) { top: 300px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(17) { top: 320px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(18) { top: 340px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(19) { top: 360px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(20) { top: 380px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(21) { top: 400px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(22) { top: 420px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(23) { top: 440px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(24) { top: 460px !important; }

body.age-calculator-expanded .patient-age-calculator-link-row {
  top: auto !important;
  bottom: 0 !important;
  height: 30px !important;
}

body.age-calculator-expanded .patient-age-calculator-link { display: none !important; }
body.age-calculator-expanded .patient-age-calculator-done-link {
  display: inline !important;
  color: #04e !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

body.age-calculator-expanded .patient-virtual-scrollbar {
  top: 28px !important;
  height: 480px !important;
}

/* Build MP: expand the Age Calculator form left over the graph. The original
   four Patient Data columns retain their normal widths; Date and Time occupy
   only the newly added width. */
body.age-calculator-expanded .clinical-data-panel,
body.age-calculator-expanded .data-panel.clinical-data-panel {
  left: -160px !important;
  right: 0 !important;
  width: auto !important;
  z-index: 25 !important;
  outline: none !important;
}

body.age-calculator-expanded .expanded-birth-fields {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  padding: 6px 10px 0 !important;
}

body.age-calculator-expanded .expanded-birth-fields label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  font-size: 12px !important;
}

body.age-calculator-expanded .expanded-birth-fields input {
  width: 100px !important;
}

body.age-calculator-expanded #patientTable > thead > tr,
body.age-calculator-expanded #patientTable tbody > tr {
  /* Added width: 88px Date + 72px Time. Remaining four columns preserve the
     baseline 1.15:1:1:1 proportions and therefore their original widths. */
  grid-template-columns: 88px 72px minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)) !important;
}

body.age-calculator-expanded #patientTable,
body.age-calculator-expanded #patientTable.data-table {
  height: 498px !important; /* 28px header + 20 x 23.5px rows */
}

body.age-calculator-expanded #patientTable > tbody {
  height: 470px !important;
}

body.age-calculator-expanded #patientTable tbody > tr,
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n),
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n+18),
body.age-calculator-expanded #patientTable tbody > tr.blank-patient-row,
body.age-calculator-expanded #patientTable tbody > tr > td,
body.age-calculator-expanded #patientTable tbody input {
  height: 23.5px !important;
  min-height: 23.5px !important;
  max-height: 23.5px !important;
}

body.age-calculator-expanded #patientTable tbody > tr:nth-child(1)  { top: 0 !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(2)  { top: 23.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(3)  { top: 47px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(4)  { top: 70.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(5)  { top: 94px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(6)  { top: 117.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(7)  { top: 141px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(8)  { top: 164.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(9)  { top: 188px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(10) { top: 211.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(11) { top: 235px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(12) { top: 258.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(13) { top: 282px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(14) { top: 305.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(15) { top: 329px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(16) { top: 352.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(17) { top: 376px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(18) { top: 399.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(19) { top: 423px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(20) { top: 446.5px !important; }

body.age-calculator-expanded .patient-virtual-scrollbar {
  height: 470px !important;
}

/* Hour/minute selector used by both the existing and expanded calculators. */
.time-selector-panel {
  display: block !important;
  width: 176px !important;
  min-width: 176px !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}
.time-selector-title {
  margin-bottom: 6px !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}
.time-selector-fields {
  display: grid !important;
  grid-template-columns: 1fr 10px 1fr !important;
  align-items: end !important;
  gap: 3px !important;
}
.time-selector-fields label {
  display: grid !important;
  gap: 2px !important;
  text-align: center !important;
  font-size: 10px !important;
}
.time-selector-fields select {
  width: 62px !important;
  height: 25px !important;
  font-size: 12px !important;
}
.time-selector-colon {
  padding-bottom: 5px !important;
  text-align: center !important;
  font-weight: 700 !important;
}
.time-selector-actions {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-top: 8px !important;
}
.time-selector-actions button {
  min-width: 54px !important;
  height: 24px !important;
  font-size: 10px !important;
}

/* Build MQ: inset the expanded frame from the underlying graph frame and add
   intentional date/time selector controls without changing data columns. */
body.age-calculator-expanded .clinical-data-panel,
body.age-calculator-expanded .data-panel.clinical-data-panel {
  left: -168px !important;
  top: -95px !important;
  height: 652px !important;
  min-height: 652px !important;
  max-height: 652px !important;
  padding-left: 13px !important;
  box-shadow: -96px 0 0 #fff !important;
}

body.age-calculator-expanded .patient-table-scroll,
body.age-calculator-expanded .expanded-age-calculator-header,
body.age-calculator-expanded .patient-age-calculator-link-row {
  left: 13px !important;
}

.selector-input-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.selector-input-wrap > input {
  width: 100% !important;
  padding-right: 18px !important;
  box-sizing: border-box !important;
}

.field-selector-button {
  position: absolute !important;
  top: 2px !important;
  right: 3px !important;
  width: 10px !important;
  min-width: 10px !important;
  height: 10px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #466b9c !important;
  font-size: 14px !important;
  line-height: 8px !important;
  cursor: pointer !important;
}

.field-selector-button:hover,
.field-selector-button:focus-visible {
  background: transparent !important;
  color: #04e !important;
  outline: 1px solid #04e !important;
}

body.age-calculator-expanded .expanded-birth-fields .selector-input-wrap {
  width: 100px !important;
  height: 26px !important;
}

/* The red out-of-order marker belongs on the first visible column. Date is
   first while expanded; Age is first on the underlying four-column form. */
body:not(.age-calculator-expanded) #patientTable tbody tr.out-of-order-patient-row > td:nth-child(3) {
  position: relative !important;
}
body:not(.age-calculator-expanded) #patientTable tbody tr.out-of-order-patient-row > td:nth-child(3)::before {
  content: "" !important;
  position: absolute !important;
  left: -2px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 11px solid transparent !important;
  border-bottom: 11px solid transparent !important;
  border-left: 18px solid #ff0000 !important;
  z-index: 25 !important;
}

/* Build MS: refined expanded modal, compact time selector, and one additional
   visible date-time row. */
body.age-calculator-expanded .worksheet-frame::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 48px !important;
  bottom: 0 !important;
  z-index: 20 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  pointer-events: auto !important;
}

body.age-calculator-expanded .clinical-data-panel,
body.age-calculator-expanded .data-panel.clinical-data-panel {
  box-shadow: -96px 0 0 #fff, -96px 2px 0 #fff !important;
}

body.age-calculator-expanded .expanded-age-calculator-message,
body.age-calculator-expanded .patient-age-calculator-done-link,
body.age-calculator-expanded .patient-age-calculator-done-link:visited {
  color: #002080 !important;
}

.field-selector-button {
  top: 1px !important;
  right: 2px !important;
  width: 12px !important;
  min-width: 12px !important;
  height: 12px !important;
  font-size: 18px !important;
  line-height: 9px !important;
}

body.age-calculator-expanded #patientTable tbody input,
body.age-calculator-expanded #patientTable tbody td {
  font-size: 11.5px !important;
}

body.age-calculator-expanded #patientTable,
body.age-calculator-expanded #patientTable.data-table {
  height: 504.7px !important; /* 28px header + 21 x 22.7px rows */
}

body.age-calculator-expanded #patientTable > tbody {
  height: 476.7px !important;
}

body.age-calculator-expanded #patientTable tbody > tr,
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n),
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n+18),
body.age-calculator-expanded #patientTable tbody > tr.blank-patient-row,
body.age-calculator-expanded #patientTable tbody > tr > td,
body.age-calculator-expanded #patientTable tbody input {
  height: 22.7px !important;
  min-height: 22.7px !important;
  max-height: 22.7px !important;
}

body.age-calculator-expanded #patientTable tbody > tr:nth-child(1)  { top: 0 !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(2)  { top: 22.7px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(3)  { top: 45.4px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(4)  { top: 68.1px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(5)  { top: 90.8px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(6)  { top: 113.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(7)  { top: 136.2px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(8)  { top: 158.9px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(9)  { top: 181.6px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(10) { top: 204.3px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(11) { top: 227px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(12) { top: 249.7px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(13) { top: 272.4px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(14) { top: 295.1px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(15) { top: 317.8px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(16) { top: 340.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(17) { top: 363.2px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(18) { top: 385.9px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(19) { top: 408.6px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(20) { top: 431.3px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(21) { top: 454px !important; }

body.age-calculator-expanded .patient-virtual-scrollbar {
  height: 476.7px !important;
}

body:not(.age-calculator-expanded) .patient-table-scroll::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 592px !important;
  bottom: 0 !important;
  z-index: 15 !important;
  background: #fff !important;
  pointer-events: none !important;
}

body:not(.age-calculator-expanded) #patientTable > thead > tr > th.age-calculator-only,
body:not(.age-calculator-expanded) #patientTable > tbody > tr > td.age-calculator-only {
  display: none !important;
}

.time-selector-panel {
  width: 190px !important;
  min-width: 190px !important;
}
.time-selector-fields {
  grid-template-columns: 64px 10px 1fr !important;
}
.time-selector-minute-digits {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px !important;
}
.time-selector-minute-digits label {
  min-width: 0 !important;
}
.time-selector-fields select {
  width: 58px !important;
}
.time-selector-minute-digits select {
  width: 42px !important;
}
.time-selector-actions {
  justify-content: center !important;
  gap: 18px !important;
  margin-top: 6px !important;
}
.time-selector-actions button {
  min-width: 0 !important;
  width: auto !important;
  height: 18px !important;
  min-height: 18px !important;
  padding: 0 2px !important;
  border: 0 !important;
  background: transparent !important;
  color: #002080 !important;
  font-size: 10px !important;
  line-height: 16px !important;
  text-decoration: underline !important;
}
.time-selector-actions button:hover,
.time-selector-actions button:focus-visible {
  color: #04e !important;
  outline: 1px dotted #002080 !important;
}

/* Build MT: 50% modal wash, date-only selector arrows, and 22 complete rows. */
body.age-calculator-expanded .worksheet-frame::after {
  background: rgba(255, 255, 255, 0.50) !important;
}

body.age-calculator-expanded .patient-table-scroll {
  top: 114px !important;
}

body.age-calculator-expanded #patientTable,
body.age-calculator-expanded #patientTable.data-table {
  height: 503.2px !important; /* 28px header + 22 x 21.6px rows */
}

body.age-calculator-expanded #patientTable > tbody {
  height: 475.2px !important;
}

body.age-calculator-expanded #patientTable tbody > tr,
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n),
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n+18),
body.age-calculator-expanded #patientTable tbody > tr.blank-patient-row,
body.age-calculator-expanded #patientTable tbody > tr > td,
body.age-calculator-expanded #patientTable tbody input {
  height: 21.6px !important;
  min-height: 21.6px !important;
  max-height: 21.6px !important;
}

body.age-calculator-expanded #patientTable tbody > tr:nth-child(1)  { top: 0 !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(2)  { top: 21.6px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(3)  { top: 43.2px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(4)  { top: 64.8px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(5)  { top: 86.4px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(6)  { top: 108px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(7)  { top: 129.6px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(8)  { top: 151.2px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(9)  { top: 172.8px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(10) { top: 194.4px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(11) { top: 216px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(12) { top: 237.6px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(13) { top: 259.2px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(14) { top: 280.8px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(15) { top: 302.4px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(16) { top: 324px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(17) { top: 345.6px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(18) { top: 367.2px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(19) { top: 388.8px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(20) { top: 410.4px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(21) { top: 432px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(22) { top: 453.6px !important; }

body.age-calculator-expanded .patient-virtual-scrollbar {
  top: 28px !important;
  height: 475.2px !important;
}

.date-selector-input-wrap > input {
  padding-right: 19px !important;
}

.date-selector-input-wrap > .field-selector-button {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 18px !important;
  min-width: 18px !important;
  height: 100% !important;
  min-height: 100% !important;
  border-left: 1px solid #c5c5c5 !important;
  background: rgba(235, 235, 235, 0.72) !important;
  color: #365f91 !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

/* Build MZ: Safari-safe header clearance and a single Date-field frame. */
body:not(.age-calculator-expanded) .age-entry-hint { top: 34px !important; }
body.age-calculator-expanded .expanded-age-calculator-message { top: 39px !important; }

body:not(.age-calculator-expanded) .patient-table-scroll {
  top: 56px !important;
  bottom: 20px !important;
  padding-top: 0 !important;
}

body.age-calculator-expanded .patient-table-scroll {
  top: 90px !important;
  bottom: 26px !important;
  padding-top: 0 !important;
}

body:not(.age-calculator-expanded) #patientTable,
body.age-calculator-expanded #patientTable {
  top: 4px !important;
}

.date-selector-input-wrap {
  background: #fff !important;
  border: 1px solid #aaa !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.date-selector-input-wrap > input {
  height: 100% !important;
  border: 0 !important;
  background: #fff !important;
}

.date-selector-input-wrap > .field-selector-button {
  border: 0 !important;
  background: #fff !important;
}

body.age-calculator-expanded #patientTable td.age-calculator-only {
  background: #fff !important;
}

/* Build NA: larger protected header area, one grid rule per Date cell,
   Age-column sorting, and no underlying action buttons in modal mode. */
body:not(.age-calculator-expanded) .age-entry-hint { top: 26px !important; }
body.age-calculator-expanded .expanded-age-calculator-message { top: 31px !important; }

body:not(.age-calculator-expanded) .patient-table-scroll { top: 48px !important; bottom: 16px !important; }
body.age-calculator-expanded .patient-table-scroll { top: 82px !important; bottom: 16px !important; }

body:not(.age-calculator-expanded) #patientTable,
body.age-calculator-expanded #patientTable {
  top: 12px !important;
}

body.age-calculator-expanded #patientTable td.age-calculator-only .date-selector-input-wrap {
  border: 0 !important;
}

#patientTable thead th.patient-age-heading.sortable-age-header {
  position: relative !important;
  padding-left: 1px !important;
  padding-right: 17px !important;
}

body.age-calculator-expanded .clinical-data-button-row,
body.age-calculator-expanded .clinical-print-button-row {
  visibility: hidden !important;
  pointer-events: none !important;
}

.date-selector-input-wrap > .field-selector-button:hover,
.date-selector-input-wrap > .field-selector-button:focus-visible {
  background: #dfe8f2 !important;
  color: #002080 !important;
}

body:not(.age-calculator-expanded) #ageCalculatorLink,
body:not(.age-calculator-expanded) #ageCalculatorLink:visited {
  font-size: 13px !important;
}

/* Build MU: 24 rows in both forms and a tighter Date-Time header. */
.date-selector-input-wrap > .field-selector-button {
  border-left: 0 !important;
  background: #fff !important;
}

.date-selector-input-wrap > .field-selector-button:hover,
.date-selector-input-wrap > .field-selector-button:focus-visible {
  background: #f4f6f9 !important;
}

body.age-calculator-expanded .expanded-age-calculator-header {
  height: 77px !important;
}

body.age-calculator-expanded .expanded-birth-fields {
  padding-top: 3px !important;
}

body.age-calculator-expanded .expanded-birth-fields input,
body.age-calculator-expanded .expanded-birth-fields .selector-input-wrap {
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
}

body.age-calculator-expanded .expanded-age-calculator-message {
  margin-top: 3px !important;
  font-size: 10px !important;
  line-height: 12px !important;
}

body.age-calculator-expanded .patient-table-scroll {
  top: 106px !important;
}

body.age-calculator-expanded #patientTable,
body.age-calculator-expanded #patientTable.data-table {
  height: 510.4px !important; /* 28px header + 24 x 20.1px rows */
}

body.age-calculator-expanded #patientTable > tbody {
  height: 482.4px !important;
}

body.age-calculator-expanded #patientTable tbody > tr,
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n),
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n+18),
body.age-calculator-expanded #patientTable tbody > tr.blank-patient-row,
body.age-calculator-expanded #patientTable tbody > tr > td,
body.age-calculator-expanded #patientTable tbody input {
  height: 20.1px !important;
  min-height: 20.1px !important;
  max-height: 20.1px !important;
}

body.age-calculator-expanded #patientTable tbody > tr:nth-child(1)  { top: 0 !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(2)  { top: 20.1px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(3)  { top: 40.2px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(4)  { top: 60.3px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(5)  { top: 80.4px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(6)  { top: 100.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(7)  { top: 120.6px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(8)  { top: 140.7px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(9)  { top: 160.8px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(10) { top: 180.9px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(11) { top: 201px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(12) { top: 221.1px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(13) { top: 241.2px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(14) { top: 261.3px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(15) { top: 281.4px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(16) { top: 301.5px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(17) { top: 321.6px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(18) { top: 341.7px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(19) { top: 361.8px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(20) { top: 381.9px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(21) { top: 402px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(22) { top: 422.1px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(23) { top: 442.2px !important; }
body.age-calculator-expanded #patientTable tbody > tr:nth-child(24) { top: 462.3px !important; }

body.age-calculator-expanded .patient-virtual-scrollbar {
  height: 482.4px !important;
}

body:not(.age-calculator-expanded) #patientTable,
body:not(.age-calculator-expanded) #patientTable.data-table {
  height: 596.8px !important; /* 28px header + 24 x 23.7px rows */
}

body:not(.age-calculator-expanded) #patientTable > tbody {
  height: 568.8px !important;
}

body:not(.age-calculator-expanded) #patientTable tbody > tr,
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(n),
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(n+18),
body:not(.age-calculator-expanded) #patientTable tbody > tr.blank-patient-row,
body:not(.age-calculator-expanded) #patientTable tbody > tr > td,
body:not(.age-calculator-expanded) #patientTable tbody input {
  height: 23.7px !important;
  min-height: 23.7px !important;
  max-height: 23.7px !important;
}

body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(1)  { top: 0 !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(2)  { top: 23.7px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(3)  { top: 47.4px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(4)  { top: 71.1px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(5)  { top: 94.8px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(6)  { top: 118.5px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(7)  { top: 142.2px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(8)  { top: 165.9px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(9)  { top: 189.6px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(10) { top: 213.3px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(11) { top: 237px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(12) { top: 260.7px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(13) { top: 284.4px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(14) { top: 308.1px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(15) { top: 331.8px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(16) { top: 355.5px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(17) { top: 379.2px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(18) { top: 402.9px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(19) { top: 426.6px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(20) { top: 450.3px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(21) { top: 474px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(22) { top: 497.7px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(23) { top: 521.4px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(24) { top: 545.1px !important; }

body:not(.age-calculator-expanded) .patient-virtual-scrollbar {
  height: 568.8px !important;
}

body:not(.age-calculator-expanded) .patient-table-scroll::after {
  top: 596.8px !important;
}

body:not(.age-calculator-expanded) #ageCalculatorLink,
body:not(.age-calculator-expanded) #ageCalculatorLink:visited,
body.age-calculator-expanded #ageCalculatorDoneLink,
body.age-calculator-expanded #ageCalculatorDoneLink:visited {
  font-size: 13px !important;
  font-weight: 400 !important;
}

/* Build MV: harmonized Age and Date-Time entry forms. Both modes expose the
   same 23-row working area, share one hint baseline, and retain a common
   bottom edge while the Date-Time frame rises to make room for birth fields. */
.age-entry-hint,
body.age-calculator-expanded .expanded-age-calculator-message {
  position: absolute !important;
  left: 5px !important;
  right: 5px !important;
  margin: 0 !important;
  height: 14px !important;
  font-size: 10px !important;
  line-height: 14px !important;
  font-weight: 400 !important;
  color: #002080 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

body:not(.age-calculator-expanded) .age-entry-hint {
  display: block !important;
  top: 48px !important;
}

body.age-calculator-expanded .age-entry-hint {
  display: none !important;
}

body:not(.age-calculator-expanded) .patient-table-scroll {
  top: 71px !important;
}

body.age-calculator-expanded .clinical-data-panel,
body.age-calculator-expanded .data-panel.clinical-data-panel {
  top: -130px !important;
  height: 687px !important;
  min-height: 687px !important;
  max-height: 687px !important;
}

body.age-calculator-expanded .expanded-age-calculator-message {
  top: 83px !important;
}

body.age-calculator-expanded .patient-table-scroll {
  top: 106px !important;
}

body:not(.age-calculator-expanded) #patientTable,
body:not(.age-calculator-expanded) #patientTable.data-table,
body.age-calculator-expanded #patientTable,
body.age-calculator-expanded #patientTable.data-table {
  height: 557px !important; /* 28px header + 23 x 23px rows */
}

body:not(.age-calculator-expanded) #patientTable > tbody,
body.age-calculator-expanded #patientTable > tbody {
  height: 529px !important;
}

body:not(.age-calculator-expanded) #patientTable tbody > tr,
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(n),
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(n+18),
body:not(.age-calculator-expanded) #patientTable tbody > tr.blank-patient-row,
body:not(.age-calculator-expanded) #patientTable tbody > tr > td,
body:not(.age-calculator-expanded) #patientTable tbody input,
body.age-calculator-expanded #patientTable tbody > tr,
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n),
body.age-calculator-expanded #patientTable tbody > tr:nth-child(n+18),
body.age-calculator-expanded #patientTable tbody > tr.blank-patient-row,
body.age-calculator-expanded #patientTable tbody > tr > td,
body.age-calculator-expanded #patientTable tbody input {
  height: 23px !important;
  min-height: 23px !important;
  max-height: 23px !important;
}

body #patientTable tbody > tr:nth-child(1)  { top: 0 !important; }
body #patientTable tbody > tr:nth-child(2)  { top: 23px !important; }
body #patientTable tbody > tr:nth-child(3)  { top: 46px !important; }
body #patientTable tbody > tr:nth-child(4)  { top: 69px !important; }
body #patientTable tbody > tr:nth-child(5)  { top: 92px !important; }
body #patientTable tbody > tr:nth-child(6)  { top: 115px !important; }
body #patientTable tbody > tr:nth-child(7)  { top: 138px !important; }
body #patientTable tbody > tr:nth-child(8)  { top: 161px !important; }
body #patientTable tbody > tr:nth-child(9)  { top: 184px !important; }
body #patientTable tbody > tr:nth-child(10) { top: 207px !important; }
body #patientTable tbody > tr:nth-child(11) { top: 230px !important; }
body #patientTable tbody > tr:nth-child(12) { top: 253px !important; }
body #patientTable tbody > tr:nth-child(13) { top: 276px !important; }
body #patientTable tbody > tr:nth-child(14) { top: 299px !important; }
body #patientTable tbody > tr:nth-child(15) { top: 322px !important; }
body #patientTable tbody > tr:nth-child(16) { top: 345px !important; }
body #patientTable tbody > tr:nth-child(17) { top: 368px !important; }
body #patientTable tbody > tr:nth-child(18) { top: 391px !important; }
body #patientTable tbody > tr:nth-child(19) { top: 414px !important; }
body #patientTable tbody > tr:nth-child(20) { top: 437px !important; }
body #patientTable tbody > tr:nth-child(21) { top: 460px !important; }
body #patientTable tbody > tr:nth-child(22) { top: 483px !important; }
body #patientTable tbody > tr:nth-child(23) { top: 506px !important; }

body:not(.age-calculator-expanded) .patient-virtual-scrollbar,
body.age-calculator-expanded .patient-virtual-scrollbar {
  height: 529px !important;
}

body:not(.age-calculator-expanded) .patient-table-scroll::after {
  top: 557px !important;
}

body.age-calculator-expanded .expanded-age-calculator-message {
  top: 53px !important;
}

body.age-calculator-expanded .patient-table-scroll {
  top: 105px !important;
}

body.age-calculator-expanded .clinical-data-panel,
body.age-calculator-expanded .data-panel.clinical-data-panel {
  height: 688px !important;
  min-height: 688px !important;
  max-height: 688px !important;
}

body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(1), body.age-calculator-expanded #patientTable tbody > tr:nth-child(1) { top: 0 !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(2), body.age-calculator-expanded #patientTable tbody > tr:nth-child(2) { top: 23px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(3), body.age-calculator-expanded #patientTable tbody > tr:nth-child(3) { top: 46px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(4), body.age-calculator-expanded #patientTable tbody > tr:nth-child(4) { top: 69px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(5), body.age-calculator-expanded #patientTable tbody > tr:nth-child(5) { top: 92px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(6), body.age-calculator-expanded #patientTable tbody > tr:nth-child(6) { top: 115px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(7), body.age-calculator-expanded #patientTable tbody > tr:nth-child(7) { top: 138px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(8), body.age-calculator-expanded #patientTable tbody > tr:nth-child(8) { top: 161px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(9), body.age-calculator-expanded #patientTable tbody > tr:nth-child(9) { top: 184px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(10), body.age-calculator-expanded #patientTable tbody > tr:nth-child(10) { top: 207px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(11), body.age-calculator-expanded #patientTable tbody > tr:nth-child(11) { top: 230px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(12), body.age-calculator-expanded #patientTable tbody > tr:nth-child(12) { top: 253px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(13), body.age-calculator-expanded #patientTable tbody > tr:nth-child(13) { top: 276px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(14), body.age-calculator-expanded #patientTable tbody > tr:nth-child(14) { top: 299px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(15), body.age-calculator-expanded #patientTable tbody > tr:nth-child(15) { top: 322px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(16), body.age-calculator-expanded #patientTable tbody > tr:nth-child(16) { top: 345px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(17), body.age-calculator-expanded #patientTable tbody > tr:nth-child(17) { top: 368px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(18), body.age-calculator-expanded #patientTable tbody > tr:nth-child(18) { top: 391px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(19), body.age-calculator-expanded #patientTable tbody > tr:nth-child(19) { top: 414px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(20), body.age-calculator-expanded #patientTable tbody > tr:nth-child(20) { top: 437px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(21), body.age-calculator-expanded #patientTable tbody > tr:nth-child(21) { top: 460px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(22), body.age-calculator-expanded #patientTable tbody > tr:nth-child(22) { top: 483px !important; }
body:not(.age-calculator-expanded) #patientTable tbody > tr:nth-child(23), body.age-calculator-expanded #patientTable tbody > tr:nth-child(23) { top: 506px !important; }

/* Build MW: lift the unchanged 23-row list/header block and its blue guidance
   line together; enlarge only the Date/Time of Birth entry boxes. */
body:not(.age-calculator-expanded) .age-entry-hint {
  top: 50.5px !important;
}

body:not(.age-calculator-expanded) .patient-table-scroll {
  top: 73.5px !important;
}

body.age-calculator-expanded .expanded-age-calculator-message {
  top: 55.5px !important;
}

body.age-calculator-expanded .patient-table-scroll {
  top: 107.5px !important;
}

body.age-calculator-expanded .expanded-birth-fields input,
body.age-calculator-expanded .expanded-birth-fields .selector-input-wrap {
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
}

/* Build MX final override: move both unchanged 23-row objects upward. */
body:not(.age-calculator-expanded) .age-entry-hint { top: 38px !important; }
body:not(.age-calculator-expanded) .patient-table-scroll { top: 61px !important; }
body.age-calculator-expanded .expanded-age-calculator-message { top: 43px !important; }
body.age-calculator-expanded .patient-table-scroll { top: 95px !important; }

/* Build MY: expose the full top table rule without moving the table itself,
   retain bottom-row clearance, and restore the date-field outer edge. */
body:not(.age-calculator-expanded) .patient-table-scroll {
  top: 60px !important;
  padding-top: 1px !important;
}

body.age-calculator-expanded .patient-table-scroll {
  top: 94px !important;
  padding-top: 1px !important;
}

.date-selector-input-wrap > .field-selector-button {
  border-top: 1px solid #aaa !important;
  border-right: 1px solid #aaa !important;
  border-bottom: 1px solid #aaa !important;
}

/* Build NB: lift the complete header/list object by removing the table's
   unintended 12px internal offset. The viewport retains 1px of clearance. */
body:not(.age-calculator-expanded) #patientTable,
body:not(.age-calculator-expanded) #patientTable.data-table,
body.age-calculator-expanded #patientTable,
body.age-calculator-expanded #patientTable.data-table {
  top: 0 !important;
}

/* The table cell supplies the Date column's single frame. */
body.age-calculator-expanded #patientTable td.age-calculator-only .date-selector-input-wrap,
body.age-calculator-expanded #patientTable td.age-calculator-only .date-selector-input-wrap > input,
body.age-calculator-expanded #patientTable td.age-calculator-only .date-selector-input-wrap > .field-selector-button {
  border: 0 !important;
  box-shadow: none !important;
}

/* Date of Birth retains one outer wrapper frame. */
body.age-calculator-expanded .expanded-birth-fields .date-selector-input-wrap > .field-selector-button {
  border: 0 !important;
}

/* Move the guidance line and complete table/header assembly upward together.
   The header top now meets the lower edge of the selected Guidelines/Risk
   radio row, and the last row/link regain clear space at the panel bottom. */
body:not(.age-calculator-expanded) .age-entry-hint {
  top: 27px !important;
}

/* Build OD: the Age and Hours column headings select the entry unit. Both
   remain underlined links; the selected heading is bold and the other plain. */
#patientTable .age-entry-header-option {
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: #002080 !important;
  font: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
  display: inline-block !important;
  line-height: 1 !important;
}

#patientTable .age-entry-header-option.active {
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.age-calculator-expanded #patientTable .age-entry-header-option[aria-disabled="true"] {
  color: #000 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  cursor: default !important;
  opacity: 1 !important;
}

#patientTable .age-entry-header-option .age-entry-link-text,
#patientTable .age-entry-header-option .age-entry-link-detail {
  text-decoration: underline !important;
  text-decoration-thickness: auto !important;
}

#patientTable .age-entry-header-option .age-entry-link-text {
  display: block !important;
  font-size: inherit !important;
  line-height: 1 !important;
}

#patientTable .age-entry-header-option .age-entry-link-second-line {
  display: block !important;
  margin-top: 2px !important;
  font-size: 0.85em !important;
  line-height: 1 !important;
}

body:not(.age-calculator-expanded) #patientTable .age-entry-header-option.hours-entry-locked {
  color: #000 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  cursor: default !important;
}

body:not(.age-calculator-expanded) #patientTable .age-entry-header-option.hours-entry-locked .age-entry-link-text,
body:not(.age-calculator-expanded) #patientTable .age-entry-header-option.hours-entry-locked .age-entry-link-detail {
  text-decoration: none !important;
}

body:not(.age-calculator-expanded) #patientTable input[readonly] {
  cursor: default !important;
}

body:not(.age-calculator-expanded) .patient-table-scroll {
  top: 49px !important;
}

body.age-calculator-expanded .expanded-age-calculator-message {
  top: 32px !important;
}

body.age-calculator-expanded .patient-table-scroll {
  top: 83px !important;
}

/* Build NC: Safari can paint the absolutely positioned tbody/rows above the
   preceding thead. Establish an explicit paint order without changing any
   geometry: body below, complete header above. */
#patientTable > tbody {
  z-index: 1 !important;
}

#patientTable > thead {
  z-index: 20 !important;
  background: #fff !important;
}

/* The old white bottom mask can cover the last row rule in Safari and is no
   longer needed now that both modes have an exact 23-row table height. */
body:not(.age-calculator-expanded) .patient-table-scroll::after {
  content: none !important;
  display: none !important;
}

/* Keep the mode links above every table/viewport paint layer. */
.patient-age-calculator-link-row {
  z-index: 30 !important;
}

/* Build ND: match Patient Data to the Guidelines/Risk/Legend headings and
   align their rendered lower text edges. */
.clinical-data-title-row .box-title {
  font-size: 16px !important;
  line-height: 16.8px !important;
  transform: translateY(1.14px) !important;
}

/* Expanded mode is modal. Make the existing left spacer an opaque cover that
   continues through the lower-right worksheet, including graph labels, the
   X-axis control fill, and Log On. The page title above 48px remains visible. */
body.age-calculator-expanded .worksheet-frame::before {
  content: "" !important;
  position: absolute !important;
  top: 48px !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 557px !important;
  z-index: 21 !important;
  background: #fff !important;
  pointer-events: auto !important;
}

/* Build NE: use one explicit Patient/Team identification size in both modes;
   this enlarges the expanded identification and guarantees an exact match. */
.clinical-current-user {
  font-size: 16px !important;
  line-height: 17px !important;
}

/* Use all space from the table bottom to the inner panel frame as the footer
   row, so each link is vertically centered in that complete interval. */
body:not(.age-calculator-expanded) .patient-age-calculator-link-row {
  top: 609px !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-items: center !important;
}

/* Build NG: expanded-list identification, continuation-date entry, selected
   record deletion, and controls aligned to the full expanded panel width. */
.expanded-delete-selected-row {
  display: none;
}

body.age-calculator-expanded .expanded-delete-selected-row {
  position: absolute !important;
  display: flex !important;
  left: -168px !important;
  right: 0 !important;
  top: 600px !important;
  width: auto !important;
  height: 31px !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 61 !important;
}

body.age-calculator-expanded #expandedDeleteSelectedRecordsButton {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  height: 31px !important;
  min-height: 31px !important;
  max-height: 31px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  border: 1px solid #888 !important;
  border-radius: 0 !important;
  background: #e6e6e6 !important;
  color: #000 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

body.age-calculator-expanded #expandedDeleteSelectedRecordsButton:disabled {
  color: #888 !important;
  background: #ddd !important;
  cursor: default !important;
}

body.age-calculator-expanded.clinical-selected-delete-mode #expandedDeleteSelectedRecordsButton {
  border: 2px solid #777 !important;
  background: #8d8d8d !important;
  color: #fff !important;
}

body.age-calculator-expanded .patient-reorder-row {
  left: -168px !important;
  right: 0 !important;
  top: 650px !important;
  width: auto !important;
  text-align: center !important;
}

body.age-calculator-expanded.clinical-selected-delete-mode #patientTable > thead > tr,
body.age-calculator-expanded.clinical-selected-delete-mode #patientTable tbody > tr {
  grid-template-columns: 88px 72px minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)) 18px !important;
}

body.age-calculator-expanded #deletionsCompletedButton {
  display: none !important;
}

body.age-calculator-expanded .patient-age-calculator-link-row {
  top: 643px !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  align-items: center !important;
  gap: 0 !important;
}

/* Build NJ: keep clinical confirmation dialogs above the expanded modal
   shield and make their controls the sole interactive layer while open. */
body.clinical-modal-open #clinicalModalRoot {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483000 !important;
  pointer-events: none !important;
}

body.clinical-modal-open #clinicalModalRoot .clinical-modal-overlay,
body.clinical-modal-open #clinicalModalRoot .clinical-modal-panel,
body.clinical-modal-open #clinicalModalRoot .clinical-modal-actions,
body.clinical-modal-open #clinicalModalRoot button {
  pointer-events: auto !important;
}

body.age-calculator-expanded.clinical-modal-open .worksheet-frame::before,
body.age-calculator-expanded.clinical-modal-open .worksheet-frame::after,
body.age-calculator-expanded.clinical-modal-open .clinical-data-panel,
body.age-calculator-expanded.clinical-modal-open .expanded-delete-selected-row {
  pointer-events: none !important;
}

/* Build NL: validation guidance must remain visibly distinct after all
   expanded-panel color and typography overrides. */
body.age-calculator-expanded .expanded-age-calculator-message.error {
  color: #b00000 !important;
  font-weight: 700 !important;
}

/* Build NM: keep the expanded form's informational and action controls in a
   clear vertical sequence below the framed list. */
.expanded-storage-notice {
  display: none;
}

body.age-calculator-expanded .expanded-storage-notice {
  position: absolute !important;
  display: block !important;
  left: -168px !important;
  right: 0 !important;
  top: 565px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #04e !important;
  font-size: 14px !important;
  line-height: 20px !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
  z-index: 61 !important;
}

body.age-calculator-expanded .expanded-delete-selected-row {
  top: 596px !important;
}

body.age-calculator-expanded #expandedDeleteSelectedRecordsButton {
  font-size: 10px !important;
}

body.age-calculator-expanded .patient-reorder-row,
body.age-calculator-expanded.patient-reorder-needed .patient-reorder-row {
  top: 650px !important;
  height: 18px !important;
  line-height: 18px !important;
  transform: translateY(92px) !important;
}

/* Match the table's left and right inner white margins without changing the
   table or column widths. */
body.age-calculator-expanded .patient-table-scroll {
  left: 6px !important;
}

/* Red validation replaces the blue guidance in the same row. Give it more
   prominence and center it slightly lower between the birth fields and table. */
body.age-calculator-expanded .expanded-age-calculator-message.error {
  top: 35px !important;
  font-size: 13px !important;
  line-height: 17px !important;
}

/* Build NN: complete the Stored Team table frame in Safari. The scroll
   viewport supplies the two outer rules that border-collapse can clip. */
#clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
body > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.worksheet-frame > #clinicalModalRoot .clinical-stored-team-panel .stored-team-table-wrap,
.clinical-stored-team-panel .stored-team-table-wrap {
  border-right: 1px solid #b3b3b3 !important;
  border-bottom: 1px solid #b3b3b3 !important;
  box-sizing: border-box !important;
}

/* Use the application's established dark blue for the storage notice. */
body.age-calculator-expanded .expanded-storage-notice {
  color: #001a80 !important;
}

/* The table frame in the supplied view has a slightly larger left inset than
   right inset. Equalize the two sides without changing row geometry. */
body.age-calculator-expanded .patient-table-scroll {
  left: 3px !important;
  right: 3px !important;
}

/* Present both mode changes as the same quiet secondary action in the same
   centered footer position. */
.patient-age-calculator-link,
.patient-age-calculator-link:visited,
.patient-age-calculator-done-link,
.patient-age-calculator-done-link:visited,
body.age-calculator-expanded .patient-age-calculator-done-link,
body.age-calculator-expanded .patient-age-calculator-done-link:visited {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 150px !important;
  min-width: 150px !important;
  height: 27px !important;
  min-height: 27px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
  border: 1px solid #999 !important;
  border-radius: 0 !important;
  background: #f2f2f2 !important;
  color: #405574 !important;
  font-size: 9.5px !important;
  line-height: 25px !important;
  font-weight: 400 !important;
  text-decoration: none !important;
}

body:not(.age-calculator-expanded) .patient-age-calculator-done-link,
body.age-calculator-expanded .patient-age-calculator-link {
  display: none !important;
}

/* Build NO: the former 96px left white spacer was much wider than the
   worksheet's right-side margin. Preserve the panel/list geometry and reduce
   only that separate spacer to the matching width. */
body.age-calculator-expanded .clinical-data-panel,
body.age-calculator-expanded .data-panel.clinical-data-panel {
  left: -168px !important;
  box-shadow: -28px 0 0 #fff !important;
}

body.age-calculator-expanded .expanded-delete-selected-row,
body.age-calculator-expanded .patient-reorder-row,
body.age-calculator-expanded .expanded-storage-notice {
  left: -168px !important;
}

/* Build OL: center the standard guidance line in the vertical interval from
   the Patient ID/title line to the top frame of the unchanged data list. */
body:not(.age-calculator-expanded) .age-entry-hint {
  top: 28.75px !important;
}

/* Build PF: Safari-safe manual-paste fallback for Import Records. */
.paste-data-manual-panel {
  width: 520px !important;
}

.paste-data-manual-panel .paste-data-about-content p {
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  text-align: center !important;
}

.paste-data-manual-textarea {
  display: block !important;
  width: 100% !important;
  height: 380px !important;
  box-sizing: border-box !important;
  margin: 14px 0 0 !important;
  padding: 8px !important;
  resize: none !important;
  border: 1px solid #777 !important;
  background: #fff !important;
  color: #111 !important;
  font: 13px/1.35 Arial, Helvetica, sans-serif !important;
}

/* Build OX: make the calculated-hours display rule explicit without implying
   that manually entered hours are limited. Both lines fit above the table. */
body:not(.age-calculator-expanded) .age-entry-hint {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  height: 26px !important;
  line-height: 13px !important;
}

body:not(.age-calculator-expanded) .age-entry-calculated-hours-note {
  display: block !important;
  font-size: 8px !important;
  line-height: 10px !important;
  font-weight: 400 !important;
  color: #002080 !important;
  white-space: nowrap !important;
}

/* Build OY: place the out-of-order notice visibly higher in the standard
   layout, midway between the list frame and the action buttons. */
body:not(.age-calculator-expanded).patient-reorder-needed #patientReorderRow {
  transform: translateY(-5px) !important;
}

/* Build PE: balance the white space around the two-line instruction and move
   the complete block 1px upward from its PD position. */
body:not(.age-calculator-expanded) .age-entry-hint {
  top: 28.75px !important;
}

/* Build PB: keep Patient Data aligned with the worksheet headings while
   shifting the instruction, complete list, and mode button as requested. */
body:not(.age-calculator-expanded) .patient-table-scroll {
  transform: translateY(3px) !important;
}

body:not(.age-calculator-expanded) .patient-age-calculator-link-row {
  transform: translateY(1px) !important;
}

/* Align the standard deletion-complete action with the top of the X-axis
   range background without changing either object's dimensions. */
body:not(.age-calculator-expanded) #deletionsCompletedButton {
  top: 607px !important;
}

body.age-calculator-expanded .patient-age-calculator-link-row {
  left: 0 !important;
  right: 0 !important;
}

/* Footer order: framed panel/Done, delete action, re-order alert, then the
   two-line session/database explanation. */
body.age-calculator-expanded .expanded-delete-selected-row {
  top: 615px !important;
}

body.age-calculator-expanded .patient-reorder-row,
body.age-calculator-expanded.patient-reorder-needed .patient-reorder-row {
  top: 650px !important;
  transform: translateY(82px) !important;
}

body.age-calculator-expanded .expanded-storage-notice {
  top: 667px !important;
  color: #000 !important;
  font-size: 12px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
  white-space: normal !important;
}

/* Build NP: keep the opaque panel-side mask at the boundary immediately to
   the left of the expanded panel. */
body.age-calculator-expanded .worksheet-frame::before {
  left: auto !important;
  right: 0 !important;
  width: 474px !important;
}

/* Restore the 50% modal wash over the underlying worksheet through that
   boundary. Its 48px top offset leaves the page title fully opaque. */
body.age-calculator-expanded .worksheet-frame::after {
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  background: rgba(255, 255, 255, 0.50) !important;
}

/* Place the out-of-order alert midway between the framed list and the delete
   button. The ID selector intentionally supersedes the standard-view footer
   coordinate without changing the standard view. */
body.age-calculator-expanded #patientReorderRow,
body.age-calculator-expanded.patient-reorder-needed #patientReorderRow {
  top: 580px !important;
  transform: none !important;
}

/* The older mode-specific ID rules set these labels to 13px. Override those
   rules explicitly so the quiet secondary-button size is actually rendered. */
body:not(.age-calculator-expanded) #ageCalculatorLink,
body:not(.age-calculator-expanded) #ageCalculatorLink:visited,
body.age-calculator-expanded #ageCalculatorDoneLink,
body.age-calculator-expanded #ageCalculatorDoneLink:visited {
  font-size: 9.5px !important;
  font-weight: 400 !important;
  color: #405574 !important;
}

/* Use a compact standard-view mode button. Match the expanded return button
   to the 160px Delete Selected Records action below it. */
body:not(.age-calculator-expanded) #ageCalculatorLink,
body:not(.age-calculator-expanded) #ageCalculatorLink:visited {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}

body.age-calculator-expanded #ageCalculatorDoneLink,
body.age-calculator-expanded #ageCalculatorDoneLink:visited {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
}

/* Give the two mode-switch controls modest emphasis without full bold. */
body:not(.age-calculator-expanded) #ageCalculatorLink,
body:not(.age-calculator-expanded) #ageCalculatorLink:visited,
body.age-calculator-expanded #ageCalculatorDoneLink,
body.age-calculator-expanded #ageCalculatorDoneLink:visited {
  font-weight: 600 !important;
}

/* Build NR: the revised About document contains the complete four-line footer.
   Widen the fixed worksheet dialog so all content remains visible together
   without an internal scrollbar. */
.worksheet-frame > .about-modal-overlay .about-modal-panel {
  width: 920px !important;
  min-width: 920px !important;
  max-width: 920px !important;
}

/* Build NS: use the narrower revised About layout while retaining enough
   vertical wrapping to show the complete references, controls, and footer. */
.worksheet-frame > .about-modal-overlay .about-modal-panel {
  width: 860px !important;
  min-width: 860px !important;
  max-width: 860px !important;
}

/* Staged after NS: retain the requested explicit two-line storage notice by
   giving it a few more pixels on each side and a minimally smaller type size. */
body.age-calculator-expanded .expanded-storage-notice {
  left: -176px !important;
  right: -8px !important;
  font-size: 11.5px !important;
}

/* Build PM: use the same direct manual-paste workflow in every browser. */
.paste-data-about-panel.expanded {
  width: 650px !important;
  max-height: calc(100% - 16px) !important;
}

.paste-data-manual-entry > p {
  margin: 0 0 10px !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.paste-data-about-panel.expanded .paste-data-manual-textarea {
  height: 100px !important;
}

.paste-data-about-panel.compact .paste-data-manual-textarea {
  height: 380px !important;
}

.paste-data-controls .paste-data-about-actions {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  justify-content: center !important;
}

.paste-data-controls .paste-data-preference-row {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
}

.paste-data-about-panel.expanded .paste-data-template-note {
  padding-top: 10px !important;
}

/* Build PO: display pasted records in five-row vertical groups. Additional
   groups scroll horizontally; the preview never scrolls vertically. */
.paste-data-record-preview {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  width: 100% !important;
  height: 100px !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  border: 1px solid #777 !important;
  background: #fff !important;
  color: #111 !important;
  font: 13px/1.28 Arial, Helvetica, sans-serif !important;
}

.paste-data-record-preview[hidden] {
  display: none !important;
}

.paste-data-manual-textarea[hidden] {
  display: none !important;
}

.paste-data-record-group {
  flex: 0 0 calc((100% - 56px) / 5) !important;
  min-width: 90px !important;
}

.paste-data-about-panel.compact .paste-data-record-group {
  flex-basis: calc((100% - 42px) / 4) !important;
}

.paste-data-record {
  height: 17px !important;
  overflow: hidden !important;
  white-space: pre !important;
  text-overflow: clip !important;
}

/* Build PP: provide room and an explicit path for editing or appending data. */
.paste-data-about-panel.expanded {
  min-height: 630px !important;
  max-height: calc(100% - 8px) !important;
}

.paste-data-edit-more {
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 5px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #0057c8 !important;
  font: 12px/1.2 Arial, Helvetica, sans-serif !important;
  text-decoration: underline !important;
  cursor: pointer !important;
}

.paste-data-edit-more[hidden] {
  display: none !important;
}

/* Build PR: move the expanded-form birth-date requirement up one pixel. */
body.age-calculator-expanded .expanded-age-calculator-message.error {
  top: 34px !important;
}
