:root {
  --evo-brand-primary: #383e4e;
  --evo-brand-secondary: #e7d017;
}

/* Hide user's backend number and account arrow on storefront */
span.id-card,
i.fa.fa-caret-down.arrow-your-account {
  display: none;
}

/* Hide 'Call for Price' for logged out users */
body.ex-loggedout .price-call,
body.ex-loggedout .live-pricing-fallback-option-callforprice {
  display: none !important;
}

/* Hide Parent Account in side menu */
body > div.customertools.flyout-items-loaded.new.open > div > div.switch-account-new.small.hidden > table > tbody > tr:nth-child(3) {
  display: none;
}

/* Add a top note to the Orders Page */
body > div.page-content > section.myorders > div.row.tab-content:before {
  content: "To begin a return, click on an order number below.";
  font-size: 20px;
  font-weight: bold;
  color: red;
  padding: 0 15px;
  display: block;
}

/* Add notes to Return Pages */
#orderView > section > div:nth-child(7):before {
  content: "Return form is only available if order is within return policy timeframe.";
  color: red;
}

label[for="return_line_item"]::after {
  content: "Only returnable items are available in the item dropdown.";
  color: red;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

/* Hide Weight and Tax Columns in orders */
#orders-items > table > thead > tr > th.order-weight.text-right,
#orders-items > table > tbody > tr > td.order-weight.text-right,
#orders-items > table > thead > tr > th.order-tax.text-right,
#orders-items > table > tbody > tr > td.order-tax.text-right {
  display: none;
}

/* Add Tax Note to Orders Approval Page */
#orders-items:after {
  content: "Above totals do not include sales tax.";
  color: red;
}

/* Replace "Total ex Tax" with "Total" */
#orders .table > thead > tr > th.order-total {
  font-size: 0;
}

#orders .table > thead > tr > th.order-total::before {
  content: "Total";
  font-size: 1rem;
}

/* Hide routes & salesperson from orders & invoices */
#order-top .customer-orders-route,
#order-top .customer-orders-salesperson,
#order-top > div.col-md-3.col-md-offset-3 > div:nth-child(7),
#order-top > div.col-md-3.col-md-offset-3 > div:nth-child(8),
#invoiceView > section > div:nth-child(11) > div:nth-child(1),
#orderView > section > div:nth-child(9) > div:nth-child(1) {
  display: none;
}

/* Hide specific reports */
#charts-container > div:nth-child(4),
#charts-container > div:nth-child(5),
#generate-report-form option:nth-child(3),
#generate-report-form option:nth-child(4),
#generate-report-form option:nth-child(5),
#generate-report-form option:nth-child(6),
#generate-report-form option:nth-child(8) {
  display: none;
}

/* Hide Rollover & Next Year from Budgets */
body > div.page-content > section > div.row.tab-content > div:nth-child(3) > div > div > table > tbody > tr:nth-child(4),
body > div.page-content > section > div.row.tab-content > div:nth-child(3) > div > div > table > tbody > tr:nth-child(5) {
  display: none;
}

/* Hide various elements for advanced users to only allow Approver on Leave */
body > div.page-content > section > div.myaccount-title > div > div.col-md-8 > ul > li.active,
body > div.page-content > section > div.myaccount-title > div > div.col-md-8 > ul > li:nth-child(2),
#approverInfo > div:nth-child(5),
#approverInfo > div:nth-child(6),
#approverInfo > div:nth-child(8),
#approverInfo > div:nth-child(11),
#aBudgets,
#aApprovers,
span.id-card {
  display: none;
}

/* Hides "Pack Of" column in Quick Order */
#quickordergrid_901 .gridcontent th:nth-child(5),
#quickordergrid_901 .gridcontent td:nth-child(5) {
  display: none;
}

/* Making the approver appear at the top of the requester tile in the dashboard */
#cdash_requester .grid-body {
  display: flex;
  flex-direction: column;
}

#cdash_requester .grid-body .table.no-more-tables {
  position: relative;
  order: -1;
}

#cdash_requester .grid-body div[style*="margin:10px"] {
  order: -2;
}

#cdash_requester .fa.fa-user {
  display: none !important;
}

#cdash_requester .grid-body .table.no-more-tables::after {
  content: "Other Details:";
  display: block;
  margin: 10px 0;
  font-weight: bold;
  font-size: 14px;
  color: #000;
}

/* Ensure labels in the contact form are visible */
.contact-form .form-group label {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
  clip: auto !important;
  overflow: visible !important;
  color: #000; /* Change color if needed */
  font-size: 1em; /* Ensure font size is not zero */
}

/* Make catalog submenu scrollable */
ul.catalog > li.has-submenu:hover > ul.submenu {
  max-height: 75vh;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #ffffff;
}

ul.catalog > li.has-submenu:hover > ul.submenu > .submenucontainer {
  height: auto !important;
}

/* Style for highlighting specific menu items */
.highlight-menu-item {
  background-color: yellow !important;
  color: black !important;
}

/* Styles for the "No Ink Search Results" message */
.no-ink-results-container {
  text-align: center;
  padding: 50px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-top: 20px;
}
.no-ink-results-container h3 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.no-ink-results-container p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}
.no-results-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.no-results-actions .btn {
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s, color 0.3s;
}
.no-results-actions .btn-primary {
  background-color: #007bff;
  color: #fff;
  border: 1px solid #007bff;
}
.no-results-actions .btn-primary:hover {
  background-color: #0056b3;
}
.no-results-actions .btn-secondary {
  background-color: #6c757d;
  color: #fff;
  border: 1px solid #6c757d;
}
.no-results-actions .btn-secondary:hover {
  background-color: #5a6268;
}
.no-results-actions .btn-default {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ccc;
}
.no-results-actions .btn-default:hover {
  background-color: #e2e6ea;
}

/* Add Sticky header EvoX */
@media only screen and (min-height: 768px) {
.menubarStick {
  position: fixed !important;
  top: 0;
  width: 100%;
  z-index: 15;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.headersection-1.menubarStick > .row-2 {
    max-width: 1450px;
    margin: 0 auto;
}
.menubarHeader {
    padding-top:113px;
}
}

/* Force the Load More button to be visible */
.load-more-btn.btn {
  opacity: 1 !important;
  visibility: visible !important;
  background-color: #007bff !important;
  color: #ffffff !important;
  border: 1px solid #0056b3 !important;
  min-height: 38px !important;
  min-width: 120px !important;
}

/* Hide X product button */
body.regular.ltr.ready {
    display: none;
}
/* SWITCH ACCOUNT FROM THE ORDERS/INVOICES TABLES */
div#myOrdersListErp,
div#myOrdersList,
div#myAwaitApprovalsList,
div#myRewardsHistory,
div#invoiceHistory {
    margin-top: 2.7em;
}
.switch-account-custom {
  position: absolute;
  top: 0;
  right: 2em;
  margin-left: 2px;
  font-weight: bold;
  padding: 5px 20px !important;
}
.invoice-history .switch-account-custom, .myawaitapproval .switch-account-custom {
  right: 10px;
}
/* Hide inventory except for GOS Accounts */
body:not(.ex-l-3440) .live-inventory-v2-wrapper.text-center.bolder.add-to-cart {
    display: non;
}

/* ===== Quote header (print-only) ===== */
.quote-header-info { display: none; }  /* hidden on screen; shown only in print */
.qty-print { display: none; }          /* stamped quantity text: printout only */

.quote-header-info .qh-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.quote-header-info .qh-title {
  font-size: 22pt;
  font-weight: bold;
  color: #1B2A4A;
}
.quote-header-info .qh-meta { text-align: right; font-size: 10pt; line-height: 1.6; }
.quote-header-info .qh-lbl { color: #999; }
.quote-header-info .qh-cols { display: flex; gap: 30pt; }
.quote-header-info .qh-col {
  flex: 1;
  border: 1px solid #999;
  padding: 8pt 10pt;
  border-radius: 4px;
  line-height: 1.5;
  font-size: 10pt;
}
.quote-header-info .qh-label {
  font-size: 9pt;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  font-weight: bold;
  margin-bottom: 5px;
}

/* ===== Print-friendly cart / professional quote ===== */
@media print {
  /* Preserve on-screen colors/backgrounds on ALL printed pages */
  html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  @page { margin: 0.5in; }

  body.ex-cart { background: #fff !important; color: #000 !important; font-size: 10pt; }

  /* Reveal the quote header only when printing */
  .quote-header-info {
    display: block !important;
    margin-bottom: 18pt;
    padding-bottom: 10pt;
    border-bottom: 2px solid #1B2A4A;
    color: #333;
  }

  /* Hide site chrome — CART PAGE ONLY */
  body.ex-cart header, body.ex-cart nav, body.ex-cart footer,
  body.ex-cart .main-header, body.ex-cart .top-header,
  body.ex-cart .header-menu, body.ex-cart .mega-menu,
  body.ex-cart .site-footer, body.ex-cart .breadcrumb,
  body.ex-cart .newsletter, body.ex-cart .cookie-notice { display: none !important; }

  /* Hide interactive cart controls */
  .cart-header-actions,
  .cartclear_container,
  .clear-cart,
  .incr-btn,
  .show-more-info,
  .add-reference,
  .loader_item, .pulse-loader, .content_loading,
  .ribboncart-wrapper, .gift-element,
  .cart-resume .btn { display: none !important; }

  /* Original "Shopping Cart" H2 -> relabel to "Order Details" */
  .cartheader_container h2.title { font-size: 0 !important; margin: 0 0 10pt; }
  .cartheader_container h2.title::before { content: "Order Details"; font-size: 14pt; font-weight: bold; }

  /* Line-item table */
  .cartproductlines_container table.items-list { width: 100%; border-collapse: collapse; }
  .cartproductlines_container table.items-list th,
  .cartproductlines_container table.items-list td {
    border-bottom: 1px solid #bbb;
    padding: 6pt 8pt; text-align: left; vertical-align: top; font-size: 10pt;
  }
  .cartproductlines_container table.items-list thead th { border-bottom: 2px solid #000; font-weight: bold; }

  /* Thumbnail column, sized down */
  .cartproductlines_container table.items-list td.thumb { width: 60px; }
  .cartproductlines_container table.items-list td.thumb img { width: 55px !important; height: auto !important; }

  /* Product name + SKU/UOM under it */
  .cartproductlines_container table.items-list td.name a.bolder { font-weight: bold; color: #000 !important; text-decoration: none; }
  .cartproductlines_container table.items-list td.name .more-info { display: block !important; margin-top: 4pt; }
  .cartproductlines_container table.items-list td.name .item-sku-wrapper,
  .cartproductlines_container table.items-list td.name .item-pack-size-wrapper { display: inline-block; margin-right: 14pt; font-size: 9pt; }

  /* Right-align money + qty */
  .cartproductlines_container table.items-list td.price,
  .cartproductlines_container table.items-list th.price,
  .cartproductlines_container table.items-list td.total,
  .cartproductlines_container table.items-list th.total,
  .cartproductlines_container table.items-list td.qnt-count,
  .cartproductlines_container table.items-list th.qnt-count { text-align: right; white-space: nowrap; }

  /* Hide the Remove column only */
  .cartproductlines_container table.items-list td.delete,
  .cartproductlines_container table.items-list thead th:last-child { display: none !important; }

  /* Quantity: hide the live input + arrows, show the stamped text value */
  .cartproductlines_container table.items-list td.qnt-count input.quantity,
  .cartproductlines_container table.items-list td.qnt-count .incr-btn { display: none !important; }
  .cartproductlines_container table.items-list td.qnt-count .qty-print {
    display: inline !important; font-size: 10pt; color: #000;
  }

  /* Keep line items intact across page breaks */
  .cartproductlines_container table.items-list tr.item { break-inside: avoid; page-break-inside: avoid; }

  /* Totals block */
  .carttotals_container { break-inside: avoid; page-break-inside: avoid; margin-top: 12pt; }
  .carttotals_container .cart-totals table { width: auto; margin-left: auto; }
  .carttotals_container .cart-totals td { padding: 4pt 8pt; font-size: 11pt; }
  .carttotals_container .cart-order-total td { font-weight: bold; border-top: 2px solid #000; font-size: 12pt; }

  /* Safeguard against responsive table stacking on print (cart only) */
  body.ex-cart .no-more-tables table { display: table !important; }
  body.ex-cart .no-more-tables thead { display: table-header-group !important; }
  body.ex-cart .no-more-tables tbody { display: table-row-group !important; }
  body.ex-cart .no-more-tables th, body.ex-cart .no-more-tables td { display: table-cell !important; }
  body.ex-cart .no-more-tables tr { display: table-row !important; }
  body.ex-cart .no-more-tables td:before { content: none !important; }
}