.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: none !important;
  border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:active {
  background: none !important;
  border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:focus {
  background: none !important;
  border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:focus-within {
  background: none !important;
  border: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0;
  border: none;
}

table.dataTable thead .sorting_asc:after {
  content: "";
}

table.dataTable thead .sorting_desc:after {
  content: "";
}

table.dataTable thead .sorting:after {
  content: "";
}

tfoot th {
  text-transform: uppercase;
}

table.table-bordered.dataTable td {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 0.9em;
}

.labdotnum {
  margin-left: -19px;
  color: black;
  font-size: 20px;
  vertical-align: middle;
}

.labdot {
  font-size: 28px;
}

input.form-control {
  height: calc(2.25rem + 2px);
}

button {
  height: calc(2.25rem + 2px);
}

@media screen and (max-width: 768px) {
  .main-panel .content {
    padding: 60px 15px 15px 15px;
  }
}

.card-footer {
  padding: 0 10px 10px 10px;
  text-align: center;
}

.container {
  padding-right: 0;
  padding-left: 0;
}

.dropdown.show .dropdown-menu,
.dropup.show .dropdown-menu,
.bootstrap-select.show .dropdown-menu {
  margin-left: -40px;
}

.bold {
  font-weight: bold;
}

a {
  color: #3a76de;
}

a:visited {
  color: purple;
}

/* outline/link button variants keep their accent-colored text — forcing
   white made them invisible on white card backgrounds */
a.btn:not([class*="btn-outline-"]):not(.btn-link) {
  color: #fff !important;
}

#mixedgasletter {
  margin-top: 100px;
}

#mixedgasletter .header img {
  margin-left: 50px;
  margin-top: -35px;
  height: 60px;
}

#mixedgasletter .logo-box {
  width: 100%;
  border: 2px solid green;
  height: 10px;
  border-left: none;
  border-right: none;
  text-align: right;
}

#mixedgasletter .logo-header {
  color: green;
  font-size: 24px;
  position: relative;
  display: block;
  margin-top: -40px;
  text-transform: uppercase;
  font-weight: bold;
  margin-right: 20px;
}

#mixedgasletter .logo-footer {
  color: green;
  font-size: 16px;
  font-style: italic;
  margin-right: 25px;
}

#mixedgasletter h2 {
  font-weight: bold;
  font-size: 28px;
}

#mixedgasletter h3 {
  font-weight: bold;
  font-size: 20px;
}

#mixedgasletter h3 span {
  font-weight: normal;
}

#mixedgasletter p {
  font-size: 18px;
}

#mixedgasletter p span {
  font-weight: bold;
}

#mixedgasletter .pagebreak {
  border-top: 1px grey dotted;
  width: 100%;
  height: 80px;
  clear: both;
  page-break-before: always;
} /* page-break-after works, as well */

@media print {
  #mixedgasletter .pagebreak {
    border: none;
    clear: both;
    page-break-before: always;
  }
}

#monthlysummary {
  margin-top: 100px;
}

#monthlysummary .header img {
  margin-left: 50px;
  margin-top: -35px;
  height: 60px;
}

#monthlysummary .logo-box {
  width: 100%;
  border: 2px solid green;
  height: 10px;
  border-left: none;
  border-right: none;
  text-align: right;
}

#monthlysummary .logo-header {
  color: green;
  font-size: 24px;
  position: relative;
  display: block;
  margin-top: -40px;
  text-transform: uppercase;
  font-weight: bold;
  margin-right: 20px;
}

#monthlysummary .logo-footer {
  color: green;
  font-size: 16px;
  font-style: italic;
  margin-right: 25px;
}

#monthlysummary h2 {
  font-weight: bold;
  font-size: 28px;
}

#monthlysummary h3 {
  font-weight: bold;
  font-size: 20px;
}

#monthlysummary h3 span {
  font-weight: normal;
}

#monthlysummary p {
  font-size: 18px;
}

#monthlysummary p span {
  font-weight: bold;
}

#monthlysummary .pagebreak {
  border-top: 1px grey dotted;
  width: 100%;
  height: 80px;
  clear: both;
  page-break-before: always;
} /* page-break-after works, as well */

@media print {
  #monthlysummary .pagebreak {
    border: none;
    clear: both;
    page-break-before: always;
  }
}

.totals-table {
  font-size: 1.3em;
}

table.dataTable thead > tr > th.sorting_asc,
table.dataTable thead > tr > th.sorting_desc,
table.dataTable thead > tr > th.sorting,
table.dataTable thead > tr > td.sorting_asc,
table.dataTable thead > tr > td.sorting_desc,
table.dataTable thead > tr > td.sorting {
  padding-right: 10px;
}

.table > thead > tr > th {
  font-size: 11px;
}

.table-responsive {
  overflow: hidden;
}

#printcode {
  font-size: 17px;
}

#label_header {
  font-size: 20px;
  font-weight: bold;
}

.red {
  color: red;
}
.green {
  color: green;
}

.audit-table td {
  padding: 5px !important;
}

@media print {
  .main-panel {
    position: fixed;
    margin-left: 0px;
    width: 100%;
  }
  .no-print,
  .no-print * {
    display: none !important;
  }
}

.card label {
  color: black;
}

.selected {
  border: solid 2px green;
}

.pallet_data {
  font-size: 20px;
}

@media screen and (max-width: 768px) {
  .main-panel .content {
    padding: 15px 5px 15px 5px;
  }

  .desktopOnly {
    display: none !important;
  }

  .mobileOnly {
    display: block !important;
  }

  .card .card-header .card-title {
    margin-top: 2px;
    margin-bottom: 2px;
    font-size: 12pt;
  }

  button {
    height: fit-content;
  }

  .btn-sm {
    font-size: 10px;
    border-radius: 3px;
    padding: 5px 10px 5px 10px;
  }
}

@media screen and (min-width: 768px) {
  .main-panel .content {
    padding: 15px 5px 15px 5px;
  }

  .desktopOnly {
    display: block !important;
  }

  .mobileOnly {
    display: none !important;
  }
}

.btn-warning {
  background-color: #fbc658 !important;
  color: #fff !important;
}

.btn-danger {
  color: #fff !important;
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
}

.btn-sm {
  font-size: 10px;
  border-radius: 3px;
  padding: 5px 10px 5px 10px;
  height: 25px;
}


.nav-tabs .nav-item .nav-link.active {
  border-bottom: none !important;
  margin-bottom: 10px !important;
}


.amsify-suggestags-area .amsify-suggestags-list {
  min-width: 150px !important;
}

table tr.inbound {
  background-color: #f0f0f0 !important;
  color: #999 !important;
  opacity: 0.7 !important;
  font-style: italic !important;
  font-weight: bold !important;
}


.disabled-link {
  pointer-events: none; /* Prevents all pointer events (clicks, hovers) */
  cursor: default;     /* Changes the cursor to default, indicating no interaction */
  opacity: 0.6;        /* Optional: Visually suggests a disabled state */
}


@media (min-width: 576px) {
  .modal-dialog {
      max-width: 700px;
  }
}

/* ---------------------------------------------------------------- */
/* Welcome page module cards (views/dashboard.pug)                  */
/* Accents follow the Paper Dashboard palette: amber #fbc658,       */
/* green #6bd098, blue #51bcda, coral #ef8157.                      */
/* ---------------------------------------------------------------- */

.welcome-head {
  margin: 4px 4px 22px;
}
.welcome-title {
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 2px;
}
.welcome-sub {
  color: #9a9a9a;
  margin-bottom: 0;
}

.module-card {
  --card-accent: #51bcda;
  --card-accent-soft: rgba(81, 188, 218, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid #ebecf1;
  border-radius: 12px;
  padding: 20px 20px 16px;
  margin-bottom: 30px;
  overflow: hidden;
  color: inherit;
  box-shadow: 0 2px 6px rgba(40, 50, 70, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  animation: module-card-in 0.45s ease both;
  animation-delay: calc(var(--card-i, 0) * 70ms);
}
.module-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--card-accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}
.module-card:hover,
.module-card:focus {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  border-color: var(--card-accent);
  box-shadow: 0 10px 24px rgba(40, 50, 70, 0.12);
}
.module-card:hover::before,
.module-card:focus::before {
  opacity: 1;
}

.module-card--amber { --card-accent: #fbc658; --card-accent-soft: rgba(251, 198, 88, 0.16); }
.module-card--green { --card-accent: #6bd098; --card-accent-soft: rgba(107, 208, 152, 0.15); }
.module-card--blue  { --card-accent: #51bcda; --card-accent-soft: rgba(81, 188, 218, 0.14); }
.module-card--coral { --card-accent: #ef8157; --card-accent-soft: rgba(239, 129, 87, 0.14); }

.module-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--card-accent-soft);
}
.module-icon .nc-icon {
  font-size: 26px;
  color: var(--card-accent);
}

.module-metric {
  text-align: right;
  line-height: 1.1;
}
.metric-num {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: #2c2c2c;
}
.metric-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9a9a9a;
  margin-top: 2px;
}

.module-name {
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 4px;
}
.module-desc {
  font-size: 0.85rem;
  color: #9a9a9a;
  margin-bottom: 10px;
}

.module-pill {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: var(--card-accent-soft);
  color: #2c2c2c;
}
.module-pill .fas {
  color: var(--card-accent);
}

.module-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f3f4f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--card-accent);
}
.module-foot .fas {
  transition: transform 0.18s ease;
}
.module-card:hover .module-foot .fas {
  transform: translateX(4px);
}

@keyframes module-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .module-card {
    animation: none;
    transition: none;
  }
}


/* ---------------------------------------------------------------- */
/* Paper-dashboard look for legacy parity-rendered form controls.   */
/* The markup from lib/forms/*, lib/domain/jobs.js and the AJAX     */
/* cascade fragments must stay byte-identical to the PHP app, so    */
/* these bare controls are styled here instead of gaining           */
/* .form-control / .btn classes in the HTML strings.                */
/* Background-color is deliberately never set: the legacy yellow    */
/* read-only and red .err_inp_field signals must keep winning.      */
/* ---------------------------------------------------------------- */

/* Bootstrap 4.0.0 predates .w-auto (added in 4.1) — same rule as upstream */
.w-auto {
  width: auto !important;
}

#job_sample_list_div input[type="text"]:not(.form-control),
#edit_pane input[type="text"]:not(.form-control),
#frm_job input[type="text"]:not(.form-control),
#job_sel input[type="text"]:not(.form-control),
#frm_spn input[type="text"]:not(.form-control),
#sample_spn input[type="text"]:not(.form-control),
#new_sample_procs input[type="text"]:not(.form-control),
#job_sample_list_div select:not(.form-control),
#edit_pane select:not(.form-control),
#frm_job select:not(.form-control),
#job_sel select:not(.form-control),
#frm_spn select:not(.form-control),
#sample_spn select:not(.form-control),
#new_sample_procs select:not(.form-control),
#job_sample_list_div textarea:not(.form-control),
#edit_pane textarea:not(.form-control),
#frm_job textarea:not(.form-control),
#new_sample_procs textarea:not(.form-control) {
  border: 1px solid #dddddd;
  border-radius: 4px;
  color: #66615b;
  padding: 4px 8px;
  line-height: normal;
  box-shadow: none;
  transition: border-color 0.3s ease-in-out;
}
#job_sample_list_div input[type="text"]:not(.form-control):focus,
#edit_pane input[type="text"]:not(.form-control):focus,
#frm_job input[type="text"]:not(.form-control):focus,
#job_sel input[type="text"]:not(.form-control):focus,
#frm_spn input[type="text"]:not(.form-control):focus,
#sample_spn input[type="text"]:not(.form-control):focus,
#new_sample_procs input[type="text"]:not(.form-control):focus,
#job_sample_list_div select:not(.form-control):focus,
#edit_pane select:not(.form-control):focus,
#frm_job select:not(.form-control):focus,
#job_sel select:not(.form-control):focus,
#frm_spn select:not(.form-control):focus,
#sample_spn select:not(.form-control):focus,
#new_sample_procs select:not(.form-control):focus,
#job_sample_list_div textarea:not(.form-control):focus,
#edit_pane textarea:not(.form-control):focus,
#frm_job textarea:not(.form-control):focus,
#new_sample_procs textarea:not(.form-control):focus {
  border-color: #9a9a9a;
  outline: 0;
}

#job_sample_list_div input[type="button"]:not(.btn),
#edit_pane input[type="button"]:not(.btn),
#frm_job input[type="button"]:not(.btn),
#job_sel input[type="button"]:not(.btn),
#new_sample_procs input[type="button"]:not(.btn) {
  background-color: #66615b;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.8em;
  text-transform: uppercase;
  padding: 5px 14px;
  cursor: pointer;
  transition: background-color 150ms linear;
}
#job_sample_list_div input[type="button"]:not(.btn):hover,
#edit_pane input[type="button"]:not(.btn):hover,
#frm_job input[type="button"]:not(.btn):hover,
#job_sel input[type="button"]:not(.btn):hover,
#new_sample_procs input[type="button"]:not(.btn):hover {
  background-color: #403d39;
}
#job_sample_list_div input[type="button"]:not(.btn):disabled,
#edit_pane input[type="button"]:not(.btn):disabled,
#frm_job input[type="button"]:not(.btn):disabled,
#job_sel input[type="button"]:not(.btn):disabled,
#new_sample_procs input[type="button"]:not(.btn):disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ---------------------------------------------------------------- */
/* Clickable link cards — result/picker lists that used to be plain */
/* <ul> link lists (customer search results, ACP group picker).     */
/* Shares the accent palette of the welcome-page module cards.      */
/* ---------------------------------------------------------------- */

.link-card {
  --card-accent: #51bcda;
  --card-accent-soft: rgba(81, 188, 218, 0.14);
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #fff;
  border: 1px solid #ebecf1;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: inherit;
  box-shadow: 0 2px 6px rgba(40, 50, 70, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.link-card:hover,
.link-card:focus {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
  border-color: var(--card-accent);
  box-shadow: 0 8px 18px rgba(40, 50, 70, 0.12);
}
.link-card.active {
  border-color: var(--card-accent);
  background: var(--card-accent-soft);
}
.link-card--green { --card-accent: #6bd098; --card-accent-soft: rgba(107, 208, 152, 0.15); }
.link-card--blue  { --card-accent: #51bcda; --card-accent-soft: rgba(81, 188, 218, 0.14); }

.link-card-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--card-accent-soft);
  margin-right: 14px;
}
.link-card-icon .nc-icon {
  font-size: 18px;
  color: var(--card-accent);
}
.link-card-body {
  flex: 1 1 auto;
  min-width: 0;
}
.link-card-title {
  font-weight: 700;
  color: #2c2c2c;
  line-height: 1.25;
}
a.link-card .link-card-title {
  color: #2c2c2c;
}
.link-card-sub {
  font-size: 0.8rem;
  color: #9a9a9a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-card-arrow {
  flex: 0 0 auto;
  margin-left: 12px;
  color: var(--card-accent);
  transition: transform 0.18s ease;
}
.link-card:hover .link-card-arrow {
  transform: translateX(4px);
}


/* ---------------------------------------------------------------- */
/* Manage Customers: Contacts card — fixed height matching the      */
/* Customer card (flex-stretch row), contact records as small cards */
/* in a scrollable 2-column grid.                                   */
/* ---------------------------------------------------------------- */

.contacts-card .card-body {
  min-height: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: start;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 10px;
}
@media (max-width: 575px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-card {
  display: block;
  background: #fff;
  border: 1px solid #ebecf1;
  border-radius: 10px;
  padding: 10px 12px;
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(40, 50, 70, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-card:hover,
.contact-card:focus {
  text-decoration: none;
  color: inherit;
  border-color: #6bd098;
  box-shadow: 0 4px 10px rgba(40, 50, 70, 0.1);
}
.contact-card--inactive {
  opacity: 0.6;
  background: #f8f8f8;
}
.contact-card-name {
  color: #2c2c2c;
  font-size: 0.85rem;
}
.contact-card-name b {
  font-weight: 700;
}
.contact-card-title {
  color: #9a9a9a;
  font-style: italic;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-card-line {
  color: #66615b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(107, 208, 152, 0.18);
  color: #2c7a4b;
  margin: 2px 4px 2px 0;
}
.contact-badge--muted {
  background: #ececec;
  color: #9a9a9a;
}
.contacts-card-footer {
  border-top: 1px solid #f3f4f7;
  padding-top: 8px;
  font-size: 0.85rem;
}

/* customer jobs list — clickable job/parent cells and the row controls
   (Set Parent / Copy / Preview), ported from manage_customers/index.php */
.job_list_tbl .jobLink {
  cursor: pointer;
  color: #51bcda;
}
.job_list_tbl .jobLink:hover {
  text-decoration: underline;
}
.job_list_tbl .cust_job_ctl {
  text-align: center;
  white-space: nowrap;
}
.job_list_tbl .copy_job,
.job_list_tbl .preview_job {
  cursor: pointer;
  font-size: 18px;
  color: #66615b;
}
.job_list_tbl .copy_job:hover,
.job_list_tbl .preview_job:hover {
  color: #51bcda;
}

/* contacts page — the same cards as the customer page's Contacts card, but
   full width and unconstrained (no equal-height card to scroll inside) */
.contact-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  overflow-y: visible;
  flex: none;
}
.contact-card--active {
  border-color: #6bd098;
  box-shadow: 0 0 0 2px rgba(107, 208, 152, 0.35);
}


/* ---------------------------------------------------------------- */
/* Lab Test (/procedures) — each open test is a card. Markup comes  */
/* from buildIncJobProcTbl (lib/domain/procedures.js); the per-form */
/* validation JS keys off .inc_proc_inp / jpid / fsp / [for] / data-* */
/* so only classes were added around them. Replaces the PHP-era     */
/* views/procedures/legacy_styles.pug on this page.                 */
/* ---------------------------------------------------------------- */

.lab-test .lt-filter {
  padding: 10px 0 18px;
  border-bottom: 1px solid #ebecf1;
  margin-bottom: 18px;
}
.lab-test .lt-filter label {
  font-size: 0.8571em;
  color: #9a9a9a;
  margin-bottom: 0;
}
.lab-test .lt-filter .form-control {
  min-width: 200px;
}
.lab-test #proc_msg .alert {
  margin-bottom: 16px;
}
.lab-test .lt-empty {
  margin: 8px 0 0;
}

.lab-test .lt-card {
  border: 1px solid #ebecf1;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(40, 50, 70, 0.05);
  margin-bottom: 20px;
  overflow: hidden;
}
.lab-test .lt-head,
.review-tests .lt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 22px;
  padding: 12px 16px;
  background: #fafafa;
  border-bottom: 1px solid #ebecf1;
}
.lab-test .lt-field,
.review-tests .lt-field {
  font-size: 0.9em;
  color: #66615b;
}
.lab-test .lt-lbl,
.review-tests .lt-lbl {
  display: block;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a9a9a;
}
.lab-test .lt-rush {
  align-self: center;
  font-size: 0.75em;
}
.lab-test .proc_form.card-body {
  padding: 14px 16px 6px;
}

/* entry grid */
.lab-test .lt-grid {
  overflow-x: auto;
}
.lab-test .inc_tbl {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85em;
}
.lab-test .inc_tbl th {
  /* long analyte names wrap instead of stretching the whole column */
  white-space: normal;
  min-width: 90px;
  max-width: 170px;
  vertical-align: bottom;
  font-weight: 600;
  color: #66615b;
  padding: 8px 10px 4px;
  text-align: center;
}
.lab-test .inc_tbl td {
  padding: 2px 10px 10px;
  text-align: center;
}
.lab-test .inc_proc_inp {
  width: 76px;
}
.lab-test .inc_proc_inp_sel {
  width: 160px;
}
.lab-test .inc_proc_inp_add,
.lab-test .inc_proc_inp_add_test {
  width: 200px;
}

/* data-entry signals the technicians rely on (were yellow / orange / green
   / red in PHP): computed read-only, blend component, isomer, error */
.lab-test input[type="text"]:read-only,
.review-tests input[type="text"]:read-only {
  background-color: #fff6cc;
}
.lab-test [data-datapoint_category_desc="Component"],
.review-tests [data-datapoint_category_desc="Component"] {
  background-color: #ffe3c2;
}
.lab-test [data-isomer_cat="Isomer"],
.review-tests [data-isomer_cat="Isomer"] {
  background-color: #e3f6c4;
}
.lab-test .err_inp_field,
.review-tests .err_inp_field {
  background-color: #ffd9d9 !important;
  border-color: #ef8157 !important;
}

/* submit strip */
.lab-test .proc_sub_div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0 6px;
}
.lab-test .proc_sub_div .btn {
  margin: 0;
}
.lab-test .proc_sub_div hr {
  display: none;
}
.lab-test .proc_in_progress_disp {
  font-size: 0.85em;
  color: #9a9a9a;
}
.lab-test .form_sub_err_disp {
  flex: 0 0 100%;
  color: #ef8157;
  font-weight: 600;
  font-size: 0.9em;
}
.lab-test .form_sub_err_disp:empty {
  display: none;
}
.lab-test .lt-locked,
.review-tests .lt-locked {
  flex: 0 0 100%;
  color: #c0392b;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85em;
}
.lab-test .img_loader {
  margin: 8px 0;
  color: #9a9a9a;
  font-size: 0.9em;
}


/* ---------------------------------------------------------------- */
/* Review Tests (/samples) — job list + review pane (pane markup:   */
/* routes/samples.js, lib/domain/samples.js makeAnalyteTbl). The    */
/* pane script walks input -> td -> tr, so rows keep that shape.    */
/* Shares the header / signal-color rules with Lab Test above.      */
/* ---------------------------------------------------------------- */

.review-tests #job_sample_list_tbl {
  margin-top: 18px;
  font-size: 0.9em;
}
.review-tests #job_sample_list_tbl td {
  vertical-align: middle;
}
.review-tests .sample_list_tdClick {
  cursor: pointer;
  color: #51bcda;
}
.review-tests .sample_list_tdClick:hover {
  text-decoration: underline;
}
.review-tests .sample_list_tr.is_rush td:first-child {
  box-shadow: inset 3px 0 0 #fbc658;
}
.review-tests #job_big_dv {
  cursor: pointer;
  border: 1px solid #ebecf1;
  border-radius: 12px;
  margin-bottom: 14px;
}
.review-tests #job_big_dv:hover {
  background: #f4f9fb;
}
.review-tests .rt-status {
  margin-bottom: 8px;
}
.review-tests .rt-status label {
  font-size: 0.8571em;
  color: #9a9a9a;
}
.review-tests .rt-grid {
  overflow-x: auto;
}
.review-tests .analyte_tbl {
  font-size: 0.85em;
  margin-bottom: 12px;
}
.review-tests .analyte_tbl th {
  white-space: nowrap;
  color: #9a9a9a;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85em;
  border-top: none;
}
.review-tests .analyte_tbl td {
  vertical-align: middle;
}
.review-tests .analyte_tbl .inc_proc_inp {
  width: 90px;
}
.review-tests .analyte_tbl .inc_proc_inp_sel {
  width: 170px;
}
.review-tests .analyte_tbl .inc_proc_inp_add,
.review-tests .analyte_tbl .inc_proc_inp_add_test {
  width: 160px;
}
.review-tests .view_c {
  display: inline-block;
  cursor: pointer;
  color: #51bcda;
  border: 1px solid #51bcda;
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.85em;
}
.review-tests .view_c:hover {
  background: #51bcda;
  color: #fff;
}
.review-tests #history {
  display: none;
  border: 1px solid #ebecf1;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 14px;
  background: #fafafa;
  font-size: 0.85em;
}
.review-tests .rt-hist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.review-tests #history_dv {
  cursor: pointer;
  margin: 0;
}
.review-tests .external_msg_field {
  width: 250px;
  height: 50px;
}
.review-tests .form_sub_err_disp_edit {
  display: block;
  color: #ef8157;
  font-weight: 600;
  font-size: 0.9em;
}
.review-tests .proc_sub_div hr {
  display: none;
}
.review-tests .rt-hide-col3 .rt-col3,
.review-tests .rt-hide-col4 .rt-col4,
.review-tests .rt-hide-col5 .rt-col5 {
  display: none;
}


/* ---------------------------------------------------------------- */
/* Job detail (/jobs?id=) — the per-form job fields come from       */
/* buildJobFormFieldsHtml (lib/domain/jobs.js) as .form_field_rundown */
/* label + input rows; aligned here as a label column + controls.   */
/* ---------------------------------------------------------------- */

.job-data .job_page_proc_lbl,
.job-data .form_field_rundown > .job_lbl {
  display: inline-block;
  width: 170px;
  margin: 0;
  color: #9a9a9a;
  font-size: 0.8571em;
  vertical-align: middle;
}
.job-data .job_page_proc_lbl b,
.job-data .form_field_rundown > .job_lbl b {
  font-weight: 600;
}
.job-data .form_field_rundown {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 10px;
}
.job-data .form_field_rundown > .job_lbl {
  flex: 0 0 170px;
}
.job-data .form_field_rundown input[type="text"]:not(.form-control),
.job-data .form_field_rundown select:not(.form-control) {
  min-width: 240px;
  padding: 6px 10px;
}
.job-data .form_field_rundown textarea:not(.form-control) {
  flex: 1 1 420px;
  max-width: 640px;
  min-height: 90px;
}
/* the alternate field title PHP printed in italics beside the input */
.job-data .form_field_rundown > i {
  font-style: normal;
  font-size: 0.8em;
  color: #9a9a9a;
}

/* job contacts: was a solid green box of comma-run text */
.cnt_dv {
  border: 1px solid #ebecf1;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 16px;
}
.cnt_dv .jc-title {
  font-size: 0.8571em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 10px;
}
.cnt_dv .jc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 4px 18px;
  max-height: 320px;
  overflow-y: auto;
}
.cnt_dv .jc-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
  font-size: 0.9em;
  cursor: pointer;
}
.cnt_dv .jc-item input {
  position: relative;
  top: 1px;
}
.cnt_dv .jc-name {
  color: #66615b;
  white-space: nowrap;
}
.cnt_dv .jc-email {
  color: #9a9a9a;
  font-size: 0.85em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cnt_dv .jc-ro {
  cursor: default;
  color: #b5b5b5;
}
.cnt_dv .jc-ro.jc-on .fa {
  color: #6bd098;
}


/* ---------------------------------------------------------------- */
/* Popups opened from the job page (views/popup_layout.pug):        */
/* add procedure, transfer sample, internal comments.               */
/* ---------------------------------------------------------------- */

.popup-body {
  background: #f4f3ef;
  padding: 20px;
}
.popup-card {
  max-width: 980px;
  margin: 0 auto;
}
.popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.popup-head .card-title {
  margin: 0;
}
.popup-tools .btn {
  margin: 0 0 0 6px;
}
.popup-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 12px 14px;
  border: 1px solid #ebecf1;
  border-radius: 12px;
  background: #fafafa;
  margin-bottom: 16px;
}
.popup-fields-col {
  flex-direction: column;
}
.popup-fields .lt-field {
  font-size: 0.9em;
  color: #66615b;
}
.popup-fields .lt-lbl {
  display: block;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a9a9a;
}
.popup-body .ap-title {
  font-size: 0.8571em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 8px;
}
.popup-body .ap-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2px 16px;
  margin-bottom: 14px;
}
.popup-body .ap-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 0;
  cursor: pointer;
}
.popup-body .ap-on-job {
  color: #b5b5b5;
  cursor: default;
}
.popup-body .ap-on-job .fa {
  color: #6bd098;
  width: 13px;
}
.popup-body .popup-warn {
  margin: 16px 0 0;
  font-size: 0.85em;
  color: #c0392b;
}
/* AJAX-injected legacy controls in the transfer popup (#frm_spn,
   #sample_spn, #new_sample_procs) */
.popup-body select:not(.form-control),
.popup-body input[type="text"]:not(.form-control) {
  border: 1px solid #dddddd;
  border-radius: 4px;
  color: #66615b;
  padding: 4px 8px;
}


/* ---------------------------------------------------------------- */
/* Job page — Documents (document store; views/jobs/documents_panel) */
/* ---------------------------------------------------------------- */

.job-docs .jd-table {
  font-size: 0.9em;
  margin-bottom: 8px;
}
.job-docs .jd-table th {
  color: #9a9a9a;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8em;
  border-top: none;
}
.job-docs .jd-missing td {
  color: #b5b5b5;
}
.job-docs .jd-upload {
  border-top: 1px solid #ebecf1;
  padding-top: 14px;
  margin-top: 6px;
}
.job-docs .jd-upload label {
  font-size: 0.8571em;
  color: #9a9a9a;
}
.job-docs .jd-legacy {
  border-top: 1px solid #ebecf1;
  padding-top: 12px;
  margin-top: 16px;
  font-size: 0.9em;
  color: #9a9a9a;
}
.job-docs .jd-legacy .btn {
  margin: 0;
}
.ds-folders code {
  font-size: 0.8em;
  word-break: break-all;
}
.ds-sub {
  font-size: 0.8571em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin: 14px 0 4px;
}

/* login page: footer links readable on the dark photo background */
.full-page .footer a,
.full-page .footer a:hover,
.full-page .footer a:focus {
  color: #fff;
  text-decoration: underline;
}
