.mt-3 {
    margin-top: 20px;
}

.mt-4 {
    margin-top: 40px;
}

.checkoutBtn {
    padding: 5px;
}

/* Hide the default checkbox */
.custom-checkbox input[type="checkbox"] {
    display: none;
}

/* Create a custom checkmark */
.custom-checkbox .checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 10px;
}

/* Add the checkmark when the checkbox is checked */
.custom-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Add some hover effect */
.custom-checkbox .checkmark:hover {
    background-color: #f0f0f0;
}

.custom-checkbox {
    font-family: inherit;
    font-size: 1rem;
}

.border {
    border: 1px solid;
    padding: 15px;
    border-radius: 10px;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black background with opacity */
    justify-content: center;
    align-items: center;
    z-index: 10
}

.popup-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
    position: relative;
}



#popup:target {
    display: flex;
}

.text-left {
    text-align: left;
}
.panel-title {
    display: inline;
    font-weight: bold;
}

.display-table {
    display: table;
}

.display-tr {
    display: table-row;
}

.display-td {
    display: table-cell;
    vertical-align: middle;
    width: 61%;
}

.loader {
    border: 5px solid #f3f3f3;
    /* Light grey */
    border-top: 5px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
  /* The Modal (background) */
  .modal {
    display: none;  /* Hidden by default */
    position: fixed;  /* Stay in place */
    z-index: 1;  /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;  /* Full width */
    height: 100%;  /* Full height */
    overflow: auto;  /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4);  /* Black with opacity */
  }

  /* Modal Content */
  .modal-content {
    background-color: #fff;
    margin: 15% auto;  /* Center the modal */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;  /* Could be adjusted */
  }

  /* Close Button */
  .close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
  }

  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

/* ========= ERP portal main nav (full-width, icons, responsive) — loads after theme ========= */
.erp-portal-menu-section {
  width: 100%;
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  overflow-x: hidden;
}
/* Full-bleed shell for portal nav (replaces .custom-container — no side gutters / max-width) */
.erp-portal-menu-section .erp-portal-nav-shell {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}
/* Line up with .custom-container (theme) — avoid 100vw/50% breakout (-scrollbar / % mismatch = crooked edges) */
.erp-portal-nav-outer {
  width: 100%;
  max-width: 1550px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  left: auto;
  right: auto;
  box-sizing: border-box;
  padding-left: max(8px, 1rem, env(safe-area-inset-left, 0px));
  padding-right: max(8px, 1rem, env(safe-area-inset-right, 0px));
}
@media only screen and (max-width: 1430px) {
  .erp-portal-nav-outer {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}
/* One horizontal inset: match .header__topBar-content .custom-container (logo row) — drop double left padding */
.erp-portal-nav-align {
  box-sizing: border-box;
}
.erp-portal-nav-align .erp-portal-nav-outer {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.erp-portal-nav-wrap {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  /* Below header cart dropdown (cart uses higher z-index in this file) */
  z-index: 20;
}
/* Desktop: hide mobile nav chrome (Safari/theme can override plain display:none) */
.erp-portal-nav-head {
  display: none !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #0c1f75 0%, #08154a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  border-left: none;
  border-right: none;
}
.erp-portal-nav-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}
.erp-portal-nav-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.erp-portal-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
}
.erp-portal-nav-toggle-bars {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  position: relative;
  transition: background 0.2s ease;
}
.erp-portal-nav-toggle-bars::before,
.erp-portal-nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease;
}
.erp-portal-nav-toggle-bars::before {
  top: -6px;
}
.erp-portal-nav-toggle-bars::after {
  top: 6px;
}
.erp-portal-nav-wrap.is-open .erp-portal-nav-toggle-bars {
  background: transparent;
}
.erp-portal-nav-wrap.is-open .erp-portal-nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.erp-portal-nav-wrap.is-open .erp-portal-nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
nav#AccessibleNav.erp-portal-nav {
  float: none !important;
  width: 100% !important;
  background-color: #08154a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0;
  border-left: none;
  border-right: none;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
/* Equal-width cells + visible borders (gap trick) */
#SiteNav.site-nav {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr));
  gap: 1px;
  align-items: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-sizing: border-box;
}
#SiteNav.site-nav > .erp-nav-item {
  display: flex !important;
  flex: unset !important;
  min-width: 0;
  background: #08154a;
}
#SiteNav.site-nav .erp-nav-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  flex: 1;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px !important;
  text-decoration: none !important;
  border: none !important;
  box-sizing: border-box;
}
#SiteNav.site-nav .erp-nav-ic {
  flex-shrink: 0;
  width: 1.25em;
  text-align: center;
  opacity: 0.92;
  font-size: 16px;
  line-height: 1;
}
#SiteNav.site-nav .erp-nav-ic .fa {
  vertical-align: middle;
}
#SiteNav.site-nav .erp-nav-txt {
  flex: 1;
  min-width: 0;
}
#SiteNav.site-nav .erp-nav-link:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}
/* Active tab */
#SiteNav.site-nav > .erp-nav-item--active {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, rgba(35, 222, 61, 0.18) 0%, rgba(8, 21, 74, 0.98) 100%) !important;
  box-shadow: inset 0 0 0 2px rgba(35, 222, 61, 0.65);
}
#SiteNav.site-nav > .erp-nav-item--active .erp-nav-link {
  font-weight: 600 !important;
  color: #fff !important;
}
#SiteNav.site-nav > .erp-nav-item--active .erp-nav-ic {
  opacity: 1;
  color: #5ef07a;
}
#SiteNav.site-nav > .erp-nav-item--active .erp-nav-ic .fa {
  color: inherit;
}
@media only screen and (max-width: 992px) {
  .erp-portal-nav-head {
    display: flex !important;
  }
  .erp-portal-nav-toggle {
    display: inline-flex !important;
  }
  nav#AccessibleNav.erp-portal-nav {
    border-radius: 0 !important;
  }
  .erp-portal-nav-wrap:not(.is-open) #SiteNav.site-nav {
    display: none !important;
  }
  .erp-portal-nav-wrap.is-open #SiteNav.site-nav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1px;
  }
  #SiteNav.site-nav > .erp-nav-item {
    width: 100% !important;
    min-width: 0 !important;
  }
  #SiteNav.site-nav .erp-nav-link {
    justify-content: flex-start;
    text-align: left;
    padding: 14px 18px !important;
    font-size: 15px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    min-height: 52px;
  }
}

/* Hospital registration — Safari / iOS: flex column, no overflow (custom.css loads after theme + erpform) */
.hospital-registration .box-form .left,
.hospital-registration .box-form .right {
  min-width: 0;
}

@media screen and (max-width: 1024px) {
  #PageContainer:has(.hospital-registration) {
    overflow-x: hidden;
    max-width: 100%;
  }

  .hospital-registration.er-login-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hospital-registration .box-form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: stretch;
    text-align: left;
    min-height: 0 !important;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .hospital-registration .box-form .left {
    order: 2;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .hospital-registration .box-form .right {
    order: 1;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden;
    overflow-y: visible;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .hospital-registration .box-form .right > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .hospital-registration .box-form .right .custom-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  .hospital-registration .form-vertical input,
  .hospital-registration .form-vertical select,
  .hospital-registration .form-vertical .single-option-selector {
    max-width: 100%;
    box-sizing: border-box;
  }

  .hospital-registration .text-center {
    text-align: center;
  }
}

.hospital-registration .registration-supervisor-scroll .hospital-reg-check-row .form-check-label {
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Hospital registration — success state (post-submit) */
.hospital-registration .hospital-reg-success {
  position: relative;
  text-align: center;
  padding: 1.75rem 1.35rem 1.6rem;
  margin: 0.5rem auto 0;
  max-width: 460px;
  background: linear-gradient(165deg, #ffffff 0%, #f3f7ff 42%, #e8f0ff 100%);
  border-radius: 18px;
  border: 1px solid rgba(8, 21, 74, 0.14);
  box-shadow:
    0 14px 44px rgba(8, 21, 74, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  overflow: hidden;
}

.hospital-registration .hospital-reg-success__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
  background-image:
    radial-gradient(circle at 10% 22%, rgba(59, 130, 246, 0.45) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 16%, rgba(16, 185, 129, 0.4) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 78%, rgba(245, 158, 11, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 18% 82%, rgba(236, 72, 153, 0.35) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 8%, rgba(99, 102, 241, 0.3) 0 2px, transparent 3px);
  animation: hospital-reg-success-confetti 5s ease-in-out infinite;
}

@keyframes hospital-reg-success-confetti {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(0);
  }
  50% {
    opacity: 0.95;
    transform: translateY(3px);
  }
}

.hospital-registration .hospital-reg-success__hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.hospital-registration .hospital-reg-success__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  color: #fff;
  font-size: 1.85rem;
  line-height: 1;
  box-shadow:
    0 8px 24px rgba(22, 163, 74, 0.45),
    0 0 0 4px rgba(255, 255, 255, 0.95);
  animation: hospital-reg-success-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes hospital-reg-success-pop {
  0% {
    transform: scale(0.5) rotate(-12deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.hospital-registration .hospital-reg-success__brand {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(8, 21, 74, 0.12);
  animation: hospital-reg-success-fade 0.8s ease 0.15s both;
}

@keyframes hospital-reg-success-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hospital-registration .hospital-reg-success__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.75rem 0 0.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e3a5f;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(8, 21, 74, 0.1);
}

.hospital-registration .hospital-reg-success__title {
  position: relative;
  z-index: 1;
  margin: 0.5rem 0 0.35rem;
  font-size: clamp(1.45rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #08154a;
}

.hospital-registration .hospital-reg-success__msg.sucess-text-registration,
.hospital-registration .hospital-reg-success .hospital-reg-success__msg {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 1rem;
  font-size: 1.0625rem !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  color: #334155 !important;
  text-align: center !important;
}

.hospital-registration .hospital-reg-success__hint {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 auto 1.15rem;
  max-width: 26rem;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(8, 21, 74, 0.08);
  box-shadow: 0 2px 12px rgba(8, 21, 74, 0.05);
}

.hospital-registration .hospital-reg-success__hint-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1.15rem;
  color: #2563eb;
}

.hospital-registration .hospital-reg-success__timeline {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 auto 1.25rem;
  padding: 0;
  max-width: 26rem;
  text-align: left;
}

.hospital-registration .hospital-reg-success__timeline li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #334155;
  border-bottom: 1px dashed rgba(8, 21, 74, 0.12);
}

.hospital-registration .hospital-reg-success__timeline li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hospital-registration .hospital-reg-success__step-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: linear-gradient(145deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  font-size: 0.95rem;
}

.hospital-registration .hospital-reg-success__actions {
  position: relative;
  z-index: 1;
}

.hospital-registration .hospital-reg-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hospital-registration .hospital-reg-success__btn:hover,
.hospital-registration .hospital-reg-success__btn:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.42);
}

.hospital-registration .hospital-reg-success__btn-icon {
  font-size: 1rem;
}

/* Header cart hover panel above ERP portal navbar (both were effectively z-index: 100) */
.site-header .top-header .cart-control,
.top-header-right .cart-control {
  z-index: 3000 !important;
}
.site-header .cart-control .cart-details {
  z-index: 3001 !important;
}

/*
 * Client portal: only the dark top bar (.top-header) is fixed. Logo + portal nav scroll normally.
 * Page content offset uses this bar height via JS on #PageContainer.
 */
body.erp-client-theme .erp-client-header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  background-color: #191919 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

body.erp-client-theme #shopify-section-header {
  overflow: visible;
}

body.erp-client-theme .erp-client-topbar-sticky {
  background-color: #191919 !important;
}

body.erp-client-theme .erp-client-topbar-sticky .custom-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  row-gap: 10px;
}

body.erp-client-theme .erp-client-topbar-sticky .top-header-left,
body.erp-client-theme .erp-client-topbar-sticky .top-header-right {
  float: none;
  line-height: 1.45;
}

body.erp-client-theme .erp-client-topbar-sticky .top-header-left {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

body.erp-client-theme .erp-client-topbar-sticky .header__topBarIconList {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.erp-client-theme .erp-client-topbar-sticky .top-header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 14px;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

body.erp-client-theme .erp-client-topbar-sticky .top-header-right .erp-header-cart-slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 12px;
  flex: 0 1 auto;
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 14px;
  margin-left: 8px;
  box-sizing: border-box;
}

body.erp-client-theme .erp-client-topbar-sticky .desk-cart-search,
body.erp-client-theme .erp-client-topbar-sticky ul.desk-cart-search {
  position: relative !important;
  right: auto !important;
  left: auto !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  max-width: 100%;
}

body.erp-client-theme .erp-client-topbar-sticky ul.desk-cart-search li {
  display: flex;
  align-items: center;
  padding: 2px 10px !important;
  margin: 0;
  vertical-align: middle;
  white-space: normal;
  max-width: 100%;
}

body.erp-client-theme .erp-client-topbar-sticky ul.desk-cart-search li:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  padding-right: 14px !important;
  margin-right: 2px;
}

body.erp-client-theme .erp-client-topbar-sticky .header__topBarIconList li:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 10px;
  margin-right: 8px;
}

body.erp-client-theme .erp-client-topbar-sticky ul.desk-cart-search li b,
body.erp-client-theme .erp-client-topbar-sticky ul.desk-cart-search a {
  word-break: break-word;
}

/*
 * Theme .cart-control / .checkout use position:absolute and overlap the link list.
 * Keep them in normal flex flow inside the client top bar (.erp-header-cart-slot).
 */
body.erp-client-theme .erp-client-topbar-sticky .top-header-right .erp-header-cart-slot .cart-control {
  flex-shrink: 0;
  position: relative !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 0;
  max-width: min(100%, 320px);
  height: auto !important;
  text-align: left;
}

body.erp-client-theme .erp-client-topbar-sticky .top-header-right .erp-header-cart-slot .cart-control > a {
  height: auto !important;
  min-height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.erp-client-theme .erp-client-topbar-sticky .erp-header-cart__trigger {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 4px;
}

body.erp-client-theme .erp-client-topbar-sticky .top-header-right .erp-header-cart-slot .checkout,
body.erp-client-theme .erp-client-topbar-sticky .top-header-right .erp-header-cart-slot .erp-header-cart-quick {
  position: relative !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  min-width: 0;
  flex-shrink: 0;
  line-height: 1.3 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 14px;
  margin-left: 2px;
  box-sizing: border-box;
}

body.erp-client-theme .erp-client-topbar-sticky .top-header-right .erp-header-cart-slot .erp-header-cart-quick__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  box-sizing: border-box;
}

@media only screen and (max-width: 767px) {
  body.erp-client-theme .erp-client-topbar-sticky .custom-container {
    flex-direction: column;
    align-items: stretch;
  }

  body.erp-client-theme .erp-client-topbar-sticky .top-header-right {
    justify-content: flex-start;
    width: 100%;
    max-width: none !important;
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  body.erp-client-theme .erp-client-topbar-sticky ul.desk-cart-search {
    flex: 1 1 100%;
    min-width: 0;
    justify-content: flex-start;
    order: 2;
  }

  body.erp-client-theme .erp-client-topbar-sticky .top-header-right .erp-header-cart-slot {
    order: 1;
    flex: 1 1 auto;
    justify-content: flex-end;
    max-width: none;
  }

  body.erp-client-theme .erp-client-topbar-sticky .top-header-right .erp-header-cart-slot .cart-control {
    max-width: none;
  }

  body.erp-client-theme .erp-client-topbar-sticky #burger-menu {
    order: 0;
    right: auto !important;
    flex-shrink: 0;
  }
}

/* style.css hides all .desk-cart-search li under 749px; keep portal links visible */
@media only screen and (max-width: 749px) {
  body.erp-client-theme .erp-client-topbar-sticky .site-header .top-header .custom-container .top-header-right {
    max-width: none !important;
    width: 100% !important;
  }

  body.erp-client-theme
    .erp-client-topbar-sticky
    .site-header
    .top-header
    .custom-container
    .top-header-right
    ul.desk-cart-search
    li {
    display: flex !important;
  }

  body.erp-client-theme .erp-client-topbar-sticky .top-header-right .erp-header-cart-slot .cart-control {
    width: auto !important;
    max-width: 100%;
  }
}

/* Header cart dropdown — client theme (navy + brand red, Inter) */
body.erp-client-theme .erp-header-cart .cart-details.erp-header-cart__panel,
body.erp-client-theme .erp-header-cart:hover .cart-details.erp-header-cart__panel {
  width: min(100vw - 20px, 400px) !important;
  max-width: 400px !important;
  left: auto !important;
  right: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  background: #f8fafc;
  border: 1px solid rgba(8, 21, 74, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  overflow: hidden;
}

body.erp-client-theme .erp-header-cart__panel-inner {
  display: flex;
  flex-direction: column;
  max-height: min(70vh, 520px);
}

body.erp-client-theme .erp-header-cart__head {
  flex-shrink: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, #0c1f75 0%, #08154a 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.erp-client-theme .erp-header-cart__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

body.erp-client-theme .erp-header-cart__subtitle {
  margin: 4px 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

body.erp-client-theme .erp-header-cart__list {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  max-height: 240px;
  -webkit-overflow-scrolling: touch;
}

body.erp-client-theme .erp-header-cart__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid var(--erp-color-border, #e5e7eb);
  border-radius: 8px;
  box-shadow: var(--erp-table-shadow, 0 1px 2px rgba(15, 23, 42, 0.06));
  border-left: 3px solid #c12225;
}

body.erp-client-theme .erp-header-cart__item:last-child {
  margin-bottom: 0;
}

body.erp-client-theme .erp-header-cart__media {
  position: relative;
  flex-shrink: 0;
}

body.erp-client-theme .erp-header-cart__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  display: block;
}

body.erp-client-theme .erp-header-cart__qty-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: var(--erp-color-danger-mid, #dc2626);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

body.erp-client-theme .erp-header-cart__body {
  min-width: 0;
  flex: 1;
}

body.erp-client-theme .erp-header-cart__name {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--erp-color-text, #1f2937);
}

body.erp-client-theme .erp-header-cart__name a {
  color: inherit;
  text-decoration: none;
}

body.erp-client-theme .erp-header-cart__name a:hover {
  color: #cf2526;
}

body.erp-client-theme .erp-header-cart__price {
  font-size: 0.9375rem;
  font-weight: 700;
}

body.erp-client-theme .erp-header-cart__price-was {
  color: var(--erp-color-text-muted, #6b7280);
  font-weight: 500;
  font-size: 0.8125rem;
  margin-right: 6px;
}

body.erp-client-theme .erp-header-cart__price-now {
  color: #047857;
}

body.erp-client-theme .erp-header-cart__empty {
  margin: 0;
  padding: 20px 8px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--erp-color-text-muted, #6b7280);
}

body.erp-client-theme .erp-header-cart__foot {
  flex-shrink: 0;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #08154a 0%, #0a1a5c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.erp-client-theme .erp-header-cart__total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #fff;
}

body.erp-client-theme .erp-header-cart__total-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

body.erp-client-theme .erp-header-cart__total-value {
  font-size: 1.25rem;
  font-weight: 700;
}

body.erp-client-theme .erp-header-cart__cta {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  color: #fff !important;
  background: #c12225 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 14px rgba(193, 34, 37, 0.35);
  transition: background 0.15s ease, transform 0.1s ease;
}

body.erp-client-theme .erp-header-cart__cta:hover {
  background: #a61d20 !important;
  color: #fff !important;
}

body.erp-client-theme .erp-header-cart__cta .erp-btn-leading-icon {
  font-size: 0.9em;
  opacity: 0.95;
}

body.erp-client-theme .erp-header-cart__trigger {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px !important;
  text-decoration: none !important;
  box-sizing: border-box;
}

body.erp-client-theme .erp-header-cart__trigger-icon .ion-ios-cart {
  font-size: 26px !important;
  padding-right: 0 !important;
  vertical-align: middle;
}

body.erp-client-theme .erp-header-cart__trigger-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.2;
}

body.erp-client-theme .erp-header-cart__count {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

body.erp-client-theme .erp-header-cart__subtotal {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

body.erp-client-theme .erp-header-cart-quick.checkout {
  line-height: 1.2;
}

body.erp-client-theme .erp-header-cart-quick__link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 35px;
  padding: 0 10px;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.02em;
}

body.erp-client-theme .erp-header-cart-quick__link:hover {
  text-decoration: underline !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  body.erp-client-theme .erp-header-cart .cart-details.erp-header-cart__panel,
  body.erp-client-theme .erp-header-cart:hover .cart-details.erp-header-cart__panel {
    width: min(100vw - 16px, 360px) !important;
  }

  body.erp-client-theme .erp-header-cart__thumb {
    width: 56px;
    height: 56px;
  }

  body.erp-client-theme .erp-header-cart__total-value {
    font-size: 1.1rem;
  }
}

/* Registration confirmation — theme .form-vertical h1:before (style.css) adds a short red bar on the heading */
.registration-confirmation #CustomerLoginForm h1::before,
.registration-confirmation #CustomerLoginForm h1:before,
.registration-confirmation .form-vertical h1::before,
.registration-confirmation .form-vertical h1:before,
.registration-confirmation h1.registration-confirmation__h1::before,
.registration-confirmation h1.registration-confirmation__h1:before {
  content: none !important;
  display: none !important;
  border: none !important;
  width: 0 !important;
  margin: 0 !important;
  top: 0 !important;
}

/* /registration-confirmation — simple, clean */
.registration-confirmation .erp-login-info.registration-confirmation__brand {
  margin-top: 0;
  text-align: center;
}
.registration-confirmation .registration-confirmation__wrap {
  max-width: 400px;
  margin: 0 auto;
  padding: 8px 0 16px;
}
.registration-confirmation .registration-confirmation__h1 {
  margin: 0 0 6px !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #1b2838 !important;
  font-family: "Open Sans", system-ui, sans-serif !important;
}
.registration-confirmation .registration-confirmation__hint {
  margin: 0 0 22px;
  font-size: 0.9rem;
  color: #6c757d;
}
.registration-confirmation .registration-confirmation__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.registration-confirmation .registration-confirmation__btn {
  min-width: 120px;
  padding: 0.55rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.registration-confirmation .registration-confirmation__btn--yes {
  background: #198754;
  color: #fff;
  border-color: #198754;
}
.registration-confirmation .registration-confirmation__btn--yes:hover:not(:disabled) {
  background: #157347;
  border-color: #146c43;
  color: #fff;
}
.registration-confirmation .registration-confirmation__btn--no {
  background: #fff;
  color: #475569;
  border-color: #94a3b8;
}
.registration-confirmation .registration-confirmation__btn--no:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #64748b;
  color: #334155;
}
.registration-confirmation .registration-confirmation__btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.35);
}
.registration-confirmation .registration-confirmation__btn:disabled {
  opacity: 0.75;
  cursor: wait;
}
.registration-confirmation .registration-confirmation__signin {
  margin: 22px 0 0;
  font-size: 0.875rem;
}
.registration-confirmation .registration-confirmation__signin a {
  color: #cf2526;
  font-weight: 600;
  text-decoration: none;
}
.registration-confirmation .registration-confirmation__signin a:hover {
  text-decoration: underline;
}

/* ─── Client storefront footer — aligns with 911ERP theme (erp-theme gradient, slate surfaces, Inter) ─── */
footer.site-footer.erp-client-footer {
  margin-top: 0 !important;
  padding: 0 !important;
  border: none;
  background: linear-gradient(180deg, #1e293b 0%, #111827 100%);
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.12);
}

.erp-client-footer .erp-footer-accent {
  height: 4px;
  background: linear-gradient(
    45deg,
    rgb(107, 46, 56) 0%,
    rgb(5, 53, 48) 100%
  );
}

/* Social strip — replaces loose newsletter row */
.erp-client-footer #newsletter.erp-footer-socialstrip {
  margin: 0 !important;
  padding: 1rem 0 1.125rem !important;
  line-height: normal !important;
  text-align: left !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.65) !important;
}

.erp-client-footer .erp-footer-socialstrip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.erp-client-footer .erp-footer-socialstrip-label {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
}

.erp-client-footer ul.erp-footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.erp-client-footer ul.erp-footer-social-icons > li {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.erp-client-footer .erp-footer-social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9 !important;
  font-size: 1.25rem !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.erp-client-footer .erp-footer-social-link:hover {
  border-color: rgb(207, 37, 38);
  background: rgba(207, 37, 38, 0.18);
  transform: translateY(-2px);
}

/* Main footer columns */
.erp-client-footer .erp-footer-body .footer-main {
  padding-top: 2.75rem !important;
  padding-bottom: 2.25rem !important;
}

@media (max-width: 749px) {
  .erp-client-footer .erp-footer-main .erp-footer-grid .erp-footer-col {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 2rem !important;
  }

  .erp-client-footer .erp-footer-main .erp-footer-grid .erp-footer-col:last-child {
    margin-bottom: 0 !important;
  }
}

.erp-client-footer .erp-footer-heading {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: 0.8125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(226, 232, 240, 0.95) !important;
  line-height: 1.35 !important;
  margin: 0 0 1rem !important;
  padding-bottom: 0.65rem !important;
  border-bottom: 1px solid rgba(207, 37, 38, 0.35);
}

.erp-client-footer ul.erp-footer-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.erp-client-footer ul.erp-footer-list > li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.65 !important;
}

.erp-client-footer ul.erp-footer-list > li > a {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: 0.9375rem !important;
  font-weight: var(--erp-fw-normal, 400);
  color: rgba(226, 232, 240, 0.82) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}

.erp-client-footer ul.erp-footer-list > li > a:hover {
  color: #ffffff !important;
}

.erp-client-footer address.erp-footer-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-style: normal !important;
  font-size: 0.9375rem !important;
  line-height: 1.65 !important;
  color: rgba(226, 232, 240, 0.82) !important;
}

.erp-client-footer .erp-footer-address-lines {
  display: block;
  margin-bottom: 1rem !important;
}

.erp-client-footer .erp-footer-contact-link {
  display: inline-flex !important;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem !important;
  color: rgba(226, 232, 240, 0.92) !important;
  text-decoration: none !important;
  margin-bottom: 0.65rem !important;
  transition: color 0.15s ease;
}

.erp-client-footer .erp-footer-contact-link:last-child {
  margin-bottom: 0 !important;
}

.erp-client-footer .erp-footer-contact-link i.fa {
  margin-top: 0.15rem;
  color: rgb(52, 211, 153);
  opacity: 0.95;
}

.erp-client-footer .erp-footer-contact-link:hover {
  color: #ffffff !important;
}

/* Copyright bar */
.site-footer__copyright--bottom.erp-footer-copyright-bar {
  padding: 1.25rem 1rem !important;
  border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: #0f172a !important;
  text-align: center !important;
}

.erp-footer-copyright-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.erp-footer-copy-main {
  display: block;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: 0.8125rem !important;
  font-weight: var(--erp-fw-medium, 500);
  color: rgba(148, 163, 184, 0.92) !important;
}

.erp-footer-copy-dev {
  margin: 0 !important;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.75rem !important;
  color: rgba(100, 116, 139, 0.95);
}

.erp-footer-copy-dev a {
  color: rgba(207, 37, 38, 0.92);
  font-weight: var(--erp-fw-semibold, 600);
  text-decoration: none;
}

.erp-footer-copy-dev a:hover {
  color: #ef4444;
  text-decoration: underline;
}

/* --- Client static pages (/pages/*) — shared shell, erp-theme alignment --- */
.erp-static-page {
  padding: 0 0 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 10rem);
}

.erp-static-page__accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    45deg,
    rgb(107, 46, 56) 0%,
    rgb(5, 53, 48) 100%
  );
}

.erp-static-page__container {
  max-width: 820px !important;
  padding-top: 2.5rem !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.erp-static-page__header {
  text-align: center;
  margin: 0 0 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.erp-static-page__title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: clamp(1.5rem, 4vw, 1.875rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.erp-static-page__subtitle {
  margin: 0.65rem 0 0 !important;
  font-size: 0.9375rem !important;
  line-height: 1.45;
  color: #64748b !important;
  max-width: 36rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.erp-static-page__content {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  -webkit-font-smoothing: antialiased;
}

.erp-static-page__content p {
  margin: 0 0 1rem !important;
}

.erp-static-page__content p:last-child {
  margin-bottom: 0 !important;
}

.erp-static-page__content a {
  color: #cf2526 !important;
  font-weight: 600;
  text-decoration: none !important;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.erp-static-page__content a:hover {
  color: #b32127 !important;
  border-bottom-color: rgba(207, 37, 38, 0.4);
}

.erp-static-page__content strong,
.erp-static-page__content b {
  color: #1e293b !important;
  font-weight: 600;
}

.erp-static-page__content em {
  color: #475569;
}

/* About intro */
.erp-static-page__content .erp-static-lead {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid rgba(207, 37, 38, 0.75);
  background: rgba(248, 250, 252, 0.95);
  border-radius: 0 8px 8px 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Location / contact callouts */
.erp-static-page__content .erp-static-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin: 1.5rem 0 0.4rem;
}

.erp-static-page__content .erp-static-kicker:first-child {
  margin-top: 0;
}

.erp-static-page__content ul,
.erp-static-page__content ol {
  margin: 0 0 1rem 1.25rem !important;
  padding: 0 !important;
  list-style-position: outside;
}

.erp-static-page__content li {
  margin: 0 0 0.4rem !important;
  color: #334155;
}

.erp-static-page__content .erp-static-divider {
  border: none;
  height: 1px;
  background: rgba(148, 163, 184, 0.45);
  margin: 1.75rem 0;
}

/* Mailing / returns address card on static pages */
.erp-static-page__content .erp-static-address {
  margin: 0.75rem 0 1.5rem;
  padding: 1.125rem 1.35rem;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  border-left: 4px solid rgba(5, 53, 48, 0.65);
  line-height: 1.55;
  color: #334155;
}

.erp-static-page__content .erp-static-address strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #0f172a !important;
}

.erp-static-page__content .erp-static-note {
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: 8px;
  background: rgba(254, 243, 199, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.erp-static-page__content .erp-static-note strong {
  color: #92400e !important;
}

@media (max-width: 599.98px) {
  .erp-static-page__container {
    padding-top: 1.75rem !important;
  }

  .erp-static-page__header {
    margin-bottom: 1.5rem;
  }
}

/* ─── /place-new-order — matches erp-static-page + footer accent, grid wrap spacing ─── */
.erp-place-order .erp-place-order-page {
  position: relative;
  padding: 0 0 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 10rem);
}

.erp-place-order .erp-place-order-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    45deg,
    rgb(107, 46, 56) 0%,
    rgb(5, 53, 48) 100%
  );
}

.erp-place-order .erp-place-order-inner {
  padding-top: 2rem !important;
  padding-bottom: 1.5rem !important;
}

.erp-place-order .erp-place-order-title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 1.5rem !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.erp-place-order .erp-place-order-radio-row {
  margin-bottom: 1rem;
}

.erp-place-order .erp-place-order-hr {
  border: none;
  height: 1px;
  background: rgba(148, 163, 184, 0.45);
  margin: 0 0 1.5rem;
}

.erp-place-order .erp-place-order-notice {
  margin-bottom: 1.5rem !important;
  border-radius: 8px;
  border-left: 4px solid rgba(133, 100, 4, 0.85);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.erp-place-order .erp-form-label {
  display: block;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.erp-place-order .erp-form-label--inline {
  display: inline;
  margin-bottom: 0;
  font-weight: var(--erp-fw-medium, 500);
}

.erp-place-order .erp-field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
}

/* CSS Grid + gap: wrapped rows get consistent vertical spacing */
.erp-place-order-page .erp-place-order-form-grid.grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1rem 1.25rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.erp-place-order-page .erp-place-order-form-grid > .grid__item {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: auto !important;
  right: auto !important;
  min-width: 0;
  box-sizing: border-box;
}

.erp-place-order-page .erp-place-order-form-grid > .erp-field--full,
.erp-place-order-page .erp-place-order-form-grid > .erp-field--actions {
  grid-column: 1 / -1;
}

.erp-place-order-page .erp-field .form-control,
.erp-place-order-page .erp-field select.form-control {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.9375rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  min-height: 2.5rem;
  box-sizing: border-box;
}

.erp-place-order-page .erp-field--actions {
  margin-top: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.erp-place-order-page .erp-place-order-submit {
  min-width: 140px;
  padding: 0.6rem 1.75rem;
  font-weight: 600;
  border-radius: 6px;
}

@media (max-width: 599.98px) {
  .erp-place-order .erp-place-order-inner {
    padding-top: 1.5rem !important;
  }
}

/* ─── /change-password — same accent + shell as place-new-order / static pages ─── */
.erp-change-password .erp-change-password-page {
  position: relative;
  padding: 0 0 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 10rem);
}

.erp-change-password .erp-change-password-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    45deg,
    rgb(107, 46, 56) 0%,
    rgb(5, 53, 48) 100%
  );
}

.erp-change-password .erp-change-password-inner {
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  box-sizing: border-box;
}

.erp-change-password .erp-change-password-header {
  text-align: center;
  margin: 0 0 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.erp-change-password .erp-change-password-title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.erp-change-password .erp-change-password-subtitle {
  margin: 0.75rem 0 0 !important;
  font-size: 0.9375rem !important;
  line-height: 1.5;
  color: #64748b !important;
}

.erp-change-password .erp-form-label {
  display: block;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.erp-change-password .erp-req {
  color: #b91c1c;
  font-weight: 700;
  margin-left: 0.125rem;
}

.erp-change-password .erp-field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
}

.erp-change-password-page .erp-change-password-form-grid.grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.erp-change-password-page .erp-change-password-form-grid > .grid__item {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: 0;
  box-sizing: border-box;
}

.erp-change-password-page .erp-field .form-control {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.9375rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  min-height: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

.erp-change-password .erp-field--actions {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  text-align: right;
}

.erp-change-password .erp-change-password-submit {
  min-width: 160px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  border-radius: 6px;
}

@media (max-width: 599.98px) {
  .erp-change-password .erp-change-password-inner {
    padding-top: 1.5rem !important;
  }
}

/* ─── Department / portal forms (non-admin routes using layouts.new-app) ─── */
.erp-portal-form .erp-portal-form-page {
  position: relative;
  padding: 0 0 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 10rem);
}

.erp-portal-form .erp-portal-form-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    45deg,
    rgb(107, 46, 56) 0%,
    rgb(5, 53, 48) 100%
  );
}

.erp-portal-form .erp-portal-form-inner {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  box-sizing: border-box;
}

.erp-portal-form--list .erp-portal-form-inner {
  max-width: none;
}

.erp-portal-form .erp-portal-form-header {
  text-align: center;
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.erp-portal-form .erp-portal-form-title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.erp-portal-form .erp-portal-form-subtitle {
  margin: 0.65rem 0 0 !important;
  font-size: 0.9375rem !important;
  line-height: 1.5;
  color: #64748b !important;
  max-width: 36rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.erp-portal-form-page .erp-portal-form-grid.grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1rem 1.25rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
  box-sizing: border-box;
}

.erp-portal-form-page .erp-portal-form-grid > .grid__item {
  float: none !important;
  clear: none !important;
  width: auto !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  left: auto !important;
  right: auto !important;
  min-width: 0;
  box-sizing: border-box;
}

.erp-portal-form-page .erp-portal-form-grid > .grid__item.medium-up--one-full {
  grid-column: 1 / -1;
}

.erp-portal-form .erp-portal-form-grid .grid__item label,
.erp-portal-form .erp-portal-form-grid label.erp-form-label {
  display: block;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

.erp-portal-form .erp-req {
  color: #b91c1c;
  font-weight: 700;
  margin-left: 0.125rem;
}

.erp-portal-form-page .erp-portal-form-grid .form-control,
.erp-portal-form-page .erp-portal-form-grid select.form-control,
.erp-portal-form-page .erp-portal-form-grid select.product-form__input,
.erp-portal-form-page .erp-portal-form-grid select:not([multiple]),
.erp-portal-form-page .erp-portal-form-grid input[type="text"],
.erp-portal-form-page .erp-portal-form-grid input[type="email"],
.erp-portal-form-page .erp-portal-form-grid input[type="password"],
.erp-portal-form-page .erp-portal-form-grid input[type="number"],
.erp-portal-form-page .erp-portal-form-grid textarea {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.9375rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  min-height: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  line-height: 1.35;
  box-sizing: border-box;
  width: 100% !important;
}

/* One chevron only: native menulist + theme background both drew arrows on some browsers */
.erp-portal-form-page .erp-portal-form-grid select:not([multiple]),
.erp-portal-form-page .erp-portal-form-grid select.product-form__input,
.erp-portal-form-page .erp-portal-form-grid select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem 1rem;
  padding-right: 2.25rem;
  cursor: pointer;
}

.erp-portal-form-page .erp-portal-form-grid select:not([multiple])::-ms-expand,
.erp-portal-form-page .erp-portal-form-grid select.product-form__input::-ms-expand,
.erp-portal-form-page .erp-portal-form-grid select.form-control::-ms-expand {
  display: none;
}

/*
 * All other client-facing selects (layouts.new-app main slot + checkout): one chevron only.
 * Covers get-quote, place-new-order, login, registration, collections, etc. — not /admin/* URLs.
 */
body.erp-client-theme #PageContainer > section select:not([multiple]),
body.erp-theme-checkout .content select:not([multiple]) {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1rem 1rem;
  padding-right: max(2.25rem, 36px);
  cursor: pointer;
}

body.erp-client-theme #PageContainer > section select:not([multiple])::-ms-expand,
body.erp-theme-checkout .content select:not([multiple])::-ms-expand {
  display: none;
}

.erp-portal-form-page .erp-portal-form-grid textarea {
  min-height: 5rem;
  height: auto;
  resize: vertical;
}

.erp-portal-form-page .erp-portal-form-grid .erp-balance-notes-field textarea {
  min-height: 6.5rem;
}

/* /new-request — file list + Quill shell */
.erp-new-request-page .erp-new-request-file-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--erp-color-text-muted, #64748b);
}
.erp-new-request-page .erp-new-request-file-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.875rem;
}
.erp-new-request-page .erp-new-request-file-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}
.erp-new-request-page .erp-new-request-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.erp-new-request-page .erp-new-request-file-name {
  min-width: 0;
  font-size: 0.875rem;
}
.erp-new-request-page .erp-new-request-file-remove {
  flex-shrink: 0;
  background: #b91c1c;
  color: #fff;
  border: none;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8125rem;
}
.erp-new-request-page .ql-toolbar.ql-snow {
  border-radius: 6px 6px 0 0;
  border-color: #cbd5e1;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
}
.erp-new-request-page .ql-container.ql-snow {
  border-radius: 0 0 6px 6px;
  border-color: #cbd5e1;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
}

/* Request view (read-only portal request) */
.erp-request-view-page .erp-request-view-readonly {
  width: 100% !important;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.9375rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
  background: #f1f5f9;
  color: #475569;
  box-sizing: border-box;
  cursor: not-allowed;
}
.erp-request-view-page .erp-request-view-message-field .erp-request-view-message-label {
  display: block;
  text-align: left;
}
.erp-request-view-page .erp-request-view-body {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  min-height: 120px;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
}
.erp-request-view-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin-top: 0.35rem;
}
.erp-request-view-file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.erp-request-view-file-icon {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}
.erp-request-view-file-meta {
  flex: 1;
  min-width: 0;
}
.erp-request-view-file-name {
  font-weight: 600;
  font-size: 0.875rem;
  word-break: break-word;
}
.erp-request-view-file-size {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}
.erp-request-view-download {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem !important;
  font-size: 0.8125rem !important;
}

.erp-portal-form .erp-field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.8125rem;
}

.erp-portal-form .erp-portal-form-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
}

.erp-portal-form .erp-portal-form-actions .btn-theme,
.erp-portal-form .erp-portal-form-actions .btn {
  border-radius: 6px;
  font-weight: 600;
  min-width: 7rem;
}

@media (max-width: 599.98px) {
  .erp-portal-form .erp-portal-form-inner {
    padding-top: 1.5rem !important;
  }
}

/* Site profile: show one of two Livewire forms without Blade if/else around <form> */
.erp-portal-form form.erp-hidden-form {
  display: none !important;
}

/* Site profile (/site-profile) — align with department profile-update */
.erp-portal-form .erp-site-profile-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.erp-portal-form .erp-site-profile-header-row .erp-portal-form-title {
  margin-bottom: 0.35rem;
}

.erp-portal-form .erp-site-profile-balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0.75rem;
}

.erp-portal-form .erp-account-delegation-panel {
  border: 1px solid rgba(8, 21, 74, 0.14);
  border-radius: 8px;
  padding: 0.35rem 0.25rem;
  background: rgba(8, 21, 74, 0.03);
  max-height: 260px;
  overflow: auto;
}

/* Site profile: each recipient on one row — checkbox + label aligned */
.erp-portal-form .erp-account-delegation-panel .erp-delegation-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  margin: 0;
  border-radius: 6px;
  transition: background-color 0.12s ease;
}

.erp-portal-form .erp-account-delegation-panel .erp-delegation-row:hover {
  background: rgba(8, 21, 74, 0.05);
}

.erp-portal-form .erp-account-delegation-panel .erp-delegation-row--select-all {
  font-weight: 600;
  color: #08154a;
  border-bottom: 1px solid rgba(8, 21, 74, 0.12);
  margin-bottom: 0.25rem;
  padding-bottom: 0.6rem;
}

.erp-portal-form .erp-account-delegation-panel .erp-delegation-input {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin: 0 !important;
  float: none;
  position: static;
}

.erp-portal-form .erp-account-delegation-panel .erp-delegation-text {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
}

.erp-portal-form .erp-balance-history-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 24px;
  overflow-y: auto;
}

.erp-portal-form .erp-balance-history-modal {
  position: relative;
  margin: 0 auto;
  padding: 1.25rem;
  background: #fff;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.erp-portal-form .erp-balance-history-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.erp-portal-form .erp-balance-history-modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
  padding: 0 4px;
}

.erp-portal-form .erp-balance-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.erp-portal-form .erp-balance-history-table th,
.erp-portal-form .erp-balance-history-table td {
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.erp-portal-form .erp-balance-history-table th {
  background: rgba(8, 21, 74, 0.06);
  font-weight: 600;
  text-align: left;
}

/* Inline help / announcements on department portal list pages */
.erp-portal-form .erp-portal-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 1.25rem;
  padding: 14px 16px;
  background: linear-gradient(
    135deg,
    rgba(8, 21, 74, 0.07) 0%,
    rgba(8, 21, 74, 0.03) 100%
  );
  border: 1px solid rgba(8, 21, 74, 0.14);
  border-left: 4px solid #08154a;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.erp-portal-form .erp-portal-notice__icon {
  flex-shrink: 0;
  color: #08154a;
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 1px;
}

.erp-portal-form .erp-portal-notice__body {
  flex: 1;
  min-width: 0;
}

.erp-portal-form .erp-portal-notice__title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #08154a;
  margin-bottom: 6px;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
}

.erp-portal-form .erp-portal-notice__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #334155;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
}

.erp-portal-form .erp-portal-notice__mark {
  display: inline-block;
  min-width: 1.15rem;
  padding: 1px 7px;
  font-weight: 700;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.4;
  vertical-align: baseline;
  background: #08154a;
  color: #f8fafc;
  border-radius: 4px;
}

/* ─── /collection/category & /collection/product — shared shell ─── */
.erp-collection-category .erp-collection-category-page,
.erp-collection-product .erp-collection-product-page {
  position: relative;
  padding: 0 0 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 10rem);
}

.erp-collection-category .erp-collection-category-accent,
.erp-collection-product .erp-collection-product-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    45deg,
    rgb(107, 46, 56) 0%,
    rgb(5, 53, 48) 100%
  );
}

.erp-collection-category .erp-collection-category-inner,
.erp-collection-product .erp-collection-product-inner {
  padding-top: 1.5rem !important;
  padding-bottom: 2rem !important;
  box-sizing: border-box;
}

.erp-collection-breadcrumb {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.erp-collection-breadcrumb a {
  color: #cf2526;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.erp-collection-breadcrumb a:hover {
  color: #b32127;
  text-decoration: underline;
}

.erp-collection-breadcrumb .breadcrumb__sep {
  color: #94a3b8;
  margin: 0 0.35rem;
}

.erp-collection-breadcrumb-current {
  color: #0f172a;
  font-weight: 600;
}

.erp-collection-shop-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0 0 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.875rem;
  color: #334155;
}

.erp-collection-shop-banner__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.erp-collection-shop-banner__name {
  font-weight: 600;
  color: #0f172a;
}

.erp-collection-shop-banner__balance {
  margin-left: auto;
  font-weight: 600;
  color: #0f172a;
}

.erp-collection-category-header {
  text-align: center;
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.erp-collection-category-title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: clamp(1.35rem, 3.5vw, 1.875rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.erp-collection-category-subtitle {
  margin: 0.65rem 0 0 !important;
  font-size: 0.9375rem !important;
  line-height: 1.5;
  color: #64748b !important;
  max-width: 40rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.erp-collection-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  max-width: 22rem;
  margin-left: auto;
}

.erp-collection-search-label {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.erp-collection-search-wrap {
  width: 100%;
}

.erp-collection-search-input {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.9375rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  min-height: 2.5rem;
  box-sizing: border-box;
  width: 100%;
}

.erp-collection-grid {
  clear: both;
}

.erp-collection-card-grid {
  margin-left: 0 !important;
}

/* Category & subcategory browse: 4 tiles per row (CSS Grid avoids theme float / 3-col rules) */
@media (min-width: 750px) {
  .erp-collection-category .erp-collection-card-grid.grid--uniform {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 1.25rem;
    margin-left: 0 !important;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .erp-collection-category
    .erp-collection-card-grid.grid--uniform
    > .grid__item:not(.medium-up--one-full) {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
  .erp-collection-category
    .erp-collection-card-grid.grid--uniform
    > .grid__item.medium-up--one-full {
    grid-column: 1 / -1;
  }
}

.erp-collection-category .erp-collection-card {
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.erp-collection-category .erp-collection-card:hover {
  border-color: rgba(207, 37, 38, 0.45);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.erp-collection-category .erp-collection-card__link {
  text-decoration: none !important;
  color: inherit;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  align-items: stretch;
  min-height: 0;
}

.erp-collection-category .erp-collection-card__image {
  grid-column: 1;
  grid-row: 1;
  z-index: 0;
  min-height: 200px;
  background-color: #e2e8f0 !important;
  background-size: cover;
  background-position: center;
  border-bottom: none;
}

.erp-collection-category .erp-collection-card__body {
  grid-column: 1;
  grid-row: 1;
  z-index: 1;
  align-self: start;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem 2.5rem;
  margin: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.45) 45%,
    transparent 100%
  );
}

.erp-collection-category .erp-collection-card__title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-transform: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.erp-collection-category .collection-grid-item .collection-grid-item__title {
  padding-left: 0;
}

.erp-collection-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(248, 250, 252, 0.9);
  max-width: 28rem;
  margin: 1rem auto 0;
}

.erp-collection-empty__title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.erp-collection-empty__hint {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 750px) {
  .erp-collection-toolbar {
    max-width: 24rem;
  }
}

@media (max-width: 599.98px) {
  .erp-collection-category .erp-collection-category-inner,
  .erp-collection-product .erp-collection-product-inner {
    padding-top: 1.25rem !important;
  }

  .erp-collection-shop-banner__balance {
    margin-left: 0;
    width: 100%;
  }

  .erp-product-detail .erp-product-detail-inner {
    padding-top: 1.25rem !important;
  }
}

/* ─── /collection/product/detail (PDP) — shell + type aligned with collection pages ─── */
.erp-product-detail .erp-product-detail-page {
  position: relative;
  padding: 0 0 3rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 10rem);
}

.erp-product-detail .erp-product-detail-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    45deg,
    rgb(107, 46, 56) 0%,
    rgb(5, 53, 48) 100%
  );
}

.erp-product-detail .erp-product-detail-inner {
  padding-top: 1.5rem !important;
  padding-bottom: 0 !important;
  box-sizing: border-box;
}

.erp-product-detail .erp-product-detail-shop-banner {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.erp-product-detail #shopify-section-product-template .erp-product-detail-inner {
  padding-top: 1rem !important;
  padding-bottom: 2rem !important;
}

.erp-product-detail .product-single__title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: clamp(1.35rem, 3.2vw, 1.875rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
  margin-top: 0 !important;
}

.erp-product-detail .erp-product-detail-meta {
  margin-left: 0;
}

@media (min-width: 750px) {
  .erp-product-detail .erp-product-detail-meta {
    padding-left: 0.75rem;
  }
}

.erp-product-detail .erp-product-detail-description {
  margin-left: 0 !important;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
}

.erp-product-detail .erp-product-detail-description ul {
  margin-bottom: 0;
}

.erp-product-detail .erp-product-detail-return {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
}

.erp-product-detail .erp-product-detail-return .return-link {
  border-radius: 6px;
  font-weight: 600;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
}

.erp-product-detail .product-single .form-control.qty,
.erp-product-detail select.product-form__input {
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.9375rem;
}

/* ─── /collection/product/{cat}/{id}/{type} — sort, hero, product cards ─── */
.erp-collection-product-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  margin: 0 0 1.5rem;
}

.erp-collection-sortbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  clear: both;
  float: none !important;
  width: 100% !important;
}

.erp-collection-sortbar-left {
  flex: 1 1 auto;
  min-width: 0;
}

.erp-collection-sortbar-count {
  margin: 0 !important;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.875rem;
  color: #64748b;
}

.erp-collection-sortbar-right {
  flex: 0 1 auto;
}

.erp-collection-sortby {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.erp-collection-sortby-label {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.erp-collection-sortby-select {
  min-width: 12rem;
  max-width: 100%;
  font-size: 0.875rem !important;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  min-height: 2.5rem;
  padding: 0.35rem 0.5rem;
  box-sizing: border-box;
}

.erp-collection-product .erp-collection-toolbar.erp-collection-product-search {
  max-width: none;
  margin-left: 0;
  width: 100%;
}

@media (min-width: 900px) {
  .erp-collection-product-controls {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
  }

  .erp-collection-product .erp-collection-toolbar.erp-collection-product-search {
    flex: 0 0 22rem;
    max-width: 22rem;
    margin-left: auto;
  }
}

.erp-collection-product-hero {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

@media (min-width: 750px) {
  .erp-collection-product-hero {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.erp-collection-product-hero__image {
  flex: 0 0 auto;
  max-width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.erp-collection-product-hero__image img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  vertical-align: middle;
}

.erp-collection-product-hero__text {
  flex: 1;
  min-width: 0;
  text-align: left !important;
}

.erp-collection-product-hero__title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: clamp(1.35rem, 3vw, 1.75rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 0.5rem !important;
  line-height: 1.25 !important;
  text-transform: none !important;
}

.erp-collection-product-hero__description {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
  margin: 0;
}

/* Theme (style.css) forces .product-card to 250px — use full grid cell width */
.erp-collection-product .grid__item--collection-template .product-card.erp-collection-product-card,
.erp-collection-product .grid__item--collection-template .product-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.erp-collection-product .grid__item--collection-template {
  display: flex;
  flex-direction: column;
}

.erp-collection-product .erp-collection-product-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

.erp-collection-product .erp-collection-product-card:hover {
  border-color: rgba(207, 37, 38, 0.45);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

/*
  Uniform image tile: same height for every card; full image scaled to fit (letterboxing, no hard crop).
  Theme default uses 250px + absolute img which breaks layout — override under .erp-collection-product only.
*/
.erp-collection-product .grid-view-item__image-wrapper.erp-collection-product-card__image-wrap,
.erp-collection-product .grid-view-item__image-wrapper {
  position: relative !important;
  flex-shrink: 0;
  width: 100% !important;
  height: 260px !important;
  min-height: 260px !important;
  max-height: 260px !important;
  margin: 0 !important;
  padding: 0.5rem;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
  text-align: center;
}

.erp-collection-product .grid-view-item__image-wrapper .grid-view-item__image {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  -webkit-transform: none !important;
  -ms-transform: none !important;
  -moz-transform: none !important;
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.erp-collection-product .erp-collection-product-card__title {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  padding: 0 0.75rem;
  margin: 0.5rem 0 0 !important;
}

.erp-collection-product .erp-collection-product-card__price {
  padding: 0 0.75rem;
}

.erp-collection-product .erp-collection-product-card__price .price-item {
  font-weight: 600;
  color: #0f172a;
}

.erp-collection-product .erp-collection-product-card__actions {
  padding: 0.75rem 0.75rem 1rem;
  margin-top: auto;
}

.erp-collection-product .erp-collection-product-card__actions .slide-btn,
.erp-collection-product .erp-collection-product-card__actions .btn-cart {
  width: 100%;
  text-align: center;
  border-radius: 6px;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

.erp-collection-product-grid {
  clear: both;
  margin-left: 0 !important;
}

/* Product listing (/collection/product/...): 4 cards per row */
@media (min-width: 750px) {
  .erp-collection-product #Collection .erp-collection-product-grid.grid--uniform {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 1.25rem;
    margin-left: 0 !important;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .erp-collection-product
    #Collection
    .erp-collection-product-grid.grid--uniform
    > .grid__item.grid__item--collection-template {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
  .erp-collection-product
    #Collection
    .erp-collection-product-grid.grid--uniform
    > .grid__item.medium-up--one-full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 749px) {
  .erp-collection-product .grid-view-item__image-wrapper.erp-collection-product-card__image-wrap,
  .erp-collection-product .grid-view-item__image-wrapper {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
  }
}

/* ═══ Client portal default shell (layouts.new-app only — admin uses layouts.app) ═══ */
body.erp-client-theme #PageContainer {
  position: relative;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 14rem);
  min-height: 35vh;
}

body.erp-client-theme #PageContainer::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    45deg,
    rgb(107, 46, 56) 0%,
    rgb(5, 53, 48) 100%
  );
}

/* Page-level accents already include this stripe — avoid double bar */
body.erp-client-theme #PageContainer:has(.erp-collection-category-accent)::before,
body.erp-client-theme #PageContainer:has(.erp-collection-product-accent)::before,
body.erp-client-theme #PageContainer:has(.erp-product-detail-accent)::before,
body.erp-client-theme #PageContainer:has(.erp-place-order-accent)::before,
body.erp-client-theme #PageContainer:has(.erp-change-password-accent)::before,
body.erp-client-theme #PageContainer:has(.erp-portal-form-accent)::before,
body.erp-client-theme #PageContainer:has(.erp-static-page__accent)::before {
  display: none;
}

/* Portal forms: .erp-portal-form-inner was max-width 56rem — use full .custom-container width */
body.erp-client-theme #PageContainer .erp-portal-form:not(.erp-portal-form--list) .erp-portal-form-inner {
  max-width: min(100%, 1550px);
  width: 100%;
}

@media (min-width: 768px) {
  body.erp-client-theme #PageContainer .erp-portal-form .erp-portal-form-header {
    text-align: left;
  }

  body.erp-client-theme #PageContainer .erp-portal-form .erp-portal-form-subtitle {
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Quote detail (my-quote-view): distinct colors per action */
body.erp-client-theme .erp-quote-view-actions .erp-quote-btn {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
  display: inline-block;
  line-height: 1.35;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    filter 0.15s ease;
}

body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--primary {
  color: #fff !important;
  background: linear-gradient(45deg, rgb(107, 46, 56), rgb(5, 53, 48)) !important;
  border: 1px solid rgba(5, 53, 48, 0.55) !important;
}

body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--primary:hover,
body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--primary:focus {
  color: #fff !important;
  filter: brightness(1.06);
}

body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--secondary {
  color: #1e293b !important;
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
}

body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--secondary:hover,
body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--secondary:focus {
  color: #0f172a !important;
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
}

body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--accent {
  color: #fff !important;
  background: linear-gradient(180deg, #0c1f75 0%, #08154a 100%) !important;
  border: 1px solid rgba(8, 21, 74, 0.45) !important;
}

body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--accent:hover,
body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--accent:focus {
  color: #fff !important;
  filter: brightness(1.08);
}

body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--ghost {
  color: #64748b !important;
  background: transparent !important;
  border: 1px solid #cbd5e1 !important;
}

body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--ghost:hover,
body.erp-client-theme .erp-quote-view-actions .erp-quote-btn--ghost:focus {
  color: #334155 !important;
  background: #f1f5f9 !important;
}

body.erp-client-theme .erp-quote-row-btn {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.erp-client-theme .erp-quote-row-btn--danger {
  color: #b91c1c !important;
  background: #fff !important;
  border: 1px solid #fecaca !important;
}

body.erp-client-theme .erp-quote-row-btn--danger:hover,
body.erp-client-theme .erp-quote-row-btn--danger:focus {
  color: #fff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

body.erp-client-theme .erp-quote-row-btn--edit {
  color: #1e40af !important;
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
}

body.erp-client-theme .erp-quote-row-btn--edit:hover,
body.erp-client-theme .erp-quote-row-btn--edit:focus {
  color: #fff !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
}

body.erp-client-theme #PageContainer .breadcrumb {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

body.erp-client-theme #PageContainer .breadcrumb a {
  color: #cf2526;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.erp-client-theme #PageContainer .breadcrumb a:hover {
  color: #b32127;
  text-decoration: underline;
}

body.erp-client-theme #PageContainer .breadcrumb .breadcrumb__sep {
  color: #94a3b8;
  margin: 0 0.35rem;
}

body.erp-client-theme #PageContainer .section-header h1 {
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif) !important;
  font-size: clamp(1.35rem, 3.2vw, 1.875rem) !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  line-height: 1.25 !important;
}

body.erp-client-theme #PageContainer .section-header.text-center {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

body.erp-client-theme #PageContainer .cart .table,
body.erp-client-theme #PageContainer .table-responsive .table {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
}

/* Table header row — client portal only (not admin layouts.app).
   Must use `background` + kill gradient: erp-theme.css loads after this file and sets
   background: linear-gradient(...) on .table thead th, which covers background-color. */
body.erp-client-theme #PageContainer table thead th,
body.erp-theme-checkout .content table thead th {
  background: #08154a !important;
  background-color: #08154a !important;
  background-image: none !important;
  color: #f8fafc !important;
  font-weight: 600;
  font-family: var(--erp-font-sans, Inter, system-ui, sans-serif);
  border-color: rgba(255, 255, 255, 0.12) !important;
  border-bottom-color: rgba(255, 255, 255, 0.2) !important;
  vertical-align: middle;
}

body.erp-client-theme #PageContainer table thead th a,
body.erp-theme-checkout .content table thead th a {
  color: #f8fafc !important;
  text-decoration: underline;
}

body.erp-client-theme #PageContainer table thead th a:hover,
body.erp-theme-checkout .content table thead th a:hover {
  color: #ffffff !important;
}

body.erp-client-theme #PageContainer .shopify-section .custom-container {
  padding-top: 0.5rem;
  padding-bottom: 1.5rem;
}

/* Checkout layout (cart / payment flows) — same palette, separate DOM */
body.erp-theme-checkout .banner {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e2e8f0;
}

body.erp-theme-checkout .banner .wrap {
  padding-top: 0;
  padding-bottom: 0;
}

body.erp-theme-checkout .banner .logo__image--large {
  max-height: 2.25rem;
  width: auto;
}

body.erp-theme-checkout .content {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 12rem);
  min-height: 50vh;
  padding-top: 0;
  padding-bottom: 1rem;
}

body.erp-theme-checkout .content::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(
    45deg,
    rgb(107, 46, 56) 0%,
    rgb(5, 53, 48) 100%
  );
}

/* Status column badges — match other-employee-request-list (pill, strong contrast) */
body.erp-client-theme #PageContainer table td .badge,
body.erp-theme-checkout .content table td .badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 0.25rem;
  vertical-align: middle;
}

body.erp-client-theme #PageContainer table td .badge.badge-warning,
body.erp-theme-checkout .content table td .badge.badge-warning {
  color: #212529 !important;
}

/* Department portal: consistent icon-only action buttons in tables */
body.erp-client-theme #PageContainer .erp-portal-form .table .btn.action-btn {
  min-width: 36px;
  padding: 6px 10px;
  line-height: 1.2;
}

/* Font Awesome leading icon spacing on client-facing buttons/links */
body.erp-client-theme .erp-btn-leading-icon {
  margin-right: 0.45em;
}

