/* ==========================================================================
   SCIEX Portal - Refactored CSS (from legacy ABSciex.css)
   - Consolidated typography + colors
   - Reduced duplicate selectors
   - Grouped by layout areas
   ========================================================================== */

/* ------------------------------
   Design tokens
------------------------------ */
:root{
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;

  --text: #111;
  --text-2: #333;
  --muted: #555;
  --muted-2: #666;

  --brand: #0068f9;
  --brand-2: #1d78bf;

  --bg: #fff;
  --panel: #f8f8f8;
  --line: rgba(0,0,0,.06);
  --shadow: 0 0 10px rgba(0,0,0,.25);

  --radius: 10px;
  --radius-lg: 12px;

  --footer-h: 68px;
  --container: 1080px;
}

/* ------------------------------
   Base / Typography
------------------------------ */
html, body { height: 100%; }

body{
  margin: 0 auto;
  height: 100%;
  background: var(--bg);
  background-repeat: no-repeat;
  overflow-x: hidden;

  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
}

h1,h2,h3,h4,h5,h6{
  font-family: var(--font-sans);
  margin: 10px 0 20px;
}

h1{ font-size: 36px; font-weight: 500; line-height: 1; }
h2{ font-size: 32px; font-weight: 500; line-height: 1; }
h3{ font-size: 16px; font-weight: 600; line-height: 1; }

p{ font-size: 14px; line-height: 1.3; }

a{
  color: #153b6b;
  text-decoration: none;
}
a:hover{
  color: #1dafec;
  text-decoration: underline;
}
.anchor a{ text-decoration: none; }
.anchor a:hover{ text-decoration: underline; }

/* ------------------------------
   Misc / One-off legacy overrides
------------------------------ */
tr#pd_tr2 + tr { display:none; }

/* NOTE message hook from legacy:
   the content itself was commented out in the old file,
   but the positioning styles existed. Keeping that behavior.
*/
.login_support td:after{
  font-weight: 700;
  width: 580px;
  position: absolute;
  left: 28px;
  top: 530px;
}

/* ------------------------------
   Layout containers
------------------------------ */
#mainContainerSF{ min-height: 100%; }

#mainContentSF{
  max-width: var(--container);
  width: 101% !important;
  overflow: auto;
  /* Required for footer pin-to-bottom pattern */
  padding-bottom: var(--footer-h);
}

/* ------------------------------
   Header info bar
------------------------------ */
#headerInfoBar{
  position: relative;
  width: 100%;
  height: 40px;

  background: var(--brand-2);
  color: #fff;

  font-size: 16px;
  line-height: 40px;
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 1.7px;
}

/* ------------------------------
   Logo / Banner
------------------------------ */
#headWrapper{
  margin-top: 48px;
  margin-bottom: 8px;
}

table.tableSiteBanner{ position: relative; }
.tableSiteBanner img{
  z-index: 2;
  float: inherit;
  position: relative;
  width: 400px;
}

.home-banner-img{
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 0 40px;
}

form#DTSSForm img{
  height: 360px;
  object-fit: cover;
}

/* ------------------------------
   Page tables (legacy structure)
------------------------------ */
table.tableMain{
  position: relative;
  top: -30px;
  z-index: 2;
  width: 100%;
  /* legacy typo max-widthl removed */
  background: transparent;
  padding: 20px 0;
}

/* hide first paragraph in a specific legacy area */
table.tableMain p:first-of-type{ display: none; }

.mainContentNB{
  color: #000;
  padding-left: 15px;
  width: 745px;
}

/* ------------------------------
   Category headers
------------------------------ */
div.source{
  /* legacy file contained two competing definitions; merged to one */
  color: var(--text-2) !important;
  font-size: 38px !important;
  margin: -10px 0 20px;
  letter-spacing: -1px;
  text-transform: uppercase;
}

p.style1{
  color: #444;
  font-size: 25px;
  font-weight: 700;
}

/* ------------------------------
   Navigation menu (top)
------------------------------ */
#navWrapper{
  position: relative;
  margin: 20px 0 32px -4px; /* should match width of site logo */
}

#menu{
  width: 100%;
  background: transparent;
}

#menu li{
  float: left;
  text-align: left;
  margin: 0 auto;
  position: relative;
  display: inline;
}

#menu li a{
  display: flex;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-2);
  padding: 14px 28px 0 0;
  text-decoration: none;
}

#menu li a:hover,
#menu li.menuG a,
#menu li:hover > a{
  color: var(--brand);
}

/* ------------------------------
   Login / user bar
------------------------------ */
.login{
  font-size: 12px;
  width: 100%;
  background: transparent;
  padding: 8px 0 10px 10px;
  color: #000;
}

a.login{
  color: #444;
  font-weight: 700;
  padding: 0 8px;
  text-transform: capitalize;
}
a.login:hover{
  color: #000;
  text-decoration: none;
  background: transparent;
}

.loginWelcome,
.loginLogout{ background: transparent; }

.loginWelcome span{ float: right !important; }

table.tableLogin{
  position: fixed;
  width: 360px;
  top: 0;
  right: 0;
  z-index: 100;

  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0 40px;
}

/* Login box */
#bigbox{
  background: #fff;
  border: 1px solid #ededed;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------------------------
   UI boxes / Sidebar
------------------------------ */
#sideBarNav{ padding-right: 40px; }

.ui-box{ font-size: 19px; }

.ui-box header{
  border: none;
  background: none;
  text-transform: capitalize;
}

.ui-box header.dark{
  border: none !important;
  background: none !important;
  color: var(--text-2) !important;
}

.ui-box section{
  margin: 0;
  border: none;
  padding: 12px 0 32px;
}

/* Sidebar list */
#listbigger{
  column-gap: 6px;
  row-gap: 4px;
}

ul#listbigger li a,
ul#listbigger li a span{
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

#listbigger li:hover{ background: #f6f6f6; }

/* Breadcrumbs */
.crumbs li a,
.crumbs li a:link,
.crumbs li a:visited{
  font-family: inherit;
  font-weight: 700;
  color: var(--muted);
  font-size: 16px;
}

/* ------------------------------
   Products grid / catalog wrappers
------------------------------ */
#products, #catalogWrap, .prodCell{ border: none !important; }

#products{
  column-gap: 40px;
  row-gap: 40px;
  padding-top: 10px;
}

.prodCell{ margin-top: 24px !important; }

/* legacy had a border here; kept but soft */
#catalogWrap, .prodCell{
  border: 1px solid var(--line);
}

.catalogTbl{
  background: transparent;
  padding: 0 !important;
}

/* ------------------------------
   Product side menu (TreeControl)
------------------------------ */
#TCtable{
  background: none;
  padding: 0;
}
#TCtable td{ background: none; }

.TCCaption{
  color: #bdbdbd;
  font-style: italic;
}

ul.TreeControl{
  float: inherit;
  position: relative;
  padding: 10px;
  margin-bottom: 5px;
  color: #fff; /* legacy */
  font-size: 10pt;
}

ul.TreeControl li{ list-style: none; padding: 0; margin-bottom: 5px; }

ul.TreeControl li.TCopen div.anchorCatalog,
ul.TreeControl li.TCclosed div.anchorCatalog{
  position: relative;
  color: var(--text-2);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 5px;

  height: 42px;
  line-height: 42px;

  padding: 0;
  border: none;
  text-align: left;
}

ul.TreeControl li a{
  cursor: pointer;
  color: #000;
  text-decoration: underline;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-wrap: nowrap;
}

ul.TreeControl li a:hover{
  color: #224390;
  text-decoration: underline;
}

ul.TreeControl li.TCopen a,
ul.TreeControl li.TCclosed a{
  background: none;
  text-decoration: none;
  color: var(--text-2);
}

ul.TreeControl li.TCbullet{
  padding: 4px 0;
  color: var(--text-2);
  text-align: left;
  text-shadow: 0 1px 1px rgba(255,255,255,.75);
  vertical-align: middle;
  cursor: pointer;
}

ul.TreeControl li.TCbullet a{
  background: none;
  color: var(--text-2);
  padding: 7px 16px 8px 6px;
  margin: 0 0 0 20px;

  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

ul.TreeControl li.TCbullet a:hover{ color: var(--brand); }

ul.TreeControl li#active a{ color: var(--brand); }

ul.TreeControl li.TCopen ul{ display: block; }
ul.TreeControl li.TCclosed ul{ display: none; }

/* ------------------------------
   Checkout / buttons / tables
------------------------------ */
th.ui-state-default{ background: none !important; }

#checkoutProceedButton button,
#checkoutProceedButton button:hover,
#checkoutProceedButton button#updateImg,
#checkoutProceedButton button.btnUpdate{
  background: var(--brand) !important;
}

/* Checkout header */
.tableCheckoutHeader{
  display: block;
  float: inherit;
  position: relative;
  top: -20px;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  z-index: 3;
}
.tableCheckoutHeader img{ padding-left: 120px; }

/* ------------------------------
   Shopping cart
------------------------------ */
.shopping_cart_icon path{ fill: #456888; }

#cartIcon{
  color: #fff;
  position: absolute;
  right: 4px;
  padding: 0;
  font-size: 24pt;
}

#cartDesc{ display: none; }

#cartCount{
  background: transparent;
  border: none;
}

#cartCountBadge{
  background: #99c456;
  position: absolute;
  right: 0;
  margin: 0;

  border-radius: 100px;
  padding: 0 2px;
  line-height: 19px;

  border: 1px solid #fff;
}

#cartContainer.floatClass{ top: -62px; }
.checkoutProgress{ top: -30px; }

/* Cart item image table */
.tblImage{ border: none; }
.tblImage td{
  background: #fff;
  padding: 0;
  margin: 0;
  text-align: center;
  vertical-align: middle;
}

/* ------------------------------
   Footer (sticky-to-bottom pattern)
------------------------------ */
footer{
  position: relative;
  width: 100%;
  clear: both;

  /* Footer pin-to-bottom compensation */
  margin-top: -168px;

  padding: 0;
  height: var(--footer-h);

  background: #111;
  background-image: linear-gradient(5deg, #1e1e1e 0, #111 100%);
}

.footerSections{
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

#footerBottom{ height: var(--footer-h); }

.footerCoyright{
  color: rgba(255,255,255,.45) !important;
  font-size: 12px;
  line-height: var(--footer-h);
  font-weight: 500;

  text-transform: uppercase;
  letter-spacing: 1.7px;
  text-align: left;
}

.footer-wrapper{
  max-width: var(--container);
  margin: 0 auto 400px;
  display: flex;
  justify-content: flex-start;
}

.footer-wrapper-inner{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-wrapper-inner h3,
.footer-wrapper-inner h4{
  margin: 0 0 10px;
}

/* ------------------------------
   Legacy small text utility classes
------------------------------ */
.tag{
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.2;
}
.boldbody{
  color: #000;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.smallbody{
  color: var(--muted-2);
  font-size: 10pt;
}
