#apex-right-logo {
    position: absolute;
    top: -5px;
    right: 20px;
    height: 80px;
    z-index: 1000;
}

#apex-header-slogan {
  position: absolute;
  top: 38%;
  left: 49%;
  transform: translate(-50%, -50%);
  font-size: 1.6vw; /* Responsive scaling */
  font-weight: bold;
  font-stretch: semi-condensed;
  line-height: 1.2;
  color: #000;
  white-space: nowrap;
  z-index: 1000;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: clip; /* Ensure no ellipsis */
}

#feedbackIcon {
  position: absolute;
  top: 10px; /* Adjusted for better vertical alignment */
  right: calc(10% + 49px); /* Keep your preferred spacing */
  z-index: 1001;
}

#feedbackIcon img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin-top: -2px;
}


#feedbackIcon:hover img {
  transform: scale(1.1);
}


/* Tabs container */
.t-TabsRegion {
  background-color: white;
  border-bottom: none !important;
  box-shadow: none !important;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* Flex layout for tab row */
.t-TabsRegion .t-Tabs {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Equal width for each tab item */
.t-Tabs .t-Tabs-item {
  flex: 1;
  text-align: center;
  margin: 0;
}

/* === Base tab appearance === */
.t-Tabs .t-Tabs-item a {
  display: block;
  padding: 16px 0;
  font-size: 15px;
  color: grey;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: normal;
  text-align: center;
}

/* === Active tab styling === */
.t-Tabs .t-Tabs-item.is-active a {
  color: #d60000 !important;
  font-weight: bold;
  border-bottom: 4px solid #d60000 !important;
}

/* === Hover effect for enabled tabs === */
.t-Tabs .t-Tabs-item a[href]:hover {
  color: #d60000 !important;
}

/* === Disabled tabs (non-clickable ones) === */
a.t-Tabs-link[href="#"] {
  cursor: default;
  pointer-events: none;
  color: grey !important;
  font-weight: normal !important;
}

/* === Remove outlines/borders for disabled tabs === */
a.t-Tabs-link[href="#"]:focus,
a.t-Tabs-link[href="#"]:active,
a.t-Tabs-link[href="#"]:hover {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  background-color: transparent !important;
}


.t-Body-title .t-Tabs--simple .t-Tabs-link {
    color: #7e7e7e !important;
} 


.t-HeroRegion-title {
    display: none;
}


/* Match button height and center the text vertically */

#pb_search {
    background-color: #d60000;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 28px;
    padding: 0 20px;
    height: 48px;
    line-height: 48px;
    min-width: 120px;
    box-shadow: none;
    transition: background-color 0.2s ease;
    vertical-align: middle;
    margin-top: 12px;
} 


/* Hover effect */
#pb_search:hover {
  background-color: #b00000;
  cursor: pointer;
}


#pb_search_cert {
    background-color: #d60000;
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 28px;
    padding: 0 20px;
    height: 48px;
    line-height: 48px;
    min-width: 120px;
    box-shadow: none;
    transition: background-color 0.2s ease;
    vertical-align: middle;
    margin-top: 12px;
} 


/* Hover effect */
#pb_search_cert:hover {
  background-color: #b00000;
  cursor: pointer;
}


#smart-search-container {
  position: relative;
  max-width: 600px;
  margin: auto;
}


#P5_SMART_SEARCH,.smart-search-box input {
  height: 54px; /* increased height */
  border-radius: 28px !important;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
  border: none;
  font-size: 18px;  /* larger text */
  background: white !important;
  padding: 0 16px;
  line-height: 1.6;
}

/* Extra padding for icon space */
.smart-search-box.t-Form-inputContainer--withIcon input {
  padding-left: 72px !important;
}

/* Bold and larger search icon */
.smart-search-box .t-Form-inputContainer .apex-item-icon {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  color: #5f6368;
  font-size: 20px;   /* larger icon size */
  font-weight: 600;  /* bolder icon */
  pointer-events: none;
}

.mic-icon {
  position: absolute;
  z-index: 2;  /* bring it above input */
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: url('https://www.gstatic.com/images/branding/googlemic/2x/googlemic_color_24dp.png') no-repeat center;
  background-size: 20px;
  cursor: pointer;
}

.mic-icon.listening {
  filter: brightness(0) saturate(100%) invert(29%) sepia(96%) saturate(5626%) hue-rotate(357deg) brightness(99%) contrast(112%);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-50%) scale(1.3);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
}


.smart-search-box.t-Form-inputContainer {
  overflow: visible !important;
  position: relative;
  z-index: 0;
}


.clear-icon {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #777;         /* slightly darker gray */
  opacity: 0.5;        /* more visible than 0.3 */
  cursor: pointer;
  z-index: 3;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.clear-icon:hover {
  color: #b00000;
  opacity: 1;
  font-weight: bold;
  font-size: 18px;
  transform: translateY(-50%) scale(1.2);
}



#inv_grid .a-IRR-table td {
  text-align: center;
}


/* === RFQ Link Button === */
#rfq_btn.rfq-button {
  background-color: #d60000;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 10px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

#rfq_btn.rfq-button:hover {
  background-color: #b00000;
}

/* === Checkbox Styling === */
#inv_grid input.row-check {
  width: 20px;
  height: 20px;
  accent-color: #d60000;
  cursor: pointer;
}

/* === FIX: RFQ + Checkbox Column (1st) === */
#inv_grid .a-IRR-table th:nth-child(1),
#inv_grid .a-IRR-table td:nth-child(1) {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  text-align: center;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Center the RFQ button inside the header */
#inv_grid .a-IRR-table th:nth-child(1) .t-Button {
  margin: 0 auto;
  display: block;
}

/* === FIX: Std Item Column (2nd) === */
#inv_grid .a-IRR-table th:nth-child(2),
#inv_grid .a-IRR-table td:nth-child(2) {
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
}

/* === FIX: Insulectro Item # Column (3rd) === */
#inv_grid .a-IRR-table th:nth-child(3),
#inv_grid .a-IRR-table td:nth-child(3) {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  white-space: normal !important;
  word-break: break-word !important;
}

/* === FIX: My item# Column (4th) === */
#inv_grid .a-IRR-table th:nth-child(4),
#inv_grid .a-IRR-table td:nth-child(4) {
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  white-space: normal !important;
  word-break: break-word !important;  
}

/* === FIX: Item Description Column (5th) === */
#inv_grid .a-IRR-table th:nth-child(5),
#inv_grid .a-IRR-table td:nth-child(5) {
  width: 270px !important;
  min-width: 270px !important;
  max-width: 270px !important;
  white-space: normal !important;
  word-break: break-word !important;  
}


/* === FIX: Unit Price(6th) === */
#inv_grid .a-IRR-table th:nth-child(6),
#inv_grid .a-IRR-table td:nth-child(6) {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 15px;
  padding-right:6px;  
}



/* === FIX: UOM Column (7th) === */
#inv_grid .a-IRR-table th:nth-child(7),
#inv_grid .a-IRR-table td:nth-child(7) {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
}

/* === FIX: MOQ Column (8th) === */

/*
#inv_grid .a-IRR-table th:nth-child(8),
#inv_grid .a-IRR-table td:nth-child(8) {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
}
*/

/* === FIX: SOCAL Column (8th) === */
#inv_grid .a-IRR-table th:nth-child(8),
#inv_grid .a-IRR-table td:nth-child(8) {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
}


/* === FIX: NORCAL Column (9th) === */
#inv_grid .a-IRR-table th:nth-child(9),
#inv_grid .a-IRR-table td:nth-child(9) {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
}

/* === FIX: N HAMPSHIRE Column (10th) === */
#inv_grid .a-IRR-table th:nth-child(10),
#inv_grid .a-IRR-table td:nth-child(10) {
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
}

/* === FIX: TORONTO Column (11th) === */
#inv_grid .a-IRR-table th:nth-child(11),
#inv_grid .a-IRR-table td:nth-child(11) {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
}

/* === FIX: ILLINOIS Column (12th) === */
#inv_grid .a-IRR-table th:nth-child(12),
#inv_grid .a-IRR-table td:nth-child(12) {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
}

/* === FIX: OREGON Column (13th) === */
#inv_grid .a-IRR-table th:nth-child(13),
#inv_grid .a-IRR-table td:nth-child(13) {
  width: 65px !important;
  min-width: 65px !important;
  max-width: 65px !important;
}

/* === FIX: ARIZONA Column (14th) === */
#inv_grid .a-IRR-table th:nth-child(14),
#inv_grid .a-IRR-table td:nth-child(14) {
  width: 70px !important;
  min-width: 70px !important;
  max-width: 70px !important;
}

/* === FIX: MINNESOTA Column (15th) === */
#inv_grid .a-IRR-table th:nth-child(15),
#inv_grid .a-IRR-table td:nth-child(15) {
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
}

/* === FIX: TEXAS Column (16th) === */
#inv_grid .a-IRR-table th:nth-child(16),
#inv_grid .a-IRR-table td:nth-child(16) {
  width: 55px !important;
  min-width: 55px !important;
  max-width: 55px !important;
}

/* === FIX: UTAH Column (17th) === */
#inv_grid .a-IRR-table th:nth-child(17),
#inv_grid .a-IRR-table td:nth-child(17) {
  width: 55px !important;
  min-width: 55px !important;
  max-width: 55px !important;
}

/* === FIX: SOCAL 2 (Arlon) Column (18th) === */
#inv_grid .a-IRR-table th:nth-child(18),
#inv_grid .a-IRR-table td:nth-child(18) {
  width: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
}

/* === FIX: SOCAL 3 (emc) column(19th) === */
#inv_grid .a-IRR-table th:nth-child(19),
#inv_grid .a-IRR-table td:nth-child(19) {
  width: 65px !important;
  min-width: 65px !important;
  max-width: 65px !important;
}

/* data cell css for rotated columns */

#inv_grid .a-IRR-table td:nth-child(n+8):nth-child(-n+19) {
  text-align: center;
  vertical-align: middle;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 15px;
  white-space: nowrap;
  padding: 6px 2px;
}


/* context menu */

  #user_context_menu {
    width: 220px;
    padding: 12px;
    z-index: 9999;
  }

  .user-menu-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .user-menu-action {
    text-align: left;
    font-size: 14px;
    padding: 6px 10px;
    color: #333;
  }

  .user-menu-action i {
    margin-right: 8px;
  }

  .user-menu-action:hover {
    background-color: #f0f0f0;
    border-radius: 6px;
  }

  .user-menu-group {
    font-weight: bold;
    margin-top: 10px;
    font-size: 13px;
    border-top: 1px solid #ddd;
    padding-top: 8px;
    color: #555;
  }

  .user-menu-company-list {
    margin-top: 6px;
  }

  .user-menu-company-list button {
    background: none;
    border: none;
    padding: 4px 10px;
    text-align: left;
    width: 100%;
    font-size: 13px;
    color: #222;
    cursor: pointer;
  }

  .user-menu-company-list button:hover {
    background-color: #eee;
    border-radius: 4px;
  }
  
 
/* Apply Arial Nova to data rows */
#inv_grid .a-IRR-table {
  font-family: "Arial Nova", Arial, sans-serif !important;
  font-size: 14px;
}


/* Apply Arial Rounded MT Bold to column headers */
#inv_grid .a-IRR-table th,
#inv_grid .a-IRR-header,
#inv_grid .a-IRR-controls {
  font-family: "Arial Rounded MT Bold", Arial, sans-serif !important;
}


.selected-company {
  background-color: #f0faff !important;
  font-weight: bold;
  border-left: 4px solid #2196F3;
}

#P5_ONHAND_INVENTORY:checked + label.u-checkbox {
  --a-checkbox-background-color: #d60000 !important;
  --a-checkbox-text-color: #ffffff !important;
  font-weight: bold;
}

/* below will hide page tab slider arrows */
.apex-rds-slider {
    display: none !important;
}

span#companyNameDisp {
    font-weight: 700;
    /*color: #ca3331;*/
	font-size: 18px;
}


div#selectedCompanyDisplay {
    margin-left: 10px;
}


#userActionDispBar {
    height: 45px;
}

button#pbSignout {
    font-size: 17px;
    margin-top: -10px !important;
}

span#companyDispTitle {
    font-size: 17px;
    font-weight: 700;
}

button#pbFilter {
    margin-left: -17px;
    margin-top: 7px;
    height: 40px;
	background-color:#d2150f;
	color:white;
	font-size:15px;
	font-weight:bold;
}

button#pbFilterReset {
    
    margin-top: 7px;
    height: 40px;
}


h2#companyListParent_heading {
    font-size: 18px;
    font-weight: bold;
}

#companyListRpt .t-Report-cell {
    font-size: 14px !important;
    
}

input#P0_SEARCH_COMPANY {
    border-width: 2px;

}


.company-count-pill {
  background-color: #d2150f;   /* match Search button */
  color: #fff;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 14px;
  margin: 0 4px;
  display: inline-block;
  min-width: 40px;
  text-align: center;
}


/* Add Administrator tab to the far right */

li#quickPortalTab {
    max-width: 50px !important;
    min-width: 50px !important;
	height: 53px !important;
    max-height: 53px !important;

}

li#quickPortalTab:hover {
	background-color:#d5e2fc !important;
}

.t-Tabs--simple .t-Icon.fa-cloud-wrench {
    color: #ca3431;
    font-size: 30px;
    text-align: center;
    margin-left: 8px;
	margin-top:-8px;
}


/* =========================
   Context menu (userCtx)
   ========================= */

/* Menu items */
#userCtx .ctx-item {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 16px !important;
}
#userCtx .ctx-item:hover { 
  background: #eef2fa !important;
  font-weight:600;
  font-size:18px;  
}

#userCtx .ctx-item .fa { 
  font-weight:600;
  font-size:18px;  
}

/* Header row (non-clickable) */
#userCtx .ctx-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 10px 14px;
  font-weight: bold;
  color: lightslategrey;
  font-size: 15px;
  pointer-events: none; /* not clickable */
}

#userCtx .ctx-header .fa{
  font-weight:600;
  font-size:18px;
}
/* Thin separator */
#userCtx .ctx-sep {
  height: 1px;
  background: #eee;
  margin: 6px 0;
}

/* Icon alignment */
#userCtx .ctx-item .fa,
#userCtx .ctx-header .fa {
  width: 18px;
  text-align: center;
}

/* =========================
   Trigger button (btn_user_profile_action)
   ========================= */
#btn_user_profile_action {
  background-color: #dedede !important; /* match other page buttons */
  box-shadow: none;
  transition: all 0.2s ease-in-out;
  position: relative;
  z-index: 10; /* ensure above siblings */
  border-radius: 4px;
  font-weight: bold;
}

#btn_user_profile_action .t-Icon.fa.fa-list {
  font-weight: 600;       /* slightly bolder icon */
  font-size: 18px !important;
}

#btn_user_profile_action:hover {
  background-color: #d5e2fc !important; /* hover color */
  transform: translateY(-1px);          /* subtle lift */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* allow absolute positioning within the title bar */
#usersActionMenu_title { position: relative; }

/* pill-styled "Sign out" to the LEFT of the close (×) */
#usersActionBtn.titlebar-signout {
    position: absolute;
    right: 8.6rem;
    top: 50%;
    transform: translateY(-50%);
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #c9332b;
    color: #fff;
    font-weight: 600;
    line-height: 26px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
    font-size: 14px;
}
#usersActionBtn.titlebar-signout:hover { filter: brightness(.95); }
#usersActionBtn.titlebar-signout:focus  { outline: 2px solid rgba(201,51,43,.35); outline-offset: 2px; }
@media (max-width: 1200px){
  #usersActionBtn.titlebar-signout{ right: 6.5rem; }
}
@media (max-width: 900px){
  #usersActionBtn.titlebar-signout{ right: 4.5rem; }
}

#footer_pwchange_bar {
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: #ccc;
}

#div_acc_welcome {
    height: 12px;
    font-size: 0.8em !important;
    font-weight: 600;
    color: royalblue;

}

/***********************************************
 * USER PROFILE TAB STYLING (Header Section)
 * --------------------------------------------
 * Purpose: 
 *   Displays a personalized "Welcome" message 
 *   and current selected company name.
 * 
 * Structure:
 *   div_user_profile_wrapper
 *      +-- div_user_welcome     (grey background)
 *      +-- div_user_company     (text link under hover)
 ***********************************************/

/* === Base Wrapper – alignment & layout === */
#div_user_profile_wrapper {
  width: 100% !important; /* stretch across available tab area */
  margin-top: -47px !important; /* visually align with tab layout */
}

/* === Welcome Block (default grey area) === */
#div_user_welcome {
  height: 50px;
  background-color: #dedede; /* neutral default tone */
  line-height: 50px;
  border-radius: 6px; /* rounded corners top & bottom */
  margin-bottom: 2px; /* slight space above company name */
}

/* === Welcome Text === */
#user_WelcomeText {
  font-size: 0.9em !important;
  font-weight: 500;
  color: #7a7b7d; /* medium grey for subtle tone */
}

/* === Company Name (default state) === */
#div_user_company {
  font-size: 0.8em !important;
  font-weight: 600;
  color: #333333;
  line-height: 12px !important;
}

/* =======================================================
   HOVER ENHANCEMENT (Unified hover over both sections)
   ======================================================= */
#div_user_profile_wrapper:hover {
  background-color: #d3e3fd; /* soft blue hover highlight */
  border-radius: 6px; /* unify shape for both blocks */
  cursor: pointer;
  display: inline-block;
  padding-bottom: 6px;/* extend background below company name */
}

/* On hover, remove internal grey to merge both sections visually */
#div_user_profile_wrapper:hover #div_user_welcome,
#div_user_profile_wrapper:hover #div_user_company {
  background-color: transparent;
}

/* Company Name (link-style hover state) */
#div_user_profile_wrapper:hover #span_user_company {
  color: #1565c0; /* link blue tone */
  text-decoration: underline;
  font-weight: 700 !important;
}

/* =======================================================
   TAB CONTEXT FIX
   (Prevents extra padding from APEX tab container <a>)
   ======================================================= */
.t-Tabs .t-Tabs-item a[onclick*="openUserActionMenu"] {
  padding: 0 !important; /* remove tab padding interference */
  line-height: normal !important;
  display: inline-block !important;
  vertical-align: middle !important;
  width: 100% !important;/* full alignment with parent tab */
}