
@page {
    size: auto;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.mantine-Checkbox-label,
.mantine-CheckboxGroup-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

#graph-container {
    position: relative;
    z-index: 20;
}

#live-graph, #live-graph2, #live-graph3 {
    min-height: 400px;
}

/* ── Frosted-glass dropdown panel — consistent across all pages ─────────── */
.dropdown-menu {
  background: rgba(12, 24, 46, 0.82) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.38) !important;
  padding: 6px !important;
  min-width: 230px !important;
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.88) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  border-radius: 7px !important;
  padding: 9px 14px !important;
  transition: background 0.15s ease !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(255, 255, 255, 0.13) !important;
  color: #ffffff !important;
}

.dropdown-item + .dropdown-item {
  margin-top: 2px;
}

/* "Menu" trigger label */
.custom-dropdown-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.4px;
}

@media screen{
    .noScreen_custom{display: none;}
    .DateInput, .DateInput_1 {

}

table.dataTable thead th {
  white-space: wrap
}

/* Fix the font size and other stuff of datepicker*/
.DateInput_input, .DateInput_input_1 {
  /* my personal stuff */
  text-align: center;
  line-height: calc(1.5em + 0.75rem);
  /* default flatly stuff */
  height: calc(1.4em + 0.75rem + 2px);
  font-size: 0.9375rem;
  font-weight: 400;
  color: #7b8a8b;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
    .navbar-expand-md .navbar-nav .nav-link {
        padding-right: 0.5rem;
        padding-left: 5rem;
        }
    .print-class {}
    .noScreen{display: none;}
    .chrome{height:300px;}
    .title{height:20px}
    .hidden{display: none;}
    .loader-wrapper > div {
    visibility: visible !important;
}
    overflow:visible !important;
}

@media print{
      .noScreen_custom{display: none;}
      .DateInput, .DateInput_1 {
  width: 100%; /* replace with whatever length you prefer */
}

@media print {
    body {
        font-size: 12px; /* Set the font size to 11 pixels for printing */
    }
}
body {
    font-size: 12px; /* Set the font size to 11 pixels */
}

/* Fix the font size and other stuff of datepicker*/
.DateInput_input, .DateInput_input_1 {
  /* my personal stuff */
  text-align: center;
  line-height: calc(1.5em + 0.75rem);
  /* default flatly stuff */
  height: calc(1.4em + 0.75rem + 2px);
  font-size: 0.9375rem;
  font-weight: 400;
  color: #7b8a8b;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
    html{font-size: 12pt;}
    body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p{font-size: 12pt;}

    blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th{
           font-size: 8pt;
	  }

	  h1.entry-title {
	  font-size: 20pt !important;
         }
	   h1, h2, h3, h4, h5, h6,h1.entry-title {
	  font-size: 12pt !important;
         }
    .hidden{display: none;}
    .print-class {display: none;}
    .noScreen{}
    .chrome{height:300px
    }
    .title{height:20px}
    .name{height:30px}
    .name2{height:20px}
    .checklist{height:30px}
    .display-4{height:32px}
    .my-2{height:1px}
    .display-4{font-size: 100%}

    .hide_me{height:1px}
    overflow:visible !important;
    .custom_data_cell td {font-size: 6pt !important;}
}



/*
 *  This stylesheet defines the className dbc_light which helps improve
 *  the design of light themed Bootstrap apps
 */



/* fixes margins so data isn't cut off at table edges */
.dbc_light .dash-table-container .row {
    display : block !important;
    margin: 0 !important;
}

/* fixes  when the table dropdown doesn't drop down */
.dbc_light .Select-menu-outer {
    display: block !important;
}


/*
 *  sort arrow and delete icons in the DataTable header
 *  these icons appear when the table is sortable and/or columns are deletable
 */
.dbc_light .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner table {
    --accent: var(--primary) !important;
    --hover: none !important;
    --border: lightgrey !important;
    --text-color: var(--dark) !important;
}

/* pagination buttons - this removes the default pink hover  */
.dbc_light .last-page:hover, .previous-page:hover, .first-page:hover, .next-page:hover{
    color: var(--primary) !important;
}

/* table body */
.dbc_light .dash-spreadsheet td {
    fontfamily:  var(--font-family-sans-serif);
    background-color: var(--white) !important;
    color: var(--dark) !important;
    --border: lightgrey;
  /*  border-color: lightgrey !important; */
}


/* table header */
.dbc_light .dash-spreadsheet .dash-header {
    font-family:  var(--font-family-sans-serif);
    background-color: var(--light) !important;
    opacity: 0.9;
    color: var(--dark) !important;
    --accent: var(--primary) !important;
    --border: lightgrey;
}

/*  filter row in the header  */
.dbc_light .dash-spreadsheet .dash-filter {
    font-family:  var(--font-family-sans-serif);
    background-color: var(--light) !important;
    color: var(--dark) !important;
    --border: lightgrey;
}


.dbc_light input.dash-filter--case--sensitive {
    border-color: var(--primary) !important;
    border-radius: 3px;
    border-style: solid;
    border-width: 2px;
    color: var(--primary) !important;
}


/* tooltips - makes text readable in dark themes */
.dbc_light .dash-table-tooltip {
    color:black
}



/* row hover */
.dbc_light.dbc_row_hover .dash-spreadsheet td.dash-cell {
    border-color: lightgrey !important;
 }
.dbc_light.dbc_row_hover .dash-spreadsheet  tr:hover td.dash-cell {
    border-color: lightgrey !important;
    border-width: 1.5px !important;
    background-color: var(--light) !important;

}


/*------------------------------------
 * Sliders - makes the slider the "primary color"
 */

.dbc_light .rc-slider-handle {
  border: 0;
  background-color: var(--primary)
}

.dbc_light .rc-slider-rail {
   background-color: #ededed;  /* grey */
}

.dbc_light .rc-slider-track {
  background-color: var(--primary)
}

.dbc_light .rc-slider-dot {
  border: 0;
  background-color: #ededed; /* grey */
}

.dbc_light .rc-slider-dot.rc-slider-dot-active {
  background-color: var(--primary)
}

/* label color */
.dbc_light .rc-slider-mark-text {
  color: black
  opacity: 0.7
}

/* Makes the active label color different than default label color */
.dbc_light .rc-slider-mark-text.rc-slider-mark-text-active {
    color: black;
}

/* Dropdowns */
.dbc_light .VirtualizedSelectOption {
    background-color: white;
    color: black;
}

.dbc_light .VirtualizedSelectFocusedOption {
    background-color: lightgrey;
    color: black;
}

/* Tabs */
.dbc_light .tab-pane .card {
    border-top-left-radius: 0;
}

.dbc_light .nav-tabs {
    border-bottom-width: 0 !important;
}

.dbc_light .nav-link {
    border-width: 0.5px !important;
    border-color: rgba(100, 100, 100, 0.4) !important;
    color: var(--primary) !important;
}

.dbc_light .nav-link.active {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    border-color: rgba(100, 100, 100, 0.4);
}

.dbc_light .nav-item {
    margin-right: 0 !important;
}

.fa-cog {
    color: white;
}

.contact_card {
    margin: 0 auto; /* Added */
    float: none; /* Added */
    margin-bottom: 10px; /* Added */
}

@media print {
    button, .d-print-none {
        display: none;
    }
}

/* Add this CSS to ensure proper rendering for PDF */
.temp-adjustment {
    width: 100%;
}

/* Ensure proper page breaks */

}
@media print {
  /* scale down just the preop section */
  .content-to-print{
    transform: scale(0.90);          /* try 0.85–0.95 */
    transform-origin: top left;
    width: 111%;                      /* counteracts scale so it still fills page */
  }

  /* Inputs inside DataTable cells default to left-align in print; force center to match screen */
  .dash-spreadsheet td,
  .dash-spreadsheet td .dash-cell-value,
  .dash-spreadsheet td input,
  .dash-spreadsheet td .unfocused,
  .dash-spreadsheet td .focused {
    text-align: center !important;
  }
}

/* Applied during PDF capture via JS (generate_pdf.js applyAdjustments) */
.editing-cols-pdf .dash-spreadsheet tr { height: auto; }
.editing-cols-pdf .dash-spreadsheet td,
.editing-cols-pdf .dash-spreadsheet th {
  font-size: 10px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
  height: auto !important;
  border: none !important;
  border-bottom: 1px solid #ccc !important;
  white-space: nowrap !important;         /* time columns stay single-line */
  text-overflow: ellipsis !important;
  background-color: white !important;
  padding: 1px 2px !important;
  overflow: hidden !important;            /* pairs with ellipsis */
}

/* Prevent extra capture width from inflating the first column */
.editing-cols-pdf .dash-spreadsheet-container,
.editing-cols-pdf .dash-spreadsheet-inner,
.editing-cols-pdf .dash-spreadsheet-inner table {
  width: max-content !important;
}

.editing-cols-pdf .dash-spreadsheet-container {
  display: inline-block !important;
}
.editing-cols-pdf .dash-spreadsheet td {
  font-size: 13px !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
  height: auto !important;
  border: none !important;
  border-bottom: 1px solid #ccc !important;
  white-space: normal !important;
  text-overflow: ellipsis !important;
  background-color: white !important;
  padding: 1px 2px !important;
  text-align: center !important;
}
/* Ensure inputs inside the DataTable report center alignment so convertTextInputsToStatic()
   in generate_pdf.js carries the centering over to the .pdf-static-input replacement divs */
.editing-cols-pdf .dash-spreadsheet td input,
.editing-cols-pdf .dash-spreadsheet td .dash-cell-value,
.editing-cols-pdf .dash-spreadsheet td .pdf-static-input {
  text-align: center !important;
}
.editing-cols-pdf .dash-spreadsheet th {
  text-overflow: clip !important;
  white-space: normal !important;
  font-weight: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background-color: white !important;
}
/* column1 width is set precisely by JS measurement in generate_pdf.js;
   nowrap prevents drug names breaking across lines in the PDF */
.editing-cols-pdf .dash-spreadsheet td[data-dash-column="column1"],
.editing-cols-pdf .dash-spreadsheet th[data-dash-column="column1"] {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}
/* Fixed table layout so column widths are treated as hard constraints, not hints */
.editing-cols-pdf .dash-spreadsheet-inner table {
  table-layout: fixed !important;
}
.editing-cols-pdf .dash-spreadsheet-container {
  border: none !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ml1 {
    margin-top: 150px; /* Adjust this value to move the text down */
}

.slider-custom .rc-slider-handle {
    width: 20px;
    height: 30px;

}


.slider-custom .rc-slider-track {
    height: 16px; /* Adjust track height if needed */
}

.slider-custom .rc-slider-rail {
    height: 16px; /* Adjust rail height if needed */
}

.small-font {
    font-size: 14px;
}



/* Landing State: Stop container movement */
.landing {
  animation: landing 1s steps(2) 1 forwards;
}
/* Remove outer whitespace */
body { margin: 0 !important; padding: 0 !important; background: #ffffff; }

/* Tighten Bootstrap gutters */
.row { --bs-gutter-x: 0.2rem; --bs-gutter-y: 0.15rem; }

/* Tight labels */
label, .form-label { margin-bottom: 0 !important; line-height: 1.05 !important; }

/* Consistent button size across all pages (Bootstrap lg default is 20px, default is 16px) */
.btn {
  font-size: 14px !important;
  padding: 4px 10px !important;
}
.btn.btn-lg {
  font-size: 14px !important;
  padding: 5px 12px !important;
}
/* Sidebar (page 2) buttons one step smaller for visual consistency with compact form */
#sidebar .btn {
  font-size: 13px !important;
  padding: 3px 8px !important;
}

/* Compact inputs/selects */
.form-control, .form-select {
  min-height: 24px !important;
  height: 24px !important;
  padding: 0 6px !important;
  line-height: 1.1 !important;
  font-size: 12px !important;
}

/* Custom time input/button on page 2 — exempt from global compact sizing */
#custom_time_input {
  height: 40px !important;
  min-height: 40px !important;
  font-size: 22px !important;
  padding: 0 !important;
  line-height: 1.1 !important;
}

/* Rounded corners on page-2 buttons — radius only, size/layout untouched */
.layout-2-page .btn,
#sidebar .btn,
#sign-record-btn,
#reset-case-btn {
  border-radius: 8px !important;
}

/* Match InputGroup label height to compact input height */
.input-group-text {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

/* IV/BP section inputs on page 2 — match app body text */
.iv-row .form-control {
  font-size: 14px !important;
  height: 30px !important;
  min-height: 30px !important;
}

/* Compact radios */
.form-check { margin-bottom: 0 !important; }
.form-check-input { margin-top: 0.15rem !important; }

/* Compact DatePicker */
.DateInput, .DateInput_input {
  height: 24px !important;
  line-height: 24px !important;
  font-size: 12px !important;
  padding: 0 6px !important;
}
.DateRangePickerInput, .SingleDatePickerInput { padding: 0 !important; }

/* ===== Compact grid like your boxed header form ===== */
.compact-form {
  --b: #8ea3b7;          /* border color (matches your screenshot) */
  --bg: #ffffff;
  --hdr: #eef5fb;        /* light blue header fill */
  --label: #2f3b45;
  --muted: #6c757d;
  --padx: 10px;
  --pady: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* remove card/body padding so grid touches edges */
.compact-form .card-body { padding: 0 !important; }

/* remove bootstrap gutters between cols */
.compact-form .row { --bs-gutter-x: 0; --bs-gutter-y: 0; }

/* each “cell” */
.cf-cell{
  border: 2px solid var(--b);
  background: var(--bg);
  padding: var(--pady) var(--padx);
  min-height: 74px;   /* keeps rows aligned */
}

/* optional filled cells (like Screening BP row) */
.cf-cell.hdr { background: var(--hdr); }

/* label style (top-left) */
.cf-label{
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 6px;
  line-height: 1;
}

/* input look: minimal border, underline feel */
.cf-control input,
.cf-control textarea,
.cf-control select{
  width: 100%;
  border: 1px solid #d8e0e8;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 16px;
  background: #fff;
  box-shadow: none !important;
}

/* tighter textareas */
.cf-control textarea{
  min-height: 58px;
  resize: vertical;
}

/* or_textarea explicit height override */
#or_textarea {
  height: 100px !important;
  font-size: 16px !important;
}

/* Bigger horizontal scrollbar for editing-columns DataTable */
#editing-columns .dash-spreadsheet-inner::-webkit-scrollbar {
  height: 14px;
}
#editing-columns .dash-spreadsheet-inner::-webkit-scrollbar-track {
  background: #eef5fb;
  border-radius: 4px;
}
#editing-columns .dash-spreadsheet-inner::-webkit-scrollbar-thumb {
  background: #8ea3b7;
  border-radius: 4px;
  border: 2px solid #eef5fb;
}
#editing-columns .dash-spreadsheet-inner::-webkit-scrollbar-thumb:hover {
  background: #5f7d96;
}

/* make dbc.InputGroup not add spacing/borders */
.compact-form .input-group { gap: 0 !important; }
.compact-form .input-group-text{
  background: transparent;
  border: 0;
  padding: 0;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}

.ros-row{
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.ros-col{
  flex: 1 1 0;             /* each column shares width evenly */
  min-width: 140px;        /* keep readable; lower = tighter */
}

.ros-cell{
  min-height: unset;
}

/* slightly shorter cells for vitals row */
.compact-form .cf-cell {
  min-height: 72px;
}

/* Force this specific notes box to be taller */
#textarea_comment {
  height: 150px !important;
  min-height: 150px !important;
}

#post_op_comments {
  height: 100px !important;
  min-height: 100px !important;
}


/* wrapper: one line, scroll if it overflows */
.seg-scrollwrap{
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  text-align: center;
}

/* Force the ChipGroup itself to be a single horizontal row */
.seg-scrollwrap .seg-line{
  display: inline-flex !important;   /* critical */
  flex-wrap: nowrap !important;      /* critical */
  gap: 0 !important;                 /* fuse borders */
  white-space: nowrap !important;
  width: auto !important;
}

/* Make each chip not take a full line */
.seg-scrollwrap .seg-chip{
  display: inline-flex !important;   /* critical */
  align-items: center;
  border: 1px solid #cfd7df;
  border-right: none;
  border-radius: 0;
  padding: 6px 10px;
  margin: 0;
  background: #fff;
  font-size: 14px;
  line-height: 1;
}

/* rounded ends */
.seg-scrollwrap .seg-chip:first-child{
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.seg-scrollwrap .seg-chip:last-child{
  border-right: 1px solid #cfd7df;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* selected look */
.seg-scrollwrap .seg-chip[data-checked="true"]{
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.seg-scrollwrap{
  display: block;          /* ensure wrapper is normal block */
}

.seg-scrollwrap *{
  flex-direction: row;     /* prevents weird inherited column flex in some setups */
}

/* one-row equipment strip */
.strip-row{
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 0;
  width: 100%;
}

/* default cell width */
.strip-col{ flex: 0 0 190px; }     /* adjust smaller/larger */
.strip-col.wide{ flex: 0 0 320px; } /* “Other” gets more room */

/* make the boxes genuinely small */
.cf-cell.strip.tiny{
  min-height: 50px;
  padding: 6px 8px;
}

.cf-cell.strip.tiny .cf-label{
  font-size: 11px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-cell.strip.tiny .cf-control input,
.cf-cell.strip.tiny .cf-control select{
  height: 30px;
  padding: 3px 8px;
  font-size: 12px;
}

/* one-row equipment strip */
.strip-row{
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;   /* will disappear if everything fits */
  overflow-y: hidden;
  gap: 0;
  width: 100%;
}

/* width presets */
.strip-col.xs{ flex: 0 0 110px; }   /* single numbers */
.strip-col.sm{ flex: 0 0 150px; }   /* short text */
.strip-col.md{ flex: 0 0 190px; }   /* slightly longer */
.strip-col.lg{ flex: 0 0 280px; }   /* “Other” */

/* keep the boxes genuinely small */
.cf-cell.strip.tiny{
  min-height: 50px;
  padding: 6px 8px;
}

.cf-cell.strip.tiny .cf-label{
  font-size: 11px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cf-cell.strip.tiny .cf-control input,
.cf-cell.strip.tiny .cf-control select{
  height: 30px;
  padding: 3px 8px;
  font-size: 14px;
}

/* same “screening row” feel */
.cf-tint-blue {
  background: #eef5ff;            /* tweak to match your screenshot */
}

/* keep the input itself white */
.cf-tint-blue input,
.cf-tint-blue select,
.cf-tint-blue textarea {
  background: #ffffff !important;
}

.iv-one-line{
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
  overflow: visible;        /* important: don’t clip */
}

/* each cell */
.iv-one-line .iv-mini{
  flex: 0 0 auto;
  min-width: 110px;         /* stops “scrunching” */
}

/* a few tuned widths */
.iv-one-line .w-ivsite{ min-width: 160px; }
.iv-one-line .w-bpsite{ min-width: 140px; }
.iv-one-line .w-temp  { min-width: 120px; }
.iv-one-line .w-mask  { min-width: 120px; }
.iv-one-line .w-fluid { min-width: 120px; }
.iv-one-line .w-num   { min-width: 90px; }   /* gauge / ET / cuff */

/* make the number control look centered and not tiny */
.iv-one-line input[type="number"]{
  text-align: center;
}

/* tighten vertical spacing inside the cell */
.iv-one-line .cf-cell{
  padding: 6px 10px;        /* adjust if your cf_cell uses a different wrapper */
}

/* Outer box like your CF table */
.cf-chip-table{
  border: 2px solid #8ea3b8;          /* match your blue border */
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;                    /* keeps fused lines clean */
}

/* Each row becomes a “table row” */
.cf-chip-table .compact-row{           /* <-- use your actual row class if different */
  display: flex;
  align-items: stretch;
  border-top: 2px solid #e7d7c9;       /* your peach separators */
}

.cf-chip-table .compact-row:first-child{
  border-top: 0;
}

/* Left label column */
.cf-chip-table .compact-title{         /* <-- use your title wrapper class */
  width: 220px;                        /* fixed title column like screenshot */
  padding: 10px 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #2d3a45;
  background: #ffffff;
  border-right: 2px solid #8ea3b8;
  line-height: 1.05;
}

/* Right content area */
.cf-chip-table .compact-body{          /* <-- use your body wrapper class */
  flex: 1 1 auto;
  padding: 8px 10px;
  background: #ffffff;
}

/* Prevent the label + checkbox columns from ever stacking vertically */
.cf-chip-table .cf-row {
  flex-wrap: nowrap;
}

/* Allow the content column to shrink so seg-scrollwrap can take over */
.cf-chip-table .cf-row > [class*="col"] {
  min-width: 0;
}

/* Keep one line; allow horizontal scroll *inside* the row if needed */
.cf-chip-table .seg-scrollwrap{
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
}

.cf-chip-table .seg-line{
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;                            /* small gap between chips */
  align-items: center;
  white-space: nowrap;
}

/* Chip sizing — compact + consistent */
.cf-chip-table .mantine-Chip-root{
  margin: 0;
}
.cf-chip-table .mantine-Chip-label{
  padding: 6px 12px;                   /* tighter */
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  background: #f3f4f6;                 /* soft grey like your screenshot */
  border: 1px solid #e5e7eb;
}

/* selected chips */
.cf-chip-table .mantine-Chip-label[data-checked="true"]{
  background: #1e7be3;
  border-color: #1e7be3;
  color: #fff;
}

/* One-line row, no wrapping */
.vital-row{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  align-items:stretch;
}

/* Each cell has a controlled width (no Bootstrap columns) */
.vital-item{ flex: 0 0 auto; }

/* Tune widths per field (adjust numbers to taste) */
.w-ivsite{ width:140px; }
.w-ivg   { width:90px;  }
.w-bpsite{ width:140px; }
.w-temp  { width:110px; }
.w-et    { width:80px;  }
.w-cuff  { width:90px;  }
.w-fluid { width:140px; }
.w-mask  { width:110px; }

/* Compact “screening row” look */
.vital-cell{
  background: rgba(210,225,245,.55);
  border: 2px solid #7f96ad;
  padding: 6px 8px;
}

/* Prevent “IV GAUG E” wrapping */
.vital-cell *{
  white-space: nowrap;
}

/* If your cf_cell uses a label element, keep it tiny */
.vital-cell label,
.vital-cell .cf-label{
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 4px 0;
  letter-spacing: .02em;
  text-transform: uppercase;
  line-height: 1.05;
}

/* Short inputs like the screening row */
.vital-cell input,
.vital-cell select{
  height: 28px !important;
  padding: 2px 6px !important;
  font-size: 13px !important;
  width: 100%;
  box-sizing: border-box;
}

/* dcc.Dropdown placeholder visibility */
.Select-placeholder,
.Select--single .Select-placeholder,
[class$="placeholder"],
[class*="-placeholder"] {
  color: #6c757d !important;
  opacity: 1 !important;
}

/* ── Pill-style Checkbox (PDF-safe: no CSS custom properties) ───────────── */
.dmc-api-demo-root {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cfd7df;
  border-right: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #fff;
}
.dmc-api-demo-root:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.dmc-api-demo-root:last-child {
  border-right: 1px solid #cfd7df;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
/* Hide the visual checkbox indicator */
.dmc-api-demo-root .mantine-Checkbox-inner {
  display: none;
}
/* Label is the clickable face */
.dmc-api-demo-root .mantine-Checkbox-label {
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
}
/* Spaced horizontal group — pills fill the row with a gap between each */
.segmented-tight {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  width: 100%;
  white-space: nowrap;
}
/* Each pill expands equally and centres its label */
.segmented-tight .dmc-api-demo-root {
  flex: 1;
  justify-content: center;
  border-right: 1px solid #cfd7df;
  border-radius: 10px;
}
/* Restore selected border colour on separated pills */
.segmented-tight .dmc-api-demo-root:has(input:checked) {
  border-right: 1px solid #6aaee0;
}

/* Wrapping variant — same pill styling but allows checkboxes onto new rows */
.segmented-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  white-space: normal !important;
}
.segmented-wrap .dmc-api-demo-root {
  flex: 1 0 auto;
  justify-content: center;
  border-right: 1px solid #cfd7df;
  border-radius: 10px;
}
.segmented-wrap .dmc-api-demo-root:has(input:checked) {
  border-right: 1px solid #6aaee0;
}
.seg-wrapwrap {
  width: 100%;
  white-space: normal;
  overflow: visible;
}
/* Selected state — plain CSS selectors (html2canvas-safe, no CSS vars) */
.segmented-tight input:checked + .mantine-Checkbox-label {
  background: #a8d4f0;
  color: #1a3a55;
}
/* :has() covers DOM structures where input is not adjacent to label */
.dmc-api-demo-root:has(input:checked) {
  background: #a8d4f0;
  border-color: #6aaee0;
}
.dmc-api-demo-root:has(input:checked) .mantine-Checkbox-label {
  color: #1a3a55;
}

/* ── Layout 2 (Anesthetic Record) — frosted glass theme ─────────────────── */
.layout-2-page {
  background: #ffffff !important;
  min-height: 100vh;
  padding-bottom: 40px;
}

/* Frosted white glass cards */
.layout-2-page .card {
  background: rgba(255, 255, 255, 0.68) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(138, 160, 179, 0.38) !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 20px rgba(90, 120, 155, 0.10) !important;
}

/* No blur on cards that hold a dcc.Dropdown. backdrop-filter makes the card
   the containing block for position:fixed descendants, and the Dash 4 dropdown
   menu is rendered position:fixed inside the dropdown's own wrapper. WebKit
   (Safari, every iOS browser) isn't compensated for by the menu's positioning
   code, so the menu opened displaced by the card's offset from the viewport
   corner — below and to the right of the control, sometimes off-screen. The
   page behind these cards is solid white, so the blur was not visible. */
.layout-2-page .card:has(.dash-dropdown-wrapper) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Keep compact-form zero-padding intact */
.layout-2-page .compact-form .card-body {
  padding: 0 !important;
}

/* Revert to solid white for PDF capture (html2canvas ignores backdrop-filter) */
.layout-2-page.temp-adjustment .card {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.layout-2-page.temp-adjustment {
  background: #ffffff !important;
}

.layout-2-page .cf-control textarea {
  font-size: 14px !important;
}

.layout-3-page #discharge,
.layout-3-page #topical_anesthetic,
.layout-6-page #topical_anesthetic {
  font-size: 20px !important;
  font-weight: 700 !important;
}

/* ── Layout 5 (Sign In) — frosted glass login ───────────────────────────── */
.layout-5-page #uname-box::placeholder,
.layout-5-page #pwd-box::placeholder {
  color: rgba(255, 255, 255, 0.50);
}
.layout-5-page #uname-box,
.layout-5-page #pwd-box {
  color: #ffffff !important;
}

/* ── Layout 9 (Questions / Contact) ─────────────────────────────────────── */
.layout-9-page {
  background: #ffffff;
  min-height: 100vh;
}

.contact-accordion .accordion-item {
  background: rgba(255, 255, 255, 0.70) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(138, 160, 179, 0.35) !important;
  border-radius: 10px !important;
  margin-bottom: 8px !important;
  box-shadow: 0 2px 14px rgba(90, 120, 155, 0.08) !important;
  overflow: hidden;
}

.contact-accordion .accordion-button {
  background: transparent !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #1a2b35 !important;
  box-shadow: none !important;
  padding: 16px 20px !important;
}

.contact-accordion .accordion-button:not(.collapsed) {
  color: #1a6fbf !important;
  background: rgba(230, 242, 255, 0.55) !important;
}

.contact-accordion .accordion-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  padding: 4px 20px 18px !important;
  background: transparent !important;
}

/* ── Layout 3 checklist item spacing ───────────────────────────────────── */
.layout3-checklist {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.layout3-checklist .form-check {
  margin-right: 24px;
  padding-top: 4px;
  padding-bottom: 4px;
  white-space: nowrap;
}
.layout3-checklist .form-check-input {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
}

/* ── Layout 3, 4 & 6 — larger base typography (font family preserved) ───── */
.layout-3-page,
.layout-4-page,
.layout-6-page {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.layout-3-page .cf-label,
.layout-4-page .cf-label,
.layout-6-page .cf-label {
  font-size: 15px;
}

/* Headings and section titles within these pages */
.layout-3-page h1, .layout-3-page h2, .layout-3-page h3,
.layout-4-page h1, .layout-4-page h2, .layout-4-page h3,
.layout-6-page h1, .layout-6-page h2, .layout-6-page h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Pill checkbox labels scale up to match */
.layout-3-page .dmc-api-demo-root .mantine-Checkbox-label,
.layout-4-page .dmc-api-demo-root .mantine-Checkbox-label,
.layout-6-page .dmc-api-demo-root .mantine-Checkbox-label {
  font-size: 15px;
  padding: 9px 15px;
}

/* ── User input text — layouts 3, 4, 6 — consistent 19px ─────────────── */
.layout-3-page .cf-control input,
.layout-3-page .cf-control textarea,
.layout-3-page .cf-control select,
.layout-4-page .cf-control input,
.layout-4-page .cf-control textarea,
.layout-4-page .cf-control select,
.layout-6-page .cf-control input,
.layout-6-page .cf-control textarea,
.layout-6-page .cf-control select,
.layout-3-page #post_op_comments,
.layout-4-page #textarea_comment,
.layout-4-page #post_op_comments {
  font-size: 19px !important;
}

/* ── DatePickerInput text — match surrounding cf-control input sizes ──── */
.cf-cell.strip.tiny .cf-control .mantine-Input-input {
  font-size: 14px !important;
}
.layout-6-page .cf-cell.strip.tiny .cf-control .mantine-Input-input {
  font-size: 19px !important;
}
.layout-2-page .cf-cell.strip.tiny .cf-control .mantine-Input-input,
.layout-3-page .cf-cell.strip.tiny .cf-control .mantine-Input-input,
.layout-4-page .cf-cell.strip.tiny .cf-control .mantine-Input-input {
  font-size: 17px !important;
}

/* ── Layouts 3, 4 & 6 — center input text for readability ──────────────── */
.layout-3-page .cf-control input,
.layout-3-page .cf-control textarea,
.layout-3-page .cf-control select,
.layout-3-page .cf-control .form-select,
.layout-3-page .cf-cell.strip.tiny .cf-control .mantine-Input-input,
.layout-4-page .cf-control input,
.layout-4-page .cf-control textarea,
.layout-4-page .cf-control select,
.layout-4-page .cf-control .form-select,
.layout-4-page .cf-cell.strip.tiny .cf-control .mantine-Input-input,
.layout-6-page .cf-control input,
.layout-6-page .cf-control textarea,
.layout-6-page .cf-control select,
.layout-6-page .cf-control .form-select,
.layout-6-page .cf-cell.strip.tiny .cf-control .mantine-Input-input {
  text-align: center !important;
  text-align-last: center !important;
}

/* ── Layout 4 — reduce base typography by 2px ─────────────────────────── */
.layout-4-page {
  font-size: 14px;
}
.layout-4-page .cf-label {
  font-size: 13px;
}
.layout-4-page .dmc-api-demo-root .mantine-Checkbox-label {
  font-size: 13px;
}
.layout-4-page .cf-control input,
.layout-4-page .cf-control textarea,
.layout-4-page .cf-control select,
.layout-4-page #textarea_comment,
.layout-4-page #post_op_comments {
  font-size: 17px !important;
}


/* ── Custom time-entry inputs — override global compact .form-control lock ─ */
/* ID + class specificity beats the global .form-control { ... !important }   */
/* (#custom_time_input sized separately above to match its 80px button)       */
#sql_time.form-control {
  height: 30px !important;
  min-height: 30px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  padding: 0 12px !important;
}
