/* Global */

h1 {font-size: 2.2em;} 
h2 {font-size: 1.8em;} 
h3 {font-size: 1.4em;} 
h4 {font-size: 1.0em; font-weight: bold;} 

img { border:0px; }

.navbar.hazmattool .navbar-brand.site-logo-brand {
  padding: 6px 10px 6px 8px;
  height: 52px;
  display: flex;
  align-items: center;
}

.navbar.hazmattool .navbar-brand .site-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  background: transparent;
}

.navbar.hazmattool .navbar-brand .site-logo-link:hover,
.navbar.hazmattool .navbar-brand .site-logo-link:focus {
  text-decoration: none;
  background: transparent;
}

.navbar.hazmattool .navbar-brand .site-logo-img {
  display: block;
  border: 0;
  background: transparent;
}

.navbar.hazmattool .navbar-brand .site-logo-img-trgs {
  height: 36px;
  width: auto;
  max-width: min(290px, 56vw);
}

.site-logo-img-trgs--mobile {
  display: none;
}

@media (max-width: 767px) {
  .navbar.hazmattool > .container-fluid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding-left: 8px;
    padding-right: 8px;
  }

  .navbar.hazmattool .navbar-header {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .navbar.hazmattool .navbar-brand.site-logo-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    padding: 4px 6px 4px 4px;
  }

  .navbar.hazmattool .navbar-brand .site-logo-link {
    max-width: 100%;
  }

  .navbar.hazmattool .navbar-brand .site-logo-img-trgs--desktop {
    display: none !important;
  }

  .navbar.hazmattool .navbar-brand .site-logo-img-trgs--mobile {
    display: block;
    height: 34px;
    width: auto;
    max-width: min(168px, calc(100vw - 4.75rem));
  }

  .navbar.hazmattool .navbar-toggle {
    flex-shrink: 0;
    margin-top: 8px;
    margin-bottom: 8px;
    margin-right: 0;
  }

  /* Full-width stacked menu below header (not a narrow side column). */
  .navbar.hazmattool .navbar-collapse {
    float: none;
    clear: both;
    width: 100%;
    flex: 0 0 100%;
    max-height: min(75vh, calc(100dvh - 56px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid #7ca1f6;
    margin-top: 0;
  }

  .navbar.hazmattool .navbar-collapse.collapse:not(.in) {
    display: none !important;
  }

  .navbar.hazmattool .navbar-collapse.collapse.in {
    display: block !important;
  }

  .navbar.hazmattool .navbar-collapse .navbar-nav.navbar-left,
  .navbar.hazmattool .navbar-collapse .navbar-nav.navbar-right {
    float: none;
    width: 100%;
    margin: 0;
  }

  .navbar.hazmattool .navbar-collapse .navbar-nav > li {
    float: none;
    width: 100%;
    clear: both;
  }

  .navbar.hazmattool .navbar-nav > li > a,
  .navbar.hazmattool .navbar-nav > li > a.navbar-link {
    white-space: normal;
    word-break: normal;
    hyphens: none;
    line-height: 1.35;
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 44px;
  }

  .navbar.hazmattool .navbar-nav > li > a .reverse {
    hyphens: none;
    word-break: normal;
  }

  /* Tap-to-open on mobile; hover-open fights narrow viewports. */
  .navbar.hazmattool.dropdown-onhover .navbar-nav > li:not(.open):hover > .dropdown-menu,
  .navbar.hazmattool.dropdown-onhover .navbar-nav > li:not(.open):hover > .dropdown-grid-wrapper > .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
  }

  .index-hero h1 {
    font-size: 1.65rem;
    line-height: 1.25;
    hyphens: auto;
  }
}

@media (min-width: 768px) {
  .navbar.hazmattool .navbar-brand .site-logo-img-trgs--mobile {
    display: none !important;
  }
}

.navbar.hazmattool .navbar-brand .site-logo-img-ushmr {
  height: 50px;
  width: auto;
  max-width: 180px;
}

body {
  padding-left: 0.5em;
  padding-right: 1em;
}

/* Elements */

#hazInfoMenu { 
  margin-top:0px;
}

#content {
  /* margin-top: 5.2em; */
  margin-bottom: 2em;
}

/* Classes */

.row {
  margin-bottom: 0.3em;
  padding-left: 1em;
}

.anchor {
  display: block;
  height: 4em; 
  margin-top: -4em;
  visibility: hidden;
}

@media (min-width:960px) { 
  .smallonly {
    display: none;
  }
}

.middle {
  vertical-align: middle;
}

.matRed { 
  color: white;
  background-color: red;
  -webkit-print-color-adjust: exact; 
  width: 20px
}

.matRed > a {  
  color: white;
}

.matYellow {
  color: black;
  background-color: yellow;
  -webkit-print-color-adjust: exact; 
  width: 20px
}

.matYellow > a {  
  color: black;
}

.matGreen {
  color: black;
  background-color: green;
  -webkit-print-color-adjust: exact; 
  width: 20px  
}

/* not used right now */
.matGreen > a {  
  color: white;
}

.border1 {
  border-width:medium !important; 
  border-style:dotted dotted solid dotted !important; 
  border-color:#FFA500 #FFA500 black #FFA500 !important; 
  border-width:3px 3px 1px 3px !important;
}

.border2 {
  border-width:medium !important; 
  border-style:dotted solid dotted dotted !important; 
  border-color:#FFA500 black #FFA500 #FFA500 !important;
  border-width:3px 1px 3px 3px !important;
}

.border3  {
  border-width:medium !important; 
  border-style:solid dotted dotted solid!important; 
  border-color:black #FFA500 #FFA500 black!important; 
  border-width:1px 3px 3px 1px !important;
}

.border4  {
  border-width:medium !important; 
  border-style:solid dotted solid dotted !important; 
  border-color:black #FFA500 black #FFA500 !important; 
  border-width:1px 3px 1px 3px !important;
}

.border5 {
  border-width:medium !important; 
  border-style:dotted solid dotted solid !important; 
  border-color:#FFA500 black #FFA500 black !important; 
  border-width:3px 1px 3px 1px !important;
}

.btn {
    white-space: normal !important;
    word-wrap: break-word;
}
	
.tooltip {
   z-index: 2000;   
   text-decoration:none;
}

div.tooltip-inner {
    max-width: 350px;
}

.source {
  color: gray;
  font-size:10px;
}

.checklist {
  list-style-image:url("../images/check_24.png")  
}

.rowAbschnitt td {
  vertical-align:top;
  border-top-width:4px !important; 
  border-top-style:solid; 
  border-top-color:black;
  border-bottom-width:4px !important; 
  border-bottom-style:solid; 
  border-bottom-color:black;
}

.breadcrumb * {
    padding:0px;
    margin:0px;
}

.tab a, #tabs-1 a, #tabs-2 a, #tabs-3 a, #tabs-4 a {
	color: blue;
}

/* Substance info (info.php) — at a glance, jump nav, print */
.haz-info-glance {
  margin-bottom: 1em;
  border-color: #b8d4e8;
}
.haz-info-glance-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5em 1em;
}
.haz-info-glance-title {
  font-size: 1.35em;
  margin: 0;
  flex: 1 1 12em;
  line-height: 1.3;
}
.haz-info-hmt-badge {
  font-size: 85%;
  font-weight: normal;
  white-space: nowrap;
}
.haz-info-glance-facts {
  margin-bottom: 0.75em;
}
.haz-info-glance-facts dt {
  width: 11em;
  text-align: left;
}
.haz-info-glance-facts dd {
  margin-left: 12em;
}
@media (max-width: 480px) {
  .haz-info-glance-facts dt,
  .haz-info-glance-facts dd {
    width: auto;
    margin-left: 0;
    float: none;
  }
  .haz-info-glance-facts dt {
    margin-top: 0.5em;
    font-weight: bold;
  }
}
.haz-info-glance-actions .btn-group {
  margin-top: 0;
  margin-bottom: 0;
}
.haz-info-trgs-lgk {
  max-width: 220px;
}
.haz-info-trgs-lgk img {
  max-width: 100%;
  height: auto;
}
.haz-info-sources li {
  margin-bottom: 0.35em;
}
.haz-info-sources-footer {
  margin-top: 2em;
  padding-top: 0.75em;
  border-top: 1px solid #eee;
}
.haz-info-sources-footer-kicker {
  margin: 0 0 0.35em;
  font-size: 0.95em;
  color: #777;
}
.haz-info-sources-footer-lines,
.haz-info-sources-footer-trgs {
  margin: 0 0 0.5em;
  line-height: 1.45;
}
.haz-info-sources-footer-trgs {
  margin-bottom: 0;
  font-size: 0.92em;
}
.haz-info-sources-meta {
  color: #888;
}
.haz-info-toolbar {
  margin: 0.25em 0 0.75em;
}
.haz-info-jump {
  margin-bottom: 1em;
}
.haz-info-print-header {
  display: none;
}

@media print {
  .no-print,
  .no-print *,
  .adsense-slot,
  .adsense-slot *,
  #hazInfoMenu,
  .haz-info-toolbar,
  .haz-info-jump,
  nav.navbar,
  .navbar,
  footer,
  .alert-dismissible {
    display: none !important;
  }
  body {
    margin-top: 0 !important;
    padding: 0.5em 1em;
    font-size: 11pt;
  }
  .haz-info-print-header {
    display: block !important;
    border-bottom: 1px solid #333;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
  }
  .haz-info-print-header .haz-info-print-meta {
    display: block;
    font-size: 9pt;
    color: #444;
    margin-top: 0.25em;
  }
  .haz-info-glance {
    border: 1px solid #999;
    page-break-inside: avoid;
  }
  .haz-info-glance-actions {
    display: none !important;
  }
  .haz-info-hmt-badge {
    border: 1px solid #666;
    color: #000 !important;
    background: #eee !important;
  }
  a[href]:after {
    content: none !important;
  }
  .anchor {
    height: 0;
    margin-top: 0;
  }
}

.table-borderless tbody tr td, .table-borderless tbody tr th, .table-borderless thead tr th {
    border: none;
}

.table_thcent th {
   text-align: center !important;
}

.row-centered {
  text-align:center;
}
.col-centered {
  display:inline-block;
  float:none;
  margin-right:-4px;
}

.pgBig {
  font-size:175%;
}

.outputbox {
  -moz-box-shadow:    3px 3px 5px 6px #E6E6E6;
  -webkit-box-shadow: 3px 3px 5px 6px #E6E6E6;
  box-shadow:         3px 3px 5px 6px #E6E6E6;
  padding:2px;
  margin:5px;
}

.datatable {
  background-color: #E6E6E6;
  border-style: solid solid solid solid;
  border-color: black;
  border-width: 1px;
  vertical-align: top;
  border-collapse: collapse; 
}

.datatable td { 
  border: 1px solid black;
  padding:2px;
}

.table-container {
  width: 100%;
  overflow-y: auto;
  _overflow: auto;
  margin: 0 0 1em;
}

.table-container::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
}

.table-container::-webkit-scrollbar-thumb {
  border-radius: 8px;
  border: 3px solid #fff;
  background-color: rgba(0, 0, 0, .3);
}

/************************** */
/* linkblock_classes        */
/************************** */
.linkblock_default { width: 180px; height: 90px; }
@media (min-width: 470px) { .linkblock_default { width: 468px; height: 15px; } }
@media (min-width: 500px) { .linkblock_default { width: 728px; height: 15px; } }

/************************** */
/* linkblock_info_right */
/************************** */
.linkblock_info_right { width: 200px; height: 90px; }
@media (max-width: 1215px) { .linkblock_info_right { display: none !important; } }

/************************** */
/* banner_specialprovisions */
/************************** */
.banner_specialprovisions { width: 234px; height: 60px; }
@media (min-width: 470px) { .banner_specialprovisions { width: 468px; height: 60px; } }
@media (min-width: 740px) { .banner_specialprovisions { width: 728px; height: 90px; } }
@media (min-width: 997px) { .banner_specialprovisions { width: 336px; height: 280px; } }

/*********************** */
/* banner_specialprovisions_wide */
/*********************** */
.banner_specialprovisions_wide { width: 234px; height: 60px; } 
@media (min-width: 470px) { .banner_specialprovisions_wide { width: 468px; height: 60px; } }
@media (min-width: 740px) { .banner_specialprovisions_wide { width: 728px; height: 90px; } }
@media (min-width: 800px)  { .banner_specialprovisions_wide { width: 970px; height: 90px; } }

/************************** */
/* banner_classes           */
/************************** */
.banner_classes { }
@media (max-width: 997px) { .banner_classes { display: none !important; } }
@media (min-width: 997px) { .banner_classes { width: 336px; height: 280px;padding-top:1em;} }

/*********************** */
/* banner_classes_wide   */
/*********************** */
.banner_classes_wide { width: 234px; height: 60px; } 
@media (min-width: 470px) { .banner_classes_wide { width: 468px; height: 60px; } }
@media (min-width: 740px) { .banner_classes_wide { width: 728px; height: 90px; } }
@media (min-width: 800px)  { .banner_classes_wide { width: 970px; height: 90px; } }

/*********************** */
/* banner_classes_bottom */
/*********************** */
.banner_classes_bottom { width: 234px; height: 60px; }
@media (min-width: 470px) { .banner_classes_bottom { width: 468px; height: 60px; } }
@media (min-width: 740px) { .banner_classes_bottom { width: 728px; height: 90px; } }
@media (min-width: 800px)  { .banner_classes_bottom { width: 970px; height: 90px; } }

/*********************** */
/* banner_matched        */
/*********************** */
.banner_matched { width: 234px; height: 300px;} 
@media (min-width: 600px) { .banner_matched { width: 600px; height: 300px; } }
@media (min-width: 800px) { .banner_matched { width: 800px; height: 400px; } }

/*********************** */
/* info_top */
/*********************** */
.info_top { width: 234px; height: 60px;} 
@media (min-width: 470px) { .info_top { width: 468px; height: 60px; float:left;} }
@media (min-width: 740px) { .info_top { width: 728px; height: 90px; float:left;} }
@media (min-width: 980px)  { .info_top { width: 970px; height: 90px; float:left;} }

/*********************** */
/* info_top2 */
/*********************** */
.info_top2 { width: 234px; height: 60px; } 
@media (min-width: 470px) { .info_top2 { width: 468px; height: 60px; } }
@media (min-width: 740px) { .info_top2 { width: 728px; height: 90px; } }
@media (min-width: 1000px) { .info_top2 { width: 468px; height: 60px;} }
@media (min-width: 1150px) { .info_top2 { width: 728px; height: 90px;} }
@media (min-width: 1200px) { .info_top2 { width: 468px; height: 60px;} }
@media (min-width: 1470px) { .info_top2 { width: 728px; height: 90px;} }
@media (min-width: 2000px) { .info_top2 { width: 970px; height: 90px;} }

/* Wrapper to reserve ad slot size and center content (reduces CLS). */
.adsense-slot { display: flex; justify-content: center; align-items: flex-start; margin: 10px 0; }

/* Nav quick search: show autosuggest above dropdown panel */
.navbar.hazmattool .dropdown-grid-wrapper > .dropdown-menu {
  overflow: visible;
}

/* Keep Chemical Search nav panel open while autosuggest list is visible */
@media (min-width: 768px) {
  .navbar.hazmattool.dropdown-onhover .navbar-nav > li.dropdown-grid.hazmat-suggest-open > .dropdown-grid-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.hazmat-suggest-host {
  position: relative !important;
}

/* HazMat autosuggest (absolute dropdown under input) */
.hazmat-suggest-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  min-width: 280px;
  margin-top: 2px;
  z-index: 10050;
  display: none;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #b8c5d4;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.hazmat-suggest-list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.hazmat-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  min-height: 44px;
  cursor: pointer;
  line-height: 1.35;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hazmat-suggest-item:hover,
.hazmat-suggest-item:focus,
.hazmat-suggest-item--active {
  background: #e8f4fc;
  outline: none;
}
.hazmat-suggest-label {
  display: block;
  font-weight: 600;
  color: #0e69be;
}
.hazmat-suggest-info {
  display: block;
  font-size: 0.85em;
  color: #666;
  margin-top: 2px;
  word-break: break-word;
}

@media (max-width: 767px) {
  .hazmat-suggest-menu {
    max-height: min(50vh, 280px);
    -webkit-overflow-scrolling: touch;
  }
  .navbar .hazmat-suggest-menu {
    z-index: 10060;
  }
}

/* help.php */
.help-lead {
  font-size: 1.15em;
  line-height: 1.5;
  margin-bottom: 1.25em;
  color: #333;
}
.help-disclaimer {
  border-left: 4px solid #f0ad4e;
}
.help-disclaimer-title {
  margin-top: 0;
  font-size: 1.2em;
  line-height: 1.35;
}
.help-disclaimer p:last-child {
  margin-bottom: 0;
}

/* impressum.php */
.impressum-lead {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 1.25em;
}
.impressum-tech-list {
  padding-left: 1.25em;
}
.impressum-tech-list > li {
  margin-bottom: 1.25em;
}
.impressum-tech-list ul {
  margin-top: 0.35em;
  margin-bottom: 0;
}
/* segregationtable.php */
.segregation-page-wrap {
  max-width: 1100px;
}
.segregation-lead {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 1em;
}
.segregation-cta {
  margin-bottom: 1.25em;
}
.segregation-class-form {
  margin: 0;
}
.segregation-class-form .control-label {
  margin-right: 0.35em;
  font-weight: normal;
}
.segregation-matrix-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.75em;
}
.segregation-matrix-scroll .table-container {
  margin-bottom: 0;
}
.segregation-legend {
  margin-top: 0.5em;
  margin-bottom: 0;
}
.segregation-downloads .panel-body {
  text-align: center;
}
.segregation-preview {
  margin: 0 auto 1em;
  max-width: 100%;
  height: auto;
}
.segregation-download-list {
  text-align: left;
  margin: 0;
}
.segregation-download-list li {
  margin-bottom: 0.5em;
}
.segregation-download-list .glyphicon {
  color: #666;
  margin-right: 0.35em;
}
.segregation-note {
  margin-top: 1em;
}
.segregation-note p:last-child {
  margin-bottom: 0;
}

/* privacy.php */
.privacy-page-wrap {
  max-width: 820px;
}
.privacy-lead {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 0.75em;
}
.privacy-toc {
  font-size: 0.95em;
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 1px solid #e9ecef;
}
.privacy-log-list {
  margin-bottom: 1em;
}
.privacy-matomo-optout {
  margin: 1em 0 1.5em;
  max-width: 100%;
  overflow-x: auto;
}
.privacy-matomo-iframe {
  border: 0;
  width: 100%;
  max-width: 600px;
  height: 200px;
  display: block;
}

/* feedback.php */
.feedback-page-wrap {
  max-width: 820px;
}
.feedback-lead {
  font-size: 1.1em;
  line-height: 1.5;
  margin-bottom: 1em;
  color: #333;
}
.feedback-scope {
  border-left: 4px solid #f0ad4e;
  margin-bottom: 1em;
}
.feedback-scope-text {
  margin: 0;
}
.feedback-hint-title {
  margin: 0 0 0.5em;
  font-size: 1.05em;
}
.feedback-hint-list {
  margin: 0;
  padding-left: 1.2em;
}
.feedback-hint-list li {
  margin-bottom: 0.35em;
}
.feedback-hint-list li:last-child {
  margin-bottom: 0;
}
.feedback-panel .panel-heading {
  background: #f7f9fb;
}
.feedback-message {
  min-height: 10em;
  resize: vertical;
}
.feedback-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 1em;
  margin-bottom: 0.5em;
}
.feedback-captcha-img {
  border: 1px solid #ccc;
  border-radius: 3px;
}
.feedback-captcha-input {
  max-width: 12em;
  font-size: 1.1em;
  letter-spacing: 0.08em;
}
.feedback-privacy-label {
  font-weight: normal;
  margin: 0;
}
.feedback-sent-title {
  margin-top: 0;
}
.feedback-footer-note {
  margin-top: 1.25em;
}

/* advertise.php */
.advertise-page-wrap {
  max-width: 920px;
  margin: 0 auto 2rem;
}
.advertise-lead {
  margin-bottom: 1.25rem;
}
.advertise-section-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}
.advertise-policy-list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}
.advertise-policy-list li {
  margin-bottom: 0.45rem;
}
.advertise-pricing-note {
  margin: 0.5rem 0 0;
}
.advertise-inventory {
  margin: 1.25rem 0;
}
.advertise-placement-table th {
  background: #f8fafc;
}
.advertise-placement-checks .checkbox {
  margin-top: 0;
  margin-bottom: 0.35rem;
}
.advertise-message {
  min-height: 120px;
}
.advertise-footer-note {
  margin-top: 1.5rem;
}
html[data-theme="dark"] .advertise-placement-table th {
  background: #1e293b;
}
html[data-theme="dark"] .advertise-policies {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

@media (max-width: 767px) {
  .feedback-panel .control-label {
    text-align: left;
    padding-bottom: 0.25em;
  }
  .feedback-panel .col-sm-offset-3 {
    margin-left: 0;
  }
}

.site-contact {
  font-style: normal;
  line-height: 1.6;
}
.site-contact-note {
  margin-top: 0.75em;
}

/*********************** */
/* info_top2_indy01      */
/*********************** */
.info_top2_indy01 { border-width:1px !important; border-style:solid; border-color:gray; }
.info_top2_indy01 { width: 310px; height: 60px; } 
#info_top2_indy01_header { font-size:90%; text-align:left; }
#info_top2_indy01_text1 { font-size:80%; }
#info_top2_indy01_text2 { display:none; }
#info_top2_indy01_text3 { display:none; }

@media (min-width: 490px)  { 
  .info_top2_indy01 { width: 468px; height: 120px; } 
  #info_top2_indy01_header { font-size:180%; text-align:center }
  #info_top2_indy01_text1 { font-size:100%; }
  #info_top2_indy01_text2 { display:block; }
  #info_top2_indy01_text3 { display:none; }
}

@media (min-width: 749px)  { 
  .info_top2_indy01 { width: 728px; height: 120px; } 
  #info_top2_indy01_header { font-size:180%; text-align:center }
  #info_top2_indy01_text1 { font-size:100%; }
  #info_top2_indy01_text2 { display:block; }
  #info_top2_indy01_text3 { display:none; }
}

@media (min-width: 992px)  { 
  .info_top2_indy01 { width: 468px; height: 120px; } 
  #info_top2_indy01_header { font-size:180%; text-align:center }
  #info_top2_indy01_text1 { font-size:100%; }
  #info_top2_indy01_text2 { display:block; }
  #info_top2_indy01_text3 { display:none; }
}

@media (min-width: 1095px)  { 
  .info_top2_indy01 { width: 728px; height: 120px; } 
  #info_top2_indy01_header { font-size:180%; text-align:center }
  #info_top2_indy01_text1 { font-size:100%; }
  #info_top2_indy01_text2 { display:block; }
  #info_top2_indy01_text3 { display:none; }
}

@media (min-width: 1204px)  { 
  .info_top2_indy01 { width: 468px; height: 120px; } 
  #info_top2_indy01_header { font-size:180%; text-align:center }
  #info_top2_indy01_text1 { font-size:100%; }
  #info_top2_indy01_text2 { display:block; }
  #info_top2_indy01_text3 { display:none; }
}

@media (min-width: 1450px)  { 
  .info_top2_indy01 { width: 728px; height: 120px; } 
  #info_top2_indy01_header { font-size:180%; text-align:center }
  #info_top2_indy01_text1 { font-size:100%; }
  #info_top2_indy01_text2 { display:block; }
  #info_top2_indy01_text3 { display:block; }
}

/*********************** */
/* info_right_top        */
/*********************** */
.info_right_top {padding-top:2em; }  
@media (max-width:511px) { .info_right_top { display: none !important;} }
@media (min-width:512px) { .info_right_top { width: 468px; height: 60px; } }
@media (min-width:993px) { .info_right_top { width: 300px; height: 250px; } }
@media (min-width:1002px) and (min-height: 797px) { .info_right_top { width: 300px; height: 600px; } }
@media (min-width:1208px) and (min-height: 1100px)  { .info_right_top { width: 300px; height: 1050px; } }

/*********************** */
/* info_right_top_indy01 */
/*********************** */
.info_right_top_indy01 { margin-top:2em; padding:0.3em; border-width:1px !important; border-style:solid; border-color:gray; } 
@media (max-width:511px) { 
  .info_right_top_indy01 { display: none !important;} 
}

@media (min-width:993px) { 
  .info_right_top_indy01 { width: 300px; height: 282px; } 
  #info_right_top_indy01_header { font-size:180%; }
  #info_right_top_indy01_text1 { font-size:120%; }
  #info_right_top_indy01_text2 { font-size:100%; display:block; }
  #info_right_top_indy01_text3 { font-size:90%; display:block; }
}

/*********************** */
/* info_right_top2        */
/*********************** */
.info_right_top2 { padding-top: 40em; }  
@media (max-width:511px) { .info_right_top2 { display: none !important;} }
@media (min-width:512px) { .info_right_top2 { width: 300px; height: 600px;} }

/*********************** */
/* info_bottom        */
/*********************** */
.info_bottom { width: 234px; height: 60px; }
@media (min-width: 470px) { .info_bottom { width: 468px; height: 60px; } }
@media (min-width: 740px) { .info_bottom { width: 728px; height: 90px; } }
@media (min-width: 800px)  { .info_bottom { width: 970px; height: 90px; } }

/*********************** */
/* banner_segregationtable */
/*********************** */
.banner_segregationtable { width: 234px; height: 60px; } 
@media (min-width: 300px) { .banner_segregationtable { width: 468px; height: 60px; } }
@media (min-width: 680px) { .banner_segregationtable { width: 728px; height: 90px; } }

/*********************** */
/* banner_erg_wide */
/*********************** */
.banner_erg_wide { width: 234px; height: 60px; } 
@media (min-width: 470px) { .banner_erg_wide { width: 468px; height: 60px; } }
@media (min-width: 740px) { .banner_erg_wide { width: 728px; height: 90px; } }
@media (min-width: 800px)  { .banner_erg_wide { width: 970px; height: 90px; } }

/*********************** */
/* banner_erg_side */
/*********************** */
.banner_erg_side { width: 234px; height: 60px; padding-top:1em; }
@media (min-width: 470px) { .banner_erg_side { width: 468px; height: 60px; padding-top:1em;} }
@media (min-width: 740px) { .banner_erg_side { width: 728px; height: 90px; padding-top:1em;} }
@media (min-width: 997px) { .banner_erg_side { width: 336px; height: 280px;padding-top:1em; } }

/*********************** */
/* banner_erg_bottom     */
/*********************** */
.banner_erg_bottom { width: 234px; height: 60px; }
@media (min-width: 470px) { .banner_erg_bottom { width: 468px; height: 60px; } }
@media (min-width: 740px) { .banner_erg_bottom { width: 728px; height: 90px; } }
@media (min-width: 800px)  { .banner_erg_bottom { width: 970px; height: 90px; } }


.label-new {
    background-color: yellow; /* Red background for visibility */
    color: black; /* White text */
    font-size: 10px; /* Smaller font size to fit well */
    padding: 2px 4px; /* Padding for the label */
    border-radius: 3px; /* Rounded corners */
    vertical-align: middle; /* Aligns the label vertically with the menu text */
    display: inline-block;
    text-transform: uppercase;
}

/* Collapsible scope note (segregation check, no-conflict result) */
.hmt-scope-note {
  margin-top: 12px;
  border: 1px solid #b8d4e8;
  border-radius: 6px;
  background: #f4f9fc;
}
.hmt-scope-note-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  font-weight: 600;
  color: #0E69BE;
  user-select: none;
}
.hmt-scope-note-summary::-webkit-details-marker { display: none; }
.hmt-scope-note-summary::marker { content: ""; }
.hmt-scope-note-chevron {
  color: #0E69BE;
  font-size: 12px;
  transition: transform 0.15s ease;
  flex-shrink: 0;
}
.hmt-scope-note[open] .hmt-scope-note-chevron {
  transform: rotate(90deg);
}
.hmt-scope-note-title { flex: 1 1 auto; min-width: 12em; }
.hmt-scope-note-hint {
  font-weight: normal;
  font-size: 0.85em;
  color: #6c757d;
  margin-left: auto;
}
.hmt-scope-note[open] .hmt-scope-note-hint { display: none; }
.hmt-scope-note-body {
  margin: 0 12px 12px;
  border-top: 1px solid #d4e8f4;
}

/* Printable report: scope note only in appendix section, not under conflicts */
.hmt-compat-print-page .hmt-scope-note--inline {
  display: none !important;
}

/* Compatibility / segregation check — screen + print report */
.hmt-compat-page {
  max-width: 1280px;
  margin: 0 auto 2rem;
}
.hmt-compat-toolbar {
  margin-bottom: 1.25rem;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
  border: 1px solid #d8e2ec;
  border-radius: 8px;
}
.hmt-compat-toolbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hmt-compat-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hmt-compat-toolbar-hint {
  margin: 10px 0 0;
}
.hmt-compat-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: 600;
}
.hmt-compat-status-ok {
  background: #dff0d8;
  color: #2d6a2d;
  border: 1px solid #b8ddb8;
}
.hmt-compat-status-warn {
  background: #fcf8e3;
  color: #7a5b00;
  border: 1px solid #f0e4b0;
}
.hmt-compat-page-title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.hmt-compat-intro {
  color: #555;
  max-width: 52em;
}
.hmt-compat-layout {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.hmt-compat-matrix-wrap {
  overflow-x: auto;
  padding: 4px;
  background: #fff;
  border: 1px solid #e2e8ef;
  border-radius: 6px;
}
.hmt-compat-conflicts-col .alert,
.hmt-compat-conflicts .alert {
  margin-bottom: 0;
}
.hmt-compat-section-title {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.15em;
  font-weight: 600;
  border-bottom: 1px solid #e2e8ef;
  padding-bottom: 0.35rem;
}
.hmt-compat-section {
  margin-bottom: 1.5rem;
  page-break-inside: avoid;
}
.hmt-compat-report-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #0E69BE;
}
.hmt-compat-report-title {
  margin: 0 0 0.25rem;
  font-size: 1.5em;
  font-weight: 600;
  color: #1a3a52;
}
.hmt-compat-report-subtitle {
  margin: 0;
  color: #5a6a78;
  font-size: 0.95em;
}
.hmt-compat-report-dl {
  margin: 0;
  min-width: 220px;
}
.hmt-compat-report-dl dt {
  width: 88px;
  text-align: left;
  color: #666;
}
.hmt-compat-report-dl dd {
  margin-left: 96px;
}
.hmt-compat-items-table {
  max-width: 480px;
}

/* Print report window */
.hmt-compat-print-body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #222;
}
.hmt-compat-print-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a3a52;
  color: #fff;
  padding: 10px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.hmt-compat-print-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hmt-compat-print-actions .btn {
  margin-left: 6px;
}
.hmt-compat-print-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}
.hmt-compat-print-footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 12px 20px 24px;
  border-top: 1px solid #ddd;
  font-size: 0.8em;
  color: #666;
}
.hmt-compat-print-footer p {
  margin: 0;
}

@media print {
  .hmt-compat-print-bar,
  .no-print,
  .no-print * {
    display: none !important;
  }
  .hmt-compat-print-body {
    background: #fff;
  }
  .hmt-compat-print-page {
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .hmt-compat-section {
    page-break-inside: avoid;
  }
  .hmt-compat-matrix-wrap {
    overflow: visible;
    border: none;
    page-break-inside: avoid;
  }
  .matRed,
  .matYellow,
  .matGreen,
  table td[style*="background-color:red"],
  table td[style*="background-color:yellow"] {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  a[href]:after {
    content: "" !important;
  }
  /* Always print full scope text at end of report (no collapsed details) */
  .hmt-scope-note summary.hmt-scope-note-summary {
    display: none !important;
  }
  .hmt-scope-note .hmt-scope-note-body {
    display: block !important;
    border-top: none;
    margin: 0 12px 12px;
  }
  .hmt-compat-section-scope {
    page-break-inside: avoid;
  }
  .hmt-solve-restriction-toggle {
    display: none !important;
  }
  .hmt-solve-restriction-detail {
    display: block !important;
    margin-top: 0.35rem;
    padding: 0.5rem 0.65rem;
    border: 1px solid #d8e0ea;
    border-radius: 4px;
    background: #fafbfc;
  }
  .hmt-lager-cell,
  .hmt-lager-cell--0,
  .hmt-lager-cell--1,
  .hmt-lager-cell--2,
  .hmt-lager-cell--3,
  .hmt-lager-cell--4,
  .hmt-lager-cell--5 {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .hmt-solve-table-wrap {
    overflow: visible !important;
  }
  .hmt-solve-table {
    page-break-inside: auto;
  }
  .hmt-solve-row {
    page-break-inside: avoid;
  }
}

/* TRGS 510 storage structure (solve.php) */
.hmt-solve-legend {
  border-color: #c5d4e8;
  box-shadow: 0 1px 2px rgba(15, 35, 60, 0.06);
  margin-bottom: 1.25rem;
}
.hmt-solve-legend .panel-heading {
  background: linear-gradient(180deg, #f7fafc 0%, #eef3f8 100%);
  border-bottom-color: #c5d4e8;
}
.hmt-solve-legend-text p {
  margin-bottom: 0.75rem;
  line-height: 1.55;
  color: #3d4a57;
}
.hmt-solve-legend-text p:last-child {
  margin-bottom: 0;
}
.hmt-solve-legend-options {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e8edf2;
}
.hmt-solve-table-wrap {
  margin-top: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(15, 35, 60, 0.08);
}
.hmt-solve-table {
  margin-bottom: 0;
  background: #fff;
}
.hmt-solve-table > thead > tr > th {
  background: #f0f4f8;
  border-bottom-width: 2px;
  font-size: 0.92rem;
  vertical-align: middle;
}
.hmt-solve-table > tbody > tr > td {
  vertical-align: top;
}
.hmt-solve-row:hover {
  background-color: #f9fbfd;
}
.hmt-solve-section-count {
  display: inline-block;
  min-width: 1.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e8eef5;
  font-weight: 600;
  color: #2c5282;
}
.hmt-solve-opt-cell {
  min-width: 8.5rem;
}
.hmt-solve-opt-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
}
.hmt-solve-opt-badge--good {
  background: #d4edda;
  color: #155724;
  border: 1px solid #b7dfc3;
}
.hmt-solve-opt-badge--std {
  background: #f1f3f5;
  color: #495057;
  border: 1px solid #dee2e6;
  font-size: 0.95rem;
}
.hmt-solve-diagram-cell {
  min-width: 6rem;
}
.hmt-solve-restrictions-cell {
  min-width: 14rem;
  max-width: 28rem;
}
.hmt-lager-diagram-wrap {
  display: inline-block;
  max-width: 100%;
  padding: 0.15rem 0;
}
.hmt-lager-diagram {
  border-collapse: separate;
  border-spacing: 0 0.75rem;
  margin: 0;
  width: auto;
}
.hmt-lager-section .hmt-lager-cell {
  border: 1px solid #94a3b8;
  border-top-width: 2px;
  border-bottom-width: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 1px 2px rgba(15, 23, 42, 0.06);
}
.hmt-lager-section .hmt-lager-cell:first-child {
  border-left-width: 4px;
  border-left-color: #334155;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  padding-left: 0.75rem;
}
.hmt-lager-section .hmt-lager-cell:last-child {
  border-right-width: 2px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}
.hmt-lager-cell {
  min-width: 3.25rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #1f2933;
}
.hmt-lager-cell--0 { background: #dbeafe; }
.hmt-lager-cell--1 { background: #fef3c7; }
.hmt-lager-cell--2 { background: #d1fae5; }
.hmt-lager-cell--3 { background: #ede9fe; }
.hmt-lager-cell--4 { background: #ffe4e6; }
.hmt-lager-cell--5 { background: #e0f2fe; }
.hmt-lager-cell-meta {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #334155;
  margin-bottom: 0.35rem;
  padding: 0.12rem 0.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 3px;
  line-height: 1.2;
}
.hmt-lager-diagram-wrap--legend .hmt-lager-cell {
  font-size: 0.82rem;
  font-weight: 500;
}
.hmt-solve-restrictions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.hmt-solve-restriction-toggle {
  display: block;
  padding: 0.45rem 0.6rem;
  border: 1px solid #d8e0ea;
  border-radius: 4px;
  background: #f8fafc;
  color: #2b6cb0;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.35;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hmt-solve-restriction-toggle:hover,
.hmt-solve-restriction-toggle:focus {
  background: #edf2f7;
  border-color: #b8c9dc;
  color: #1a4f8b;
  text-decoration: none;
}
.hmt-solve-restriction-toggle .glyphicon {
  font-size: 0.75rem;
  color: #718096;
}
.hmt-solve-restriction-detail {
  margin: 0.25rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid #ecc94b;
  background: #fffff0;
  border-radius: 0 4px 4px 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3d4a57;
}
.hmt-solve-restriction-detail b {
  color: #2d3748;
}
@media (max-width: 767px) {
  .hmt-solve-restrictions-cell {
    max-width: none;
  }
  .hmt-lager-diagram {
    border-spacing: 0 0.55rem;
  }
  .hmt-lager-cell {
    min-width: 2.75rem;
    padding: 0.45rem 0.5rem;
    font-size: 0.85rem;
  }
  .hmt-lager-cell-meta {
    font-size: 0.62rem;
  }
}

/* Site footer, scope banner, substance feedback CTA */
.hmt-site-footer {
  margin: 1.5rem 0 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid #dce3ea;
  text-align: center;
}
.hmt-theme-toggle {
  color: #5c6570;
}
/* 49 CFR 172.102 special provisions page */
.sp-page-wrap {
  margin-bottom: 1.5rem;
}
.sp-hero {
  margin-bottom: 1.25rem;
}
.sp-hero h1 {
  margin-top: 0;
  font-size: 1.85rem;
  line-height: 1.25;
}
.sp-hero-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #4a5560;
  margin-bottom: 0.75rem;
}
.sp-source-note {
  font-size: 0.88rem;
  margin: 0.5rem 0 0;
}
.sp-category-grid {
  margin-top: 0.5rem;
}
.sp-category-col {
  margin-bottom: 0.85rem;
}
.sp-category-tile {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  padding: 0.95rem 1rem 0.85rem;
  color: #343a40;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(14, 105, 190, 0.07);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sp-category-tile:hover,
.sp-category-tile:focus {
  text-decoration: none;
  color: #0E69BE;
  border-color: #0E69BE;
  box-shadow: 0 4px 14px rgba(14, 105, 190, 0.14);
  transform: translateY(-1px);
}
.sp-category-abbr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: #e8f2fb;
  color: #0E69BE;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
}
.sp-category-title {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}
.sp-category-desc {
  display: block;
  flex: 1 1 auto;
  font-size: 0.84rem;
  color: #5c6570;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}
.sp-category-cta {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0E69BE;
}
.sp-sidebar-panel {
  background: #fff;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 8px rgba(14, 105, 190, 0.06);
}
.sp-sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}
.sp-sidebar-title small {
  display: block;
  font-size: 0.78rem;
  color: #7a8490;
  font-weight: 400;
  margin-top: 0.15rem;
}
.sp-category-intro .panel-title {
  font-size: 1.45rem;
  line-height: 1.3;
}
.sp-category-lead {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}
.sp-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.sp-filter-wrap {
  flex: 1 1 220px;
  max-width: 420px;
}
.sp-code-filter {
  width: 100%;
}
.sp-list-panel .table {
  margin-bottom: 0;
}
.sp-code-table th {
  white-space: nowrap;
}
.sp-col-code {
  width: 7.5rem;
}
.sp-col-action {
  width: 6.5rem;
  text-align: right;
  white-space: nowrap;
}
.sp-code-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #eef4fb;
  border: 1px solid #c8d9ee;
  color: #0E69BE;
  font-size: 0.92rem;
  font-weight: 700;
}
a.sp-code-link:hover .sp-code-badge,
a.sp-code-link:focus .sp-code-badge {
  background: #dbeaf8;
  border-color: #0E69BE;
}
.sp-desc-cell {
  word-wrap: break-word;
  line-height: 1.45;
  font-size: 0.94rem;
}
.sp-view-btn {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}
.sp-detail-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.sp-code-badge-lg {
  font-size: 1.15rem;
  padding: 0.25rem 0.65rem;
}
.sp-detail-meta {
  font-size: 0.95rem;
}
.sp-section-title {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.65rem;
  color: #343a40;
}
.sp-detail-section:first-of-type .sp-section-title {
  margin-top: 0.35rem;
}
.sp-provision-text {
  line-height: 1.55;
  font-size: 0.96rem;
}
.sp-provision-text p {
  margin-bottom: 0.75rem;
}
.sp-crossref ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}
.sp-crossref li {
  margin-bottom: 0.35rem;
}
.sp-detail-sidebar {
  margin-top: 1rem;
}
@media (min-width: 992px) {
  .sp-detail-sidebar {
    margin-top: 0;
  }
}
.sp-detail-nav {
  margin-top: 1.25rem;
}
.sp-back-wrap {
  margin: 1rem 0 0;
}
.sp-ad-row td {
  padding: 0.75rem 0;
  text-align: center;
  background: transparent !important;
}
@media (max-width: 767px) {
  .sp-col-action {
    display: none;
  }
  .sp-desc-cell {
    font-size: 0.9rem;
  }
  .sp-code-table tbody tr[data-sp-search] {
    cursor: pointer;
  }
}

.hmt-scope-banner {
  margin-bottom: 1rem;
}
.hmt-scope-banner-text {
  margin: 0;
  padding-right: 1.5rem;
}
.haz-info-feedback-cta {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
}

/* Lagerklassen / hazard class picker (input.php) */
.input-lgk-section {
  margin-top: 1rem;
}
.input-lgk-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.input-lgk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  width: 100%;
}
@media (min-width: 768px) {
  .input-lgk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1200px) {
  .input-lgk-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.input-lgk-cell {
  padding: 0.65rem 0.5rem;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  line-height: 1.35;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-lgk-cell:hover {
  border-color: #0E69BE;
  box-shadow: 0 2px 8px rgba(14, 105, 190, 0.12);
}
.input-lgk-cell label {
  display: block;
  margin: 0;
  font-weight: normal;
  cursor: pointer;
}
.input-lgk-cell--unknown {
  grid-column: 1 / -1;
  max-width: 28rem;
}
.input-lgk-cell img {
  display: block;
  margin: 0.35rem auto 0;
}

/* Dark mode (toggle + prefers-color-scheme default via data-theme on html) */
html[data-theme="dark"] {
  color-scheme: dark;
}
html[data-theme="dark"] body {
  background-color: #15181c;
  color: #e8eaed;
}
html[data-theme="dark"] #content,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .index-panel,
html[data-theme="dark"] .index-tile,
html[data-theme="dark"] .input-lgk-cell,
html[data-theme="dark"] .well,
html[data-theme="dark"] .help-page-wrap,
html[data-theme="dark"] .feedback-page-wrap,
html[data-theme="dark"] .privacy-page-wrap,
html[data-theme="dark"] .sp-page-wrap,
html[data-theme="dark"] .sp-sidebar-panel,
html[data-theme="dark"] .sp-category-tile {
  background-color: #1e2228;
  color: #e8eaed;
}
html[data-theme="dark"] .panel-default > .panel-heading,
html[data-theme="dark"] .haz-info-glance-heading {
  background-color: #252a31;
  border-color: #3a424d;
  color: #e8eaed;
}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .panel-default,
html[data-theme="dark"] .table-bordered,
html[data-theme="dark"] .table-bordered > thead > tr > th,
html[data-theme="dark"] .table-bordered > tbody > tr > td,
html[data-theme="dark"] .index-panel,
html[data-theme="dark"] .index-tile,
html[data-theme="dark"] .sp-category-tile,
html[data-theme="dark"] .sp-sidebar-panel,
html[data-theme="dark"] .hmt-site-footer {
  border-color: #3a424d;
}
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #1a1f26;
}
html[data-theme="dark"] a {
  color: #7eb8ff;
}
html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:focus {
  color: #a8d0ff;
}
html[data-theme="dark"] .text-muted {
  color: #9aa3ad !important;
}
html[data-theme="dark"] .jumbotron.index-hero {
  background-color: #1a2740 !important;
  border-color: #2d5a9e;
}
html[data-theme="dark"] .index-tile-text,
html[data-theme="dark"] .sp-category-desc,
html[data-theme="dark"] .sp-hero-lead {
  color: #b0b8c0;
}
html[data-theme="dark"] .index-tile:hover,
html[data-theme="dark"] .index-tile:focus,
html[data-theme="dark"] .sp-category-tile:hover,
html[data-theme="dark"] .sp-category-tile:focus {
  color: #a8d0ff;
  border-color: #4a8fd4;
}
html[data-theme="dark"] .input-lgk-cell:hover {
  border-color: #4a8fd4;
  box-shadow: 0 2px 8px rgba(74, 143, 212, 0.2);
}
html[data-theme="dark"] .sp-category-abbr,
html[data-theme="dark"] .sp-code-badge {
  background-color: #1a3040;
  border-color: #2d5a7a;
  color: #a8d0ff;
}
html[data-theme="dark"] .alert-warning {
  background-color: #3d3018;
  border-color: #6b5424;
  color: #f0e6cf;
}
html[data-theme="dark"] .alert-info {
  background-color: #1a3040;
  border-color: #2d5a7a;
  color: #d6e8f5;
}
html[data-theme="dark"] .form-control {
  background-color: #252a31;
  border-color: #3a424d;
  color: #e8eaed;
}
html[data-theme="dark"] .breadcrumb {
  background-color: #1e2228;
}
html[data-theme="dark"] .haz-info-hmt-badge {
  background-color: #2d5a7a;
}

/* Load Inspector (fieldcheck.php) — inspector/auditor board */
.hmt-fieldcheck-page,
.hmt-inspector-page {
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
}

/* —— Inspector header & status —— */
.hmt-insp-header {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #c5d9eb;
  background: linear-gradient(135deg, #f0f7ff 0%, #fff 55%);
  box-shadow: 0 4px 20px rgba(14, 105, 190, 0.1);
}
.hmt-insp-header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}
.hmt-insp-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 220px;
}
.hmt-insp-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #0E69BE;
  color: #fff;
  font-size: 1.35rem;
}
.hmt-insp-title {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800;
  color: #0a3d6b;
  line-height: 1.2;
}
.hmt-insp-subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.35;
}
.hmt-insp-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.hmt-insp-clear-form {
  display: inline;
  margin: 0;
}
.hmt-insp-header-actions .btn {
  min-height: 40px;
}
.hmt-insp-status {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}
.hmt-insp-status--idle {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.hmt-insp-status--partial {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.hmt-insp-status--ok {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.hmt-insp-status--review {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.hmt-insp-audit-ribbon {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}
.hmt-insp-empty {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  margin-bottom: 0.5rem;
  border: 2px dashed #c5d9eb;
  border-radius: 14px;
  background: #f8fafc;
}
.hmt-insp-empty-icon {
  display: block;
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.hmt-insp-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0a3d6b;
}
.hmt-insp-empty-lead {
  margin: 0 auto 1rem;
  max-width: 28em;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.45;
}
.hmt-insp-empty-cta {
  min-height: 48px;
  min-width: 12rem;
}
.hmt-insp-lines-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
}
.hmt-insp-lines-hint {
  margin: 0 0 0.5rem;
}
.hmt-fc-tile-strip--start {
  justify-content: center;
  padding-top: 0.25rem;
}
@media (max-width: 575.98px) {
  .hmt-insp-header {
    padding: 0.85rem;
  }
  .hmt-insp-header-actions {
    width: 100%;
  }
  .hmt-insp-header-actions .btn {
    flex: 1 1 auto;
  }
}
.hmt-fc-tile-num {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #0E69BE;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  z-index: 2;
}
.hmt-fc-tile-pg {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  vertical-align: middle;
}
.hmt-insp-findings .hmt-fc-live-section-title .glyphicon {
  color: #b45309;
  margin-right: 0.25rem;
}
.hmt-insp-findings-empty {
  padding: 0.75rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
}
.hmt-fc-board-side .hmt-insp-findings .alert-danger,
.hmt-fc-board-side .hmt-insp-findings .alert-warning {
  border-left: 4px solid #b45309;
}
.hmt-fc-intro-details {
  margin-bottom: 1rem;
  border: 1px solid #c5d9eb;
  border-radius: 10px;
  background: #f8fafc;
}
.hmt-fc-intro-summary {
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  min-height: 44px;
}
.hmt-fc-intro-summary::-webkit-details-marker {
  display: none;
}
.hmt-fc-intro-summary-hint {
  font-weight: normal;
  font-size: 0.88rem;
  color: #64748b;
}
.hmt-fc-intro-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid #e2e8f0;
}
.hmt-fc-intro-badge {
  color: #0E69BE;
  font-size: 0.9rem;
}
.hmt-fc-lead {
  margin: 0.75rem 0;
  line-height: 1.5;
  color: #334155;
}
.hmt-fc-intro-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: #475569;
}
.hmt-fc-flash {
  margin-bottom: 0.75rem;
}

/* —— Board layout —— */
.hmt-fc-board {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
/* Tablet landscape / small desktop: substances on top, load check below */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hmt-fc-board {
    gap: 1.15rem;
  }
  .hmt-fc-board-side {
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
  }
}
/* Desktop: substances left, live panel right (sticky) */
@media (min-width: 992px) {
  .hmt-fc-board {
    grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
    align-items: start;
    gap: 1.35rem;
  }
  .hmt-fc-board-main {
    position: sticky;
    top: 0.75rem;
    align-self: start;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
    padding-right: 0.25rem;
  }
  .hmt-fc-board-side {
    position: sticky;
    top: 0.75rem;
    max-height: calc(100vh - 5.5rem);
    overflow-y: auto;
  }
}
@media (min-width: 1400px) {
  .hmt-fc-board {
    grid-template-columns: minmax(360px, 34%) minmax(0, 1fr);
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;
  }
}
.hmt-fc-board-side {
  background: #fff;
  border: 1px solid #dce8f2;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 24px rgba(14, 105, 190, 0.08);
  min-height: 12rem;
  container-type: inline-size;
  container-name: hmt-fc-live;
}
@media (max-width: 767.98px) {
  .hmt-fc-board-side {
    margin-top: 0.25rem;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 2px 16px rgba(14, 105, 190, 0.1);
  }
}
.hmt-fc-board-side.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

/* —— Substance tiles —— */
.hmt-fc-board-tiles {
  position: relative;
}
.hmt-fc-tile-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 0.15rem 0.75rem;
  margin: 0 -0.15rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  touch-action: pan-x;
  scrollbar-width: thin;
}
.hmt-fc-tile-strip::-webkit-scrollbar {
  height: 6px;
}
.hmt-fc-tile-strip::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 3px;
}
/* Scroll hint (mobile / tablet horizontal strip) */
@media (max-width: 991.98px) {
  .hmt-fc-board-tiles::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 2.5rem;
    height: calc(100% - 0.5rem);
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(248, 250, 252, 0.95));
    border-radius: 0 12px 12px 0;
  }
}
/* Desktop: wrap tiles instead of horizontal scroll */
@media (min-width: 992px) {
  .hmt-fc-tile-strip {
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
  }
  .hmt-fc-board-tiles::after {
    display: none;
  }
}
.hmt-fc-tile {
  flex: 0 0 auto;
  width: clamp(148px, 72vw, 280px);
  min-height: 156px;
  border-radius: 14px;
  border: 2px solid #dce8f2;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  scroll-snap-align: start;
  position: relative;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
@media (min-width: 576px) {
  .hmt-fc-tile {
    width: clamp(168px, 42vw, 220px);
    min-height: 172px;
  }
}
@media (min-width: 768px) {
  .hmt-fc-tile {
    width: 200px;
    min-height: 188px;
  }
}
@media (min-width: 992px) {
  .hmt-fc-tile {
    width: calc(50% - 0.4rem);
    min-width: 168px;
    max-width: 240px;
    min-height: 196px;
  }
}
@media (min-width: 1200px) {
  .hmt-fc-tile {
    width: calc(33.333% - 0.55rem);
    max-width: 220px;
  }
}
.hmt-fc-tile--substance {
  border-color: #93c5fd;
  background: linear-gradient(160deg, #f0f7ff 0%, #fff 45%);
}
.hmt-fc-tile--add {
  border-style: dashed;
  border-color: #0E69BE;
  background: #f8fbff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  width: clamp(120px, 28vw, 180px);
  min-height: 156px;
  scroll-snap-align: center;
}
@media (min-width: 576px) {
  .hmt-fc-tile--add {
    width: clamp(140px, 22vw, 180px);
    min-height: 172px;
  }
}
@media (min-width: 768px) {
  .hmt-fc-tile--add {
    width: 180px;
    min-height: 188px;
  }
  .hmt-fc-tile-plus {
    font-size: 3.25rem;
  }
}
@media (min-width: 992px) {
  .hmt-fc-tile--add {
    width: calc(50% - 0.4rem);
    min-width: 148px;
    max-width: 200px;
    min-height: 196px;
  }
  .hmt-fc-tile-plus {
    font-size: 3.5rem;
  }
}
.hmt-fc-tile--add:hover,
.hmt-fc-tile--add:focus {
  background: #e8f2fb;
  border-color: #0a5a9e;
  outline: none;
}
.hmt-fc-tile--add-form {
  width: clamp(260px, 88vw, 340px);
  min-height: 156px;
  border-color: #0E69BE;
  padding: 0.85rem;
  scroll-snap-align: center;
}
@media (max-width: 575.98px) {
  .hmt-fc-tile--add-form {
    width: calc(100vw - 2.5rem);
    max-width: none;
  }
}
@media (min-width: 992px) {
  .hmt-fc-tile--add-form {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    min-height: auto;
  }
}
.hmt-fc-tile-plus {
  display: block;
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1;
  color: #0E69BE;
  margin-bottom: 0.35rem;
}
.hmt-fc-tile-add-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0a3d6b;
  line-height: 1.25;
}
.hmt-fc-tile-delete {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  text-decoration: none;
  z-index: 2;
}
.hmt-fc-tile-delete:hover,
.hmt-fc-tile-delete:focus {
  background: #fee2e2;
  text-decoration: none;
  color: #991b1b;
}
.hmt-fc-tile-class {
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  font-weight: 800;
  color: #0E69BE;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  padding: 0 2.75rem 0 2.1rem;
}
.hmt-fc-tile-ex {
  font-size: 0.85rem;
  font-weight: 600;
}
.hmt-fc-tile-un {
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-weight: 700;
  color: #0a3d6b;
  margin-bottom: 0.25rem;
}
.hmt-fc-tile-name {
  font-size: 0.84rem;
  line-height: 1.35;
  color: #475569;
  flex: 1 1 auto;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.hmt-fc-tile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.hmt-fc-tile-fact {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  background: #e8f2fb;
  color: #0E69BE;
  text-decoration: none;
}
@media (max-width: 575.98px) {
  .hmt-fc-tile-fact {
    min-height: 40px;
    flex: 1 1 calc(50% - 0.2rem);
    justify-content: center;
  }
}
.hmt-fc-tile-fact span {
  opacity: 0.75;
  font-weight: 500;
}
.hmt-fc-add-form .form-control {
  font-size: 16px;
  min-height: 48px;
  margin-bottom: 0.5rem;
}
.hmt-fc-add-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
@media (min-width: 576px) {
  .hmt-fc-add-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hmt-fc-add-actions .btn {
    flex: 1 1 auto;
    min-width: 7rem;
  }
}
.hmt-fc-add-actions .btn {
  min-height: 48px;
}

/* —— Hazard classes / placard reference row —— */
.hmt-fc-placards-row {
  padding: 0.65rem 0.15rem 0;
  border-top: 1px solid #e8eef4;
  margin-top: 0.35rem;
}
.hmt-fc-placards-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.75em;
  margin-bottom: 0.35em;
}
.hmt-fc-placards-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.hmt-fc-placards-sublabel {
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
}
.hmt-fc-placards-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-bottom: 0.35em;
}
.hmt-fc-placards-hint {
  margin: 0;
  line-height: 1.4;
}
.hmt-fc-placard-audit {
  margin: 0 0 1.25em;
  padding: 0.75em 0 0;
  border-top: 1px solid #e0e6ed;
}
.hmt-fc-placard-audit-now {
  margin-bottom: 0.75em;
}
.hmt-fc-placard-audit-details {
  margin: 0.5em 0;
}
.hmt-fc-placard-audit-summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.35em;
}
.hmt-fc-placard-audit-class-list,
.hmt-fc-placard-gaps,
.hmt-fc-placard-pipeline {
  padding-left: 1.25em;
  margin: 0.35em 0 0.75em;
}
.hmt-fc-placard-audit-class-item {
  margin-bottom: 0.5em;
}
.hmt-fc-placard-class-note {
  margin-bottom: 0.75em;
}
.hmt-fc-placard-class-note-title {
  font-size: 1em;
  margin: 0 0 0.25em;
}
.hmt-fc-placard-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.25rem 0.65rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: #e8f2fb;
  color: #0a3d6b;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #c8d9ee;
}
.hmt-fc-placard-mini-img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
}
.hmt-fc-placard-mini-label {
  line-height: 1.2;
  padding-right: 0.15rem;
}
.hmt-fc-zone-set {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: #eef4fb;
  border: 1px solid #c8d9ee;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a3d6b;
}
@media (max-width: 575.98px) {
  .hmt-fc-placard-mini {
    min-height: 44px;
    padding: 0.4rem 0.85rem;
  }
}
.hmt-fc-placard-mini:hover,
.hmt-fc-placard-mini:focus {
  background: #0E69BE;
  color: #fff;
  text-decoration: none;
}

.hmt-beta-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
  margin-left: 0.35rem;
}
.hmt-fc-placard-engine {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #f0c36d;
  border-radius: 8px;
  background: #fffbf0;
}
.hmt-fc-placard-engine-result {
  margin: 0.65rem 0 0;
}
.hmt-fc-placard-engine-reasons {
  margin: 0.5rem 0 0 1.1rem;
  padding: 0;
}
.hmt-fc-placard-engine-table {
  margin-top: 0.65rem;
  font-size: 0.88rem;
}
.hmt-fc-line-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.5rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #d8e2ec;
}
.hmt-fc-line-meta--error {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
  border-radius: 4px;
}
.hmt-fc-line-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.hmt-fc-line-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.haz-info-ref-banner {
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
}
@media (max-width: 575.98px) {
  .hmt-fc-line-meta {
    grid-template-columns: 1fr;
  }
  .hmt-fc-qty-input,
  .hmt-fc-bulk-select {
    min-height: 44px;
  }
}

/* —— Live panel (conflicts + matrix) —— */
.hmt-fc-live-head {
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e8eef4;
}
.hmt-fc-live-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #0a3d6b;
}
.hmt-fc-live-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}
@media (max-width: 575.98px) {
  .hmt-fc-live-stats {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .hmt-fc-live-stats .hmt-compat-status {
    text-align: center;
    align-self: stretch;
  }
}
.hmt-fc-live-stat {
  font-size: 0.88rem;
  color: #64748b;
}
.hmt-fc-live-stat strong {
  color: #0E69BE;
  font-size: 1rem;
}
.hmt-fc-live-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
/* Side panel wide enough: conflicts | matrix */
@container hmt-fc-live (min-width: 720px) {
  .hmt-fc-live-grid {
    grid-template-columns: 1fr 1.08fr;
    gap: 1.2rem;
    align-items: start;
  }
}
.hmt-fc-live-conflicts,
.hmt-fc-live-matrix {
  min-width: 0;
}
.hmt-fc-live-section-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
}
.hmt-fc-seg-conflicts .alert {
  margin-bottom: 0.65rem;
}
.hmt-fc-matrix-wrap {
  max-height: min(52vh, 420px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
  .hmt-fc-matrix-wrap {
    max-height: min(58vh, 480px);
  }
}
@media (min-width: 992px) {
  .hmt-fc-matrix-wrap {
    max-height: min(65vh, 520px);
  }
}
.hmt-fc-matrix-wrap .hmt-compat-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.hmt-fc-live-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hmt-fc-live-links .btn {
  min-height: 44px;
}
@media (max-width: 575.98px) {
  .hmt-fc-live-links {
    flex-direction: column;
  }
  .hmt-fc-live-links .btn {
    width: 100%;
    min-height: 48px;
  }
}

@media print {
  .hmt-fc-board-main,
  .hmt-fc-board-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .hmt-fc-tile-strip {
    flex-wrap: wrap;
    overflow: visible;
  }
  .hmt-fc-board {
    grid-template-columns: 1fr;
  }
  .hmt-fc-matrix-wrap {
    max-height: none;
    overflow: visible;
  }
  .hmt-fc-board-tiles::after {
    display: none;
  }
}

/* Tier 1 — labels, SP, PSN, zone (shared + inspector) */
.hmt-label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0;
}
.hmt-label-chips--compact .hmt-label-chip img {
  width: 32px;
  height: 32px;
}
.hmt-label-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 0.2rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  min-width: 2.5rem;
}
.hmt-label-chip.primary {
  border-color: #93c5fd;
  background: #eff6ff;
}
.hmt-label-chip-code {
  font-size: 0.65rem;
  font-weight: 700;
  color: #475569;
  line-height: 1;
}
.hmt-sym-badges {
  display: inline-flex;
  gap: 0.2rem;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.hmt-sym-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.25rem;
  border-radius: 4px;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
}
.hmt-fc-sym-legend-inline {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e8eef4;
}
.hmt-fc-sym-legend-inline-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0a3d6b;
}
.hmt-fc-sym-legend {
  margin-bottom: 1rem;
  border: 1px solid #dce3ea;
  border-radius: 10px;
  background: #fff;
}
.hmt-fc-sym-legend-summary {
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.85rem;
  min-height: 44px;
  font-weight: 600;
}
.hmt-fc-sym-legend-summary::-webkit-details-marker {
  display: none;
}
.hmt-fc-sym-legend-hint {
  font-weight: normal;
  font-size: 0.84rem;
  color: #64748b;
}
.hmt-fc-sym-legend-body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid #e8eef4;
}
.hmt-fc-sym-legend-list {
  margin: 0.65rem 0 0;
  padding: 0;
}
.hmt-fc-sym-legend-item {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.hmt-fc-sym-legend-item:last-child {
  border-bottom: none;
}
.hmt-fc-sym-legend-item dt {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0a3d6b;
}
.hmt-fc-sym-legend-item dd {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #475569;
}
.hmt-sym-badge--legend {
  margin-right: 0.15rem;
}
@media (max-width: 575.98px) {
  .hmt-fc-sym-legend-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}
.hmt-fc-tile-sp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.25rem 0;
}
.hmt-fc-sp-chip {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}
.hmt-fc-sp-chip:hover {
  background: #0E69BE;
  color: #fff;
}
.hmt-fc-paper-form,
.hmt-fc-zone-form {
  margin-top: 0.35rem;
}
.hmt-fc-paper-label,
.hmt-fc-zone-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.15rem;
}
.hmt-fc-paper-input,
.hmt-fc-zone-select {
  font-size: 0.82rem;
}
.hmt-psn-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}
.hmt-psn-badge--ok { background: #dcfce7; color: #166534; }
.hmt-psn-badge--warn { background: #fef9c3; color: #854d0e; }
.hmt-psn-badge--fail { background: #fee2e2; color: #991b1b; }
.hmt-fc-zone-warn { font-size: 0.72rem; display: inline-block; margin-top: 0.25rem; }
.hmt-load-sp-panel {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.hmt-load-sp-panel--compat {
  margin-top: 0;
  margin-bottom: 1.25rem;
}
.hmt-load-sp-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0a3d6b;
}
.hmt-load-sp-group-title {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
}
.hmt-load-sp-list {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}
.hmt-insp-psn-findings {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e8eef4;
}
.hmt-insp-psn-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.88rem;
}
.hmt-insp-psn--fail { color: #991b1b; }
.hmt-insp-psn--warn { color: #854d0e; }
.hmt-insp-psn--ok { color: #166534; }
.hmt-fc-tile--substance {
  min-height: 220px;
}
@media (min-width: 768px) {
  .hmt-fc-tile--substance {
    min-height: 260px;
  }
}
.hmt-compat-items-table--rich td {
  vertical-align: top;
}
.hmt-input-sp {
  margin-top: 0.25rem;
}

.haz-info-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.haz-info-add-actions .btn {
  flex: 1 1 auto;
  min-width: 7rem;
  white-space: normal;
}
@media (max-width: 480px) {
  .haz-info-add-actions .btn {
    flex: 1 1 100%;
    min-height: 44px;
  }
}
html[data-theme="dark"] .hmt-fc-intro-details {
  background: #1e2228;
  border-color: #3a424d;
}
html[data-theme="dark"] .hmt-fc-lead,
html[data-theme="dark"] .hmt-fc-intro-list {
  color: #b8c5d0;
}
html[data-theme="dark"] .hmt-fc-board-side {
  background: #1e2228;
  border-color: #3a424d;
}
html[data-theme="dark"] .hmt-fc-tile {
  background: #1e2228;
  border-color: #3a424d;
}
html[data-theme="dark"] .hmt-fc-tile--substance {
  background: linear-gradient(160deg, #1a3040 0%, #1e2228 45%);
  border-color: #2d5a7a;
}
html[data-theme="dark"] .hmt-fc-tile--add {
  background: #1a3040;
  border-color: #2d5a7a;
}
html[data-theme="dark"] .hmt-fc-live-title {
  color: #d6e8f5;
}
html[data-theme="dark"] .hmt-insp-header {
  background: linear-gradient(135deg, #1a3040 0%, #1e2228 55%);
  border-color: #3a424d;
}
html[data-theme="dark"] .hmt-insp-title {
  color: #d6e8f5;
}
html[data-theme="dark"] .hmt-insp-subtitle {
  color: #94a3b8;
}
html[data-theme="dark"] .hmt-insp-status--idle {
  background: #252a31;
  border-color: #3a424d;
  color: #b8c5d0;
}
html[data-theme="dark"] .hmt-insp-status--partial {
  background: #1a3040;
  border-color: #2d5a7a;
  color: #93c5fd;
}
html[data-theme="dark"] .hmt-insp-status--ok {
  background: #14352a;
  border-color: #2d6a4a;
  color: #86efac;
}
html[data-theme="dark"] .hmt-insp-status--review {
  background: #3d3018;
  border-color: #854d0e;
  color: #fcd34d;
}
html[data-theme="dark"] .hmt-insp-empty {
  background: #1e2228;
  border-color: #3a424d;
}
html[data-theme="dark"] .hmt-insp-empty-title {
  color: #d6e8f5;
}
html[data-theme="dark"] .hmt-insp-lines-title {
  color: #b8c5d0;
}
html[data-theme="dark"] .hmt-fc-board-tiles::after {
  background: linear-gradient(90deg, transparent, rgba(30, 34, 40, 0.96));
}
html[data-theme="dark"] .hmt-fc-placards-row {
  border-top-color: #3a424d;
}
html[data-theme="dark"] .hmt-fc-live-head {
  border-bottom-color: #3a424d;
}
html[data-theme="dark"] .hmt-fc-live-section-title {
  color: #b8c5d0;
}
html[data-theme="dark"] .hmt-fc-placard-mini {
  background: #1a3040;
  color: #d6e8f5;
}
html[data-theme="dark"] .hmt-fc-placard-mini:hover,
html[data-theme="dark"] .hmt-fc-placard-mini:focus {
  background: #0E69BE;
  color: #fff;
}
html[data-theme="dark"] .hmt-fc-placard-engine {
  background: #2a2418;
  border-color: #6b5420;
}
html[data-theme="dark"] .hmt-fc-line-meta {
  border-top-color: #3a424d;
}
html[data-theme="dark"] .haz-info-ref-banner {
  background: #1a3040;
  border-color: #2d5a7a;
  color: #d6e8f5;
}
html[data-theme="dark"] .hmt-label-chip {
  background: #252a31;
  border-color: #3a424d;
}
html[data-theme="dark"] .hmt-label-chip.primary {
  background: #1a3040;
  border-color: #2d5a7a;
}
html[data-theme="dark"] .hmt-label-chip-code {
  color: #94a3b8;
}
html[data-theme="dark"] .hmt-fc-sym-legend-inline {
  border-top-color: #334155;
}
html[data-theme="dark"] .hmt-fc-sym-legend-inline-title {
  color: #93c5fd;
}
html[data-theme="dark"] .hmt-fc-sym-legend {
  background: #1e293b;
  border-color: #334155;
}
html[data-theme="dark"] .hmt-fc-sym-legend-body {
  border-top-color: #334155;
}
html[data-theme="dark"] .hmt-fc-sym-legend-item {
  border-bottom-color: #334155;
}
html[data-theme="dark"] .hmt-fc-sym-legend-item dt {
  color: #93c5fd;
}
html[data-theme="dark"] .hmt-fc-sym-legend-item dd {
  color: #cbd5e1;
}
html[data-theme="dark"] .hmt-fc-sym-legend-hint {
  color: #94a3b8;
}
html[data-theme="dark"] .hmt-sym-badge {
  background: #3d3018;
  color: #fcd34d;
}
html[data-theme="dark"] .hmt-fc-sp-chip {
  background: #252a31;
  color: #b8c5d0;
}
html[data-theme="dark"] .hmt-load-sp-panel {
  background: #1e2228;
  border-color: #3a424d;
}
html[data-theme="dark"] .hmt-load-sp-title {
  color: #d6e8f5;
}
html[data-theme="dark"] .hmt-load-sp-group-title {
  color: #94a3b8;
}
html[data-theme="dark"] .hmt-insp-psn-findings {
  background: #252a31;
  border-color: #3a424d;
}
html[data-theme="dark"] .hmt-fc-paper-label,
html[data-theme="dark"] .hmt-fc-zone-label {
  color: #94a3b8;
}
html[data-theme="dark"] .hmt-psn-badge--ok { background: #14352a; color: #86efac; }
html[data-theme="dark"] .hmt-psn-badge--warn { background: #3d3018; color: #fcd34d; }
html[data-theme="dark"] .hmt-psn-badge--fail { background: #3d1f1f; color: #fca5a5; }
