body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f4f5f7;
  color: #1f2937;
}

header {
  background: #111827;
  color: white;
  padding: 14px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  margin: 0 0 8px 0;
  font-size: 22px;
}

nav {
  display: flex;
  gap: 14px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

main {
  padding: 14px;
  max-width: 700px;
  margin: auto;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card,
.row,
.rowlink {
  background: white;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.label {
  color: #6b7280;
  font-size: 13px;
}

.big {
  font-size: 28px;
  font-weight: 800;
}

.row,
.rowlink {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rowlink {
  text-decoration: none;
  color: inherit;
}

.row span,
.rowlink span {
  color: #6b7280;
  font-size: 14px;
}

.search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 16px;
}

.search button {
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: white;
  font-weight: 700;
}

.barrow {
  background: white;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.barlabel {
  font-weight: 700;
  margin-bottom: 6px;
}

.barwrap {
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.bar {
  height: 100%;
  background: #111827;
  border-radius: 999px;
}

.barvalue {
  color: #6b7280;
  font-size: 13px;
  margin-top: 5px;
}

.positive {
  color: #15803d;
}

.negative {
  color: #b91c1c;
}

.month-card {
  background: white;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.month-toggle,
.product-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: inherit;
  color: inherit;
}

.month-toggle span,
.product-toggle span {
  display: block;
  color: #6b7280;
  font-size: 14px;
  margin-top: 3px;
}

.chevron {
  font-size: 24px !important;
  color: #111827 !important;
  font-weight: 700;
}

.month-details,
.size-details {
  display: none;
  margin-top: 10px;
}

.month-card.open > .month-details {
  display: block;
}

.product-drill.open > .size-details {
  display: block;
}

.product-drill {
  border-top: 1px solid #e5e7eb;
  padding: 10px 0;
}

.size-row {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.size-row span {
  color: #6b7280;
  font-size: 14px;
}

.backlink {
  display: inline-block;
  margin-bottom: 12px;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.month-card .month-details,
.month-card .size-details {
  display: none !important;
}

.month-card.open > .month-details {
  display: block !important;
}

.product-drill.open > .size-details {
  display: block !important;
}

.month-card:not(.open) .product-drill,
.month-card:not(.open) .size-details {
  display: none !important;
}

.month-card.open {
  padding-bottom: 14px;
}

.month-toggle {
  cursor: pointer;
}

.product-toggle {
  cursor: pointer;
}

.toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.mini-toggle {
  border: 1px solid #d1d5db;
  background: #f9fafb;
  border-radius: 999px;
  padding: 10px;
  font-weight: 800;
  color: #374151;
}

.mini-toggle.active {
  background: #111827;
  color: white;
  border-color: #111827;
}

.product-view {
  display: none;
}

.product-view.active {
  display: block;
}

.order-size-row {
  text-decoration: none;
  color: inherit;
}

.order-size-row span {
  display: block;
}

.product-view {
  display: none !important;
}

.product-view.active {
  display: block !important;
}

.product-mix-card:not(.open) .product-view,
.product-mix-card:not(.open) .toggle-row {
  display: none !important;
}

.toggle-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.mini-toggle {
  border: 0;
  background: #e5e7eb;
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 800;
  color: #111827;
}

.mini-toggle.active {
  background: #111827;
  color: white;
}

.order-card {
  background: #f9fafb;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.order-card .product-toggle strong {
  color: #111827;
}

.order-card .product-toggle span {
  color: #6b7280;
  text-decoration: none;
}

.order-card a,
.order-card a:visited {
  color: inherit;
  text-decoration: none;
}

body {
  padding-bottom: 78px;
}

header nav {
  display: none;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: #111827;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  z-index: 999;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.18);
}

.bottom-nav .nav-item {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav .nav-item:active {
  background: #374151;
}

.detail-cards {
  margin-top: 12px;
}

.month-details h3 {
  margin: 16px 0 8px 0;
  font-size: 16px;
}

.customer-search {
  display: grid;
  grid-template-columns: 1fr 110px 58px;
}

.sort-select {
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: white;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

body {
  padding-bottom: 96px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #111827;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,0.18);
  z-index: 100;
  -webkit-overflow-scrolling: touch;
}

.bottom-nav a {
  flex: 0 0 auto;
  color: white;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.bottom-nav a:active {
  background: rgba(255,255,255,0.18);
}

/* Cleaner bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: #111827;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  z-index: 50;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.18);
}

.bottom-nav a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  white-space: nowrap;
}

.bottom-nav a.active,
.bottom-nav a:hover {
  background: rgba(255,255,255,0.12);
}

body {
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

main {
  padding-bottom: 20px;
}

/* Make bottom nav about 30% shorter */
.bottom-nav {
  height: 45px !important;
  padding: 4px 8px calc(4px + env(safe-area-inset-bottom)) !important;
}

.bottom-nav a {
  font-size: 12px !important;
  border-radius: 9px !important;
  min-height: 34px !important;
}

body {
  padding-bottom: calc(58px + env(safe-area-inset-bottom)) !important;
}

/* Fix bottom nav scroll/tall buttons */
.bottom-nav {
  height: calc(44px + env(safe-area-inset-bottom)) !important;
  max-height: calc(44px + env(safe-area-inset-bottom)) !important;
  padding: 4px 6px env(safe-area-inset-bottom) !important;
  overflow: hidden !important;
  align-items: center !important;
}

.bottom-nav a {
  height: 34px !important;
  min-height: 0 !important;
  max-height: 34px !important;
  padding: 0 4px !important;
  line-height: 1 !important;
  overflow: hidden !important;
  font-size: 11px !important;
}

body {
  padding-bottom: calc(52px + env(safe-area-inset-bottom)) !important;
}

/* Bottom nav: short height, horizontal scrolling, buttons keep readable width */
.bottom-nav {
  display: flex !important;
  grid-template-columns: none !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  gap: 8px !important;
  height: calc(48px + env(safe-area-inset-bottom)) !important;
  max-height: calc(48px + env(safe-area-inset-bottom)) !important;
  padding: 5px 10px env(safe-area-inset-bottom) !important;
  -webkit-overflow-scrolling: touch;
}

.bottom-nav a {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 92px !important;
  height: 36px !important;
  max-height: 36px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

body {
  padding-bottom: calc(58px + env(safe-area-inset-bottom)) !important;
}

/* Final bottom nav polish */
.bottom-nav a.active {
  background: #ffffff !important;
  color: #0f172a !important;
}

.bottom-nav::-webkit-scrollbar {
  display: none;
}

.bottom-nav {
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
}

.bottom-nav a {
  min-width: 80px !important;
}

.mobile-search {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  margin: 4px 0 14px 0;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  font-size: 16px;
  background: white;
}

.mobile-search:focus {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

/* Regions search bar cleanup */
#regionSearchForm {
  width: 100%;
  margin: 0 0 16px 0;
}

#regionSearch {
  width: 100% !important;
  min-height: 48px !important;
  display: block !important;
  box-sizing: border-box !important;
  font-size: 16px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
}

/* Make Regions search match Orders search */
#regionSearchForm.search {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
}

#regionSearchForm.search input {
  flex: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border: 1px solid #d1d5db !important;
  font-size: 16px !important;
  background: white !important;
}

#regionSearchForm.search button {
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #111827 !important;
  color: white !important;
  font-weight: 700 !important;
}

.small-big {
  font-size: 18px !important;
  line-height: 1.2;
}

.section-card {
  background: #f9fafb;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.section-card > .product-toggle strong {
  color: #111827;
}

.section-card > .product-toggle span {
  color: #6b7280;
}

/* Active nav polish */
.bottom-nav a.active,
.bottom-nav a[aria-current="page"] {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* Empty/loading states */
.empty-state,
.loading-state {
  background: white;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  color: #6b7280;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Slightly tighter section headings */
h2 {
  margin-top: 18px;
  margin-bottom: 10px;
}

h3 {
  margin-top: 14px;
  margin-bottom: 8px;
}

.refresh-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eef2ff;
  color: #374151;
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.refresh-row a {
  color: #111827;
  text-decoration: none;
  background: white;
  padding: 7px 10px;
  border-radius: 999px;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 14px 0;
}

.sort-form label {
  font-weight: 800;
  color: #374151;
  font-size: 14px;
}

.sort-form select {
  flex: 1;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: white;
  font-size: 15px;
  font-weight: 700;
}

/* Compact sort control like Customers top-row dropdown */
.sort-form.compact-sort {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 0 12px 0 !important;
  width: auto !important;
}

.sort-form.compact-sort label {
  display: none !important;
}

.sort-form.compact-sort select {
  width: auto !important;
  min-width: 190px !important;
  max-width: 240px !important;
  flex: 0 0 auto !important;
  padding: 10px 36px 10px 14px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background: white !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

/* FINAL sort dropdown style override */
form.sort-form.sort-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  margin: 2px 0 14px 0 !important;
  padding: 0 !important;
  gap: 0 !important;
}

form.sort-form.sort-pill label {
  display: none !important;
}

form.sort-form.sort-pill input[type="hidden"] {
  display: none !important;
}

form.sort-form.sort-pill select {
  display: block !important;
  width: auto !important;
  min-width: 230px !important;
  max-width: 280px !important;
  height: 48px !important;
  padding: 0 42px 0 16px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 48px !important;
  box-shadow: none !important;
}

/* Search row with built-in sort dropdown */
.search.customer-search {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 118px auto !important;
  gap: 8px !important;
  align-items: center !important;
}

.search.customer-search input {
  min-width: 0 !important;
}

.search.customer-search .sort-select {
  height: 48px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  padding: 0 28px 0 12px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  color: #111827 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.search.customer-search button {
  height: 48px !important;
}

/* Search + sort in one clean mobile row */
.filter-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.filter-row form.search {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: flex !important;
}

.filter-row form.search input {
  width: 100% !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.filter-row .sort-form.compact-sort {
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.filter-row .sort-form.compact-sort select {
  min-width: 132px !important;
  max-width: 150px !important;
  height: 48px !important;
  padding: 10px 34px 10px 14px !important;
}

/* Orders search without button */
form.search {
  width: 100%;
}

form.search input {
  width: 100%;
  box-sizing: border-box;
}

/* Final filter row consistency */
.filter-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.filter-row form.search {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: flex !important;
}

.filter-row form.search input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

.filter-row .sort-form.compact-sort {
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  display: flex !important;
}

.filter-row .sort-form.compact-sort input[type="hidden"],
.filter-row .sort-form.compact-sort label {
  display: none !important;
}

.filter-row .sort-form.compact-sort select {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 48px !important;
  padding: 10px 34px 10px 14px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* Customers: search fills space, sort pinned right */
.customer-search {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.customer-search input[name="q"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

.customer-search .sort-select {
  flex: 0 0 auto !important;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 48px !important;
  padding: 10px 34px 10px 14px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background: white !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #111827 !important;
}

/* Force customers search/sort layout */
form.customer-filter-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 128px !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

form.customer-filter-row input[name="q"] {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

form.customer-filter-row select.sort-select {
  grid-column: 2 !important;
  width: 128px !important;
  min-width: 128px !important;
  max-width: 128px !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

/* Force all filter rows: search left, sort pinned right */
.filter-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 128px !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.filter-row form.search {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.filter-row form.search input[name="q"] {
  width: 100% !important;
  height: 48px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.filter-row form.sort-form.compact-sort {
  grid-column: 2 !important;
  width: 128px !important;
  min-width: 128px !important;
  max-width: 128px !important;
  margin: 0 !important;
}

.filter-row form.sort-form.compact-sort select {
  width: 128px !important;
  min-width: 128px !important;
  max-width: 128px !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

/* Unified search + sort row */
.filter-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.filter-row form.search {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: flex !important;
}

.filter-row form.search input {
  width: 100% !important;
  height: 48px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}

.filter-row .sort-form.compact-sort {
  flex: 0 0 130px !important;
  width: 130px !important;
  margin: 0 !important;
  display: flex !important;
}

.filter-row .sort-form.compact-sort select {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  height: 48px !important;
  padding: 0 32px 0 14px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* Unified search + sort row */
.filter-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.filter-row form.search {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: flex !important;
}

.filter-row form.search input {
  width: 100% !important;
  height: 48px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}

.filter-row .sort-form.compact-sort {
  flex: 0 0 130px !important;
  width: 130px !important;
  margin: 0 !important;
  display: flex !important;
}

.filter-row .sort-form.compact-sort select {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  height: 48px !important;
  padding: 0 32px 0 14px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* Force unified filter row */
.filter-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.filter-row > form.search {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  display: flex !important;
}

.filter-row > form.search input {
  width: 100% !important;
  height: 48px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}

.filter-row > form.sort-form.compact-sort {
  flex: 0 0 130px !important;
  width: 130px !important;
  margin: 0 !important;
  display: flex !important;
}

.filter-row > form.sort-form.compact-sort select {
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
  height: 48px !important;
  padding: 0 32px 0 14px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* FINAL filter row override */
main .filter-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 130px !important;
  gap: 8px !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

main .filter-row form {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 0 !important;
}

main .filter-row form.search {
  display: block !important;
}

main .filter-row form.search input {
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 48px !important;
}

main .filter-row form.sort-form {
  display: block !important;
  width: 130px !important;
  min-width: 130px !important;
  max-width: 130px !important;
}

main .filter-row form.sort-form select {
  display: block !important;
  width: 130px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 34px 0 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 14px !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 48px !important;
}

main .filter-row button,
main .filter-row label {
  display: none !important;
}

/* Hard fix for single-row search + sort */
.filter-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 130px !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.filter-row form {
  margin: 0 !important;
}

.filter-row form.search {
  min-width: 0 !important;
}

.filter-row form.search input {
  width: 100% !important;
  height: 48px !important;
  box-sizing: border-box !important;
}

.filter-row .sort-form.compact-sort {
  width: 130px !important;
}

.filter-row .sort-form.compact-sort select {
  width: 130px !important;
  height: 48px !important;
}

/* Unique top search/sort row - avoids older CSS conflicts */
.top-filter-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
  align-items: stretch !important;
}

.top-search-form,
.top-sort-form {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.top-search-form input {
  width: 100% !important;
  height: 48px !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  padding: 0 14px !important;
  font-size: 16px !important;
  background: white !important;
}

.top-sort-form select {
  width: 132px !important;
  height: 48px !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  padding: 0 32px 0 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  background: white !important;
  color: #111827 !important;
}

/* Force proper search + sort row */
.filter-row {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.filter-row form.search {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.filter-row form.search input {
  width: 100% !important;
  height: 48px !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
}

.filter-row .sort-form.compact-sort {
  flex: 0 0 132px !important;
  width: 132px !important;
  margin: 0 !important;
}

.filter-row .sort-form.compact-sort select {
  width: 132px !important;
  height: 48px !important;
  border-radius: 14px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* Customers: force search + sort onto one row */
.customer-filter-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
  align-items: stretch !important;
}

.customer-search-form,
.customer-sort-form {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

.customer-search-form input {
  width: 100% !important;
  height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background: white !important;
  font-size: 16px !important;
}

.customer-sort-form select {
  width: 132px !important;
  height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 32px 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background: white !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* Hard fix: Customers search + sort row */
.customer-filter-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
}

.customer-search-form,
.customer-sort-form {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.customer-search-form input[type="search"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  font-size: 16px !important;
  line-height: 48px !important;
}

.customer-sort-form select {
  -webkit-appearance: auto !important;
  appearance: auto !important;
  width: 132px !important;
  height: 48px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  padding: 0 28px 0 12px !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

/* FINAL: clean Trinity search/sort row */
.trinity-filter-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
  align-items: stretch !important;
}

.trinity-search-form,
.trinity-sort-form {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  display: block !important;
}

.trinity-search-form input[type="search"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 48px !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  padding: 0 14px !important;
  font-size: 16px !important;
  line-height: 48px !important;
}

.trinity-sort-form select {
  width: 132px !important;
  height: 48px !important;
  box-sizing: border-box !important;
  border-radius: 14px !important;
  border: 1px solid #d1d5db !important;
  background-color: #ffffff !important;
  color: #111827 !important;
  padding: 0 30px 0 12px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.customer-section-card {
  background: #f9fafb;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.customer-section-card > .product-toggle strong {
  color: #111827;
}

.customer-section-card > .product-toggle span {
  color: #6b7280;
}

.customer-list-card {
  scroll-margin-top: 76px;
}

/* Customer monthly mini bar chart */
.mini-bar-row {
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px;
  margin-top: 8px;
}

.mini-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.mini-bar-label span {
  color: #6b7280;
  font-size: 14px;
  white-space: nowrap;
}

.mini-bar-track {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  background: #111827;
  border-radius: 999px;
}

.mini-bar-subtext {
  color: #6b7280;
  font-size: 13px;
  margin-top: 5px;
}

.mini-bar-subtext {
  color: #6b7280;
  font-size: 13px;
  margin-top: 5px;
}

.region-section-card {
  background: #f9fafb;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.region-section-card > .product-toggle strong {
  color: #111827;
}

.region-section-card > .product-toggle span {
  color: #6b7280;
}

.region-card {
  scroll-margin-top: 76px;
}

.city-card .mini-bar-row {
  margin-top: 0;
}

.warehouse-section-card {
  background: #f9fafb;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.warehouse-section-card > .product-toggle strong {
  color: #111827;
}

.warehouse-section-card > .product-toggle span {
  color: #6b7280;
}

.warehouse-card {
  scroll-margin-top: 76px;
}

/* Polished loading state */
.loading-state {
  background: #f9fafb !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin-top: 10px !important;
  color: #6b7280 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.loading-state::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #d1d5db;
  border-top-color: #111827;
  border-radius: 50%;
  display: inline-block;
  animation: trinity-spin 0.8s linear infinite;
}

@keyframes trinity-spin {
  to {
    transform: rotate(360deg);
  }
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.header-row h1 {
  margin: 0;
}

.logout-link {
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  background: rgba(255,255,255,0.14);
  padding: 8px 10px;
  border-radius: 999px;
}

.login-card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-top: 20px;
}

.login-card h2 {
  margin-top: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-form label {
  font-weight: 800;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-form input {
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 16px;
}

.login-form button {
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #111827;
  color: white;
  font-size: 16px;
  font-weight: 900;
}

.login-error {
  background: #fee2e2;
  color: #991b1b;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  margin-bottom: 14px;
}


.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  font-weight: 700;
}

.page-actions {
  margin-bottom: 8px;
}

.order-form {
  padding-bottom: 80px;
}

.form-card h2 {
  margin: 0 0 12px 0;
  font-size: 20px;
}

.form-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 700;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font: inherit;
  background: white;
}

.product-qty-row {
  display: grid;
  grid-template-columns: 1fr 84px;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #e5e7eb;
  padding: 10px 0;
}

.product-qty-row:first-of-type {
  border-top: 0;
}

.product-qty-row span {
  display: block;
  color: #6b7280;
  font-size: 14px;
  margin-top: 3px;
}

.product-qty-row input {
  text-align: right;
}

.sticky-save {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 58px;
  background: rgba(244, 245, 247, 0.96);
  padding: 10px 14px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

.sticky-save button {
  width: 100%;
  max-width: 700px;
  display: block;
  margin: auto;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  background: #166534;
  color: white;
  font-size: 17px;
  font-weight: 800;
}


.form-card input[type="date"] {
  max-width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}

.form-card input,
.form-card select,
.form-card textarea {
  min-width: 0;
}


@media (max-width: 760px) {
  .product-qty-row {
    grid-template-columns: 1fr 96px;
  }

  .form-card input,
  .form-card select,
  .form-card textarea {
    font-size: 16px;
  }
}


.qty-stepper {
  display: grid;
  grid-template-columns: 44px 64px 44px;
  gap: 6px;
  align-items: center;
}

.qty-stepper input {
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

.qty-btn {
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: white;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.product-qty-row {
  grid-template-columns: 1fr 156px;
}

/* New Order mobile quantity stepper override */
.product-qty-row {
  grid-template-columns: 1fr 166px !important;
  align-items: center !important;
}

.qty-stepper {
  display: grid !important;
  grid-template-columns: 44px 70px 44px !important;
  gap: 4px !important;
  align-items: center !important;
}

.qty-stepper input {
  height: 40px !important;
  min-height: 40px !important;
  padding: 4px !important;
  text-align: center !important;
}

.qty-btn {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  font-size: 22px !important;
  line-height: 1 !important;
}


/* Force iPhone quantity controls into one horizontal row */
.product-qty-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 0 !important;
}

.product-qty-row > div:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.product-qty-row .qty-stepper {
  flex: 0 0 164px !important;
  width: 164px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px !important;
}

.product-qty-row .qty-stepper .qty-btn {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  border-radius: 10px !important;
}

.product-qty-row .qty-stepper input {
  flex: 0 0 68px !important;
  width: 68px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 4px !important;
  text-align: center !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}


.line-product-group {
  border-top: 1px solid #e5e7eb;
  padding: 12px 0 4px 0;
}

.line-product-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.line-product-heading {
  font-weight: 900;
  font-size: 17px;
  color: #111827;
  margin-bottom: 4px;
}

.line-product-group .product-qty-row span {
  font-size: 15px;
  color: #4b5563;
}

/* Clear product grouping for New Order line items */
.line-product-group {
  border: 1px solid #d1d5db !important;
  border-radius: 14px !important;
  background: #f9fafb !important;
  padding: 10px 10px 6px 10px !important;
  margin: 12px 0 !important;
}

.line-product-heading {
  font-weight: 900 !important;
  font-size: 18px !important;
  color: #111827 !important;
  margin-bottom: 6px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.line-product-group .product-qty-row {
  border-top: 0 !important;
}

.line-product-group .product-qty-row span {
  font-weight: 700 !important;
}


/* Softer quantity buttons */
.product-qty-row .qty-stepper .qty-btn {
  background: #e5e7eb !important;
  color: #374151 !important;
  font-weight: 700 !important;
  font-size: 20px !important;
}

/* Shipping calculator mobile polish */
.calculator-card .mobile-form {
  display: block;
}

.calculator-card label {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  font-weight: 800;
  font-size: 18px;
}

.calculator-card select,
.calculator-card input {
  width: 100%;
  box-sizing: border-box;
  min-height: 54px;
  border: 2px solid #d1d5db;
  border-radius: 16px;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 700;
  background: #fff;
}

.calculator-card .primary-action {
  width: 100%;
  min-height: 58px;
  margin-top: 22px;
  border: 0;
  border-radius: 18px;
  background: #166534;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.optional-details {
  margin-top: 18px;
}

.optional-details summary {
  font-size: 17px;
  font-weight: 800;
  color: #2563eb;
}

.best-hub-card {
  background: #fff7cc;
  border: 2px solid #facc15;
}

.best-total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.best-hub-name {
  font-size: 22px;
  font-weight: 900;
}

.best-total {
  font-size: 32px;
  font-weight: 950;
  text-align: right;
}

.muted {
  color: #6b7280;
  font-size: 14px;
  margin-top: 4px;
}

.rate-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.rate-detail-grid div {
  background: rgba(255,255,255,0.75);
  border-radius: 14px;
  padding: 10px;
}

.rate-detail-grid span {
  display: block;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.rate-detail-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.shipping-rank-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin: 12px 0;
  border-radius: 16px;
  background: #f8fafc;
}

.shipping-rank-row.winner {
  background: #fff7cc;
}

.rank-title {
  font-size: 18px;
  font-weight: 900;
}

.rank-sub {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
}

.rank-price {
  text-align: right;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.rank-price small {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
}

.button-link {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #166534;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.shipping-weight-card {
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 14px;
  background: #eaf8ec;
  border: 2px solid #22c55e;
}

.shipping-weight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shipping-weight-head strong {
  display: block;
  font-size: 16px;
}

.shipping-weight-head span {
  display: block;
  margin-top: 2px;
  font-size: 24px;
  font-weight: 900;
}

.button-link.compact {
  display: inline-block;
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  white-space: nowrap;
}

.tiny-muted {
  margin-top: 6px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.weight-breakdown {
  margin-top: 10px;
}

.weight-breakdown summary {
  font-weight: 900;
  color: #166534;
}

.warning-note {
  margin-top: 10px;
  padding: 8px;
  border-radius: 10px;
  background: #fff8e1;
  color: #8a5a00;
  font-weight: 800;
}

.build-load-card {
  border: 2px solid #d1d5db;
}

.build-load-filter {
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 16px;
}

.build-load-row {
  display: grid;
  grid-template-columns: 1fr 82px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.build-load-row strong {
  display: block;
  font-size: 15px;
}

.build-load-row span {
  display: block;
  margin-top: 3px;
  color: #6b7280;
  font-size: 13px;
}

.build-load-row input {
  width: 82px;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 16px;
  text-align: right;
}

.build-load-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f3f4f6;
}

.build-load-total span {
  color: #4b5563;
  font-weight: 800;
}

.build-load-total strong {
  font-size: 22px;
  font-weight: 900;
}

.build-load-use {
  border: none;
  width: 100%;
  cursor: pointer;
}

.build-load-use:disabled {
  opacity: 0.45;
}

.build-product-card {
  margin: 10px 0;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.build-product-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 0;
  background: #f9fafb;
  text-align: left;
}

.build-product-toggle strong {
  display: block;
  font-size: 17px;
}

.build-product-toggle span {
  color: #6b7280;
  font-weight: 700;
}

.build-product-details {
  padding: 0 12px 10px;
}

.build-product-details .build-load-row:last-child {
  border-bottom: 0;
}

.build-product-card {
  margin: 14px 0;
  padding: 18px;
  border: 2px solid #d1d5db;
  border-radius: 24px;
  background: #f9fafb;
}

.build-product-title strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.build-product-details {
  padding: 0;
}

.build-load-row {
  grid-template-columns: 1fr 48px 74px 48px;
  gap: 8px;
  border-bottom: 0;
  padding: 10px 0;
}

.build-load-row::before {
  content: "−";
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1;
  height: 48px;
  border-radius: 14px;
  background: #e5e7eb;
  font-size: 28px;
  font-weight: 900;
}

.build-load-row::after {
  content: "+";
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 4;
  grid-row: 1;
  height: 48px;
  border-radius: 14px;
  background: #e5e7eb;
  font-size: 28px;
  font-weight: 900;
}

.build-load-row > div {
  grid-column: 1;
}

.build-load-row input {
  grid-column: 3;
  width: 74px;
  height: 48px;
  font-size: 22px;
  text-align: center;
  border-radius: 16px;
}

.build-load-row strong {
  font-size: 19px;
}

.build-load-row span {
  font-size: 13px;
}

/* Build Load mobile layout - final override */
.build-product-card {
  margin: 14px 0 !important;
  padding: 18px !important;
  border: 2px solid #d1d5db !important;
  border-radius: 24px !important;
  background: #f9fafb !important;
}

.build-product-title strong {
  display: block !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  padding-bottom: 10px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.build-load-row {
  display: grid !important;
  grid-template-columns: 1fr 54px 88px 54px !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 12px 0 !important;
  border-bottom: 0 !important;
}

.build-load-label {
  min-width: 0 !important;
}

.build-load-label strong {
  display: block !important;
  font-size: 22px !important;
  font-weight: 900 !important;
}

.build-load-label span {
  display: block !important;
  margin-top: 2px !important;
  font-size: 14px !important;
  color: #6b7280 !important;
}

.load-step {
  height: 54px !important;
  width: 54px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #e5e7eb !important;
  color: #1f2937 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.build-load-row input.load-qty-input {
  width: 88px !important;
  height: 54px !important;
  box-sizing: border-box !important;
  padding: 8px !important;
  border-radius: 16px !important;
  border: 2px solid #d1d5db !important;
  font-size: 24px !important;
  text-align: center !important;
  background: #fff !important;
}

.build-load-total {
  margin-top: 16px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: #f3f4f6 !important;
}

/* Build Load mobile layout - New Order style */
.build-load-card {
  overflow: visible !important;
}

.build-product-card {
  margin: 16px 0 !important;
  padding: 18px 22px !important;
  border: 2px solid #d1d5db !important;
  border-radius: 24px !important;
  background: #f9fafb !important;
}

.build-product-title strong {
  display: block !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid #e5e7eb !important;
}

.build-load-row {
  display: grid !important;
  grid-template-columns: 1fr 54px 92px 54px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 14px 0 !important;
  border-bottom: 0 !important;
}

.build-load-label {
  grid-column: 1 !important;
  min-width: 0 !important;
}

.build-load-label strong {
  display: block !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  color: #4b5563 !important;
}

.build-load-label span {
  display: block !important;
  margin-top: 2px !important;
  font-size: 13px !important;
  color: #6b7280 !important;
}

.load-step {
  height: 54px !important;
  width: 54px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #e5e7eb !important;
  color: #1f2937 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.build-load-row input.load-qty-input {
  width: 92px !important;
  height: 54px !important;
  box-sizing: border-box !important;
  padding: 8px !important;
  border-radius: 16px !important;
  border: 2px solid #d1d5db !important;
  font-size: 24px !important;
  text-align: center !important;
  background: #fff !important;
}

.build-load-total {
  margin-top: 16px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  background: #f3f4f6 !important;
}

.build-load-total span {
  font-weight: 900 !important;
  color: #4b5563 !important;
}

.build-load-total strong {
  font-size: 24px !important;
  font-weight: 900 !important;
}

/* Calculator Build Load using New Order-style rows */
.load-product-group {
  margin-top: 16px;
}

.build-load-total {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  background: #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.build-load-total span {
  font-weight: 900;
  color: #4b5563;
}

.build-load-total strong {
  font-size: 24px;
  font-weight: 900;
}
