:root {
  --blue-l2:#72aed9;
  --blue-l1:#398bc6;
  --brand-blue:#0068b3;
  --blue-d1:#00518c;
  --blue-d2:#003b66;
  --green-l2:#cfe492;
  --green-l1:#bbd966;
  --brand-green:#a7ce3a;
  --green-d1:#82a12c;
  --green-d2:#5c721f;
  
  --evo-brand-primary: #0068b3;
  --evo-brand-secondary: #82a12c;
  --evo-brand-accent: #a7ce3a;
  --evo-header-background: #fff;
}

/* update borders on taxonomy widget */
.taxonomy_list_container .cat-tiles .tileparent {justify-content:center;}
.taxonomy_list_container .cat-tiles {border-top: 1px solid #ddd;}
.taxonomy_list_container .cat-tiles .tileparent {border-top: none; border-bottom: 1px solid #ddd;}
.taxonomy_list_container .cat-tiles .tile {margin: 1rem 0;}

#cdash_requester > div.grid-body.no-border.hidden-panel.expanded.block-grid > div.row.dashboard-scrollable-area > div:nth-child(2) {
    display: none;
}

/* 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; }

/* Side menu text changed to white */
.customertools-container, .customertools-container * { color: #ffffff !important; }
.customertools-container .btn.btn-outlined { color: #082e52 !important; }
.customertools-container .btn.btn-outlined:hover { color: #ffffff !important; }

/* Homepage banner settings */
.homepage-hero {
  background: #f5f5f5;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 30px;
}
.homepage-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.homepage-hero .hero-logo {
  max-width: 250px;
  max-height: 80px;
  vertical-align: middle;
}
.homepage-hero p { font-size: 1.1rem; color: #082e52 !important; }
.homepage-hero p .highlight-word {
  background-color: #a7ce3a !important;
  font-weight: 600;
  padding: 0 .5rem;
}

/* Register for Online Ordering formatting */
.custom-form-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; }
.form-group input[type="text"], .form-group input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.form-group input::placeholder { color: #999; }

/* Radio button groups */
.radio-group { display: flex; flex-direction: column; }
.radio-label {
  font-size: 14px;
  color: #082e52;
  margin-bottom: 8px;
  font-weight: 500;
}
.radio-options { display: flex; gap: 15px; }
.radio-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}
.radio-options input[type="radio"] { cursor: pointer; }

/* Submit button */
.submit-btn {
  background-color: #c8102e;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
.submit-btn:hover { background-color: #a00d25; }

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
  .form-row { flex-direction: column; }
}

/* Products page Specs text */
#collapseSpecs .tech-specs .item:nth-child(odd) span,
#collapseSpecs .tech-specs .item:nth-child(odd) p { color: #fff !important; }

/* SKU text to white */
.prod-code-wrapper .prod-code .label { color: #fff !important; }
.list-attribute.product-sku .label.label-focus { color: #fff !important; }

/* Bunch up the category grid */
/* Override Bootstrap col-lg-3 to 6 columns per row (16.66%) */
.taxonomy_list_container .tileparent {
    width: 16.66% !important; /* 100% / 6 */
    max-width: 16.66% !important;
    float: left !important; /* Bootstrap uses float for columns */
    padding-left: 10px; /* Optional: adjust spacing */
    padding-right: 10px; /* Optional: adjust spacing */
    box-sizing: border-box;
}
/* Optional: adjust smaller screen sizes if needed */
@media (max-width: 991px) {
    .taxonomy_list_container .tileparent {
        width: 25% !important; /* 4 per row on medium screens */
        max-width: 25% !important;
    }
}
@media (max-width: 767px) {
    .taxonomy_list_container .tileparent {
        width: 50% !important; /* 2 per row on small screens */
        max-width: 50% !important;
    }
}
@media (max-width: 575px) {
    .taxonomy_list_container .tileparent {
        width: 100% !important; /* 1 per row on extra small screens */
        max-width: 100% !important;
    }
}

/* Make category text larger and centered */
.taxonomy_list_container .tile p span {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #0056b3;
}
/* Ensure the paragraph container doesn't restrict the height */
.taxonomy_list_container .tile p {
    height: auto !important;
    min-height: 45px; /* Ensures alignment even if text wraps to 2 lines */
    margin-bottom: 15px;
}
/* Optional: Scale the images slightly if they look too small next to the bigger text */
.taxonomy_list_container .cat-thumb-container img {
    transition: transform 0.3s ease;
}
.taxonomy_list_container .tile:hover img {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}

/* Specifically target the hero banner container to remove extra margins */
#htmlcontent_177999, 
#htmlcontent_177999 .homepage-hero {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Hide page items for CSU */
body.ex-l-3361 div#myaccountdashboard_59 {
    display: none;
}
body.ex-l-3361 .footersection-1 {
    display: none;
}
body.ex-l-3361 #shoppingtools_171715 {
    pointer-events: none;
}
body.ex-l-3361 .row.myaccount-title.vertical-align {
    display: none;
}
body.ex-l-3361 div#htmlcontent_171713 {
    display: none;
}

/* Hide PLP filter options */
section.filter-section.filtername-incontract {
    display: none;
}
section.filter-section.filtername-instock {
    display: none;
}

/* Hide Footer throughout storefront */
footer.footer {
    display: none;
}