/* =========================
   VERSION 2 PORTAL LAYOUT
========================= */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #1d2b45;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  width: 210px;
  min-width: 210px;
  background: #002b6b;
  color: white;
  padding: 18px 14px;
}

.logo-box h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.logo-box p {
  margin-top: 10px;
  opacity: 0.9;
}

.sidebar nav {
  margin-top: 28px;
}

.sidebar nav button {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 10px;
  text-align: left;
  font-size: 17px;
  cursor: pointer;
  transition: 0.2s;
}

.sidebar nav button:hover {
  background: rgba(255,255,255,0.12);
}

/* =========================
   MAIN CONTENT
========================= */

.main-content {
  flex: 1;
  padding: 22px;
}

/* =========================
   HEADER
========================= */

.portal-header {
  display: grid;
  grid-template-columns: 280px 1fr 220px 220px;
  gap: 18px;
  align-items: center;

  background: white;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #002b6b;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
}

.brand-area h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.header-title h1 {
  margin: 0;
  font-size: 34px;
  color: #002b6b;
}

.header-title p {
  margin-top: 8px;
  color: #4e5f7d;
}

.header-card {
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
}

.header-icon {
  font-size: 24px;
}

.header-card strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
}

.header-card p {
  margin-top: 8px;
  font-size: 14px;
  color: #5a6982;
}

.cart-card {
  cursor: pointer;
  transition: 0.2s;
}

.cart-card:hover {
  border-color: #2e6df6;
  box-shadow: 0 2px 10px rgba(46,109,246,0.12);
}

#cartBadge {
  background: #2e6df6;
  color: white;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  margin-left: 6px;
}

/* =========================
   CARDS
========================= */

.card {
  background: white;
  border-radius: 16px;
  padding: 18px 18px 22px;
  margin-bottom: 20px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 22px;
  color: #002b6b;
}

/* =========================
   SEARCH BAR
========================= */

#searchKeyword {
  width: 320px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #cfd7e6;
  font-size: 15px;
}

.primary-btn,
.card button {
  border: none;
  background: #2e6df6;
  color: white;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}

.primary-btn:hover,
.card button:hover {
  background: #1d57d6;
}

/* =========================
   TABLES
========================= */

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th:nth-child(1),
td:nth-child(1) {
  width: 110px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 90px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 280px;
}

th:nth-child(5),
td:nth-child(5) {
  width: 220px;
}






th {
  background: #f3f6fb;
  color: #223556;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 12px;
  border: 1px solid #dde4ef;
}

td {
  padding: 14px 12px;
  border: 1px solid #dde4ef;
  font-size: 14px;
  vertical-align: middle;
}

.search-row td {
  white-space: nowrap;
}

/* =========================
   QTY AREA
========================= */

.qty-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-multiplier {
  width: 52px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #cfd7e6;
  font-size: 14px;
  text-align: center;
}

.qty-select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cfd7e6;
  font-size: 14px;
}

/* =========================
   ITEM DETAIL
========================= */

.item-detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: start;
}

.item-image-box {
  width: 220px;
  height: 220px;

  border: 1px solid #dce3ef;
  border-radius: 16px;

  background: white;

  display: flex;
  align-items: center;
  justify-content: center;
}

.item-image-box img {
  max-width: 190px;
  max-height: 190px;
  object-fit: contain;
}

.item-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.item-main-info h3 {
  margin-top: 0;
  margin-bottom: 8px;
 font-size: 18px;
  color: #002b6b;
}

.item-main-info p {
  margin-top: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}

.spec-card,
.history-card {
  border: 1px solid #dde4ef;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-header h4,
.history-card h4 {
  margin: 0 0 12px;
  color: #002b6b;
}
.spec-card th,
.spec-card td,
.history-card th,
.history-card td {
  font-size: 12px;
}




/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {

  .portal-header {
    grid-template-columns: 1fr;
  }

  .item-detail-layout {
    grid-template-columns: 1fr;
  }

  .item-detail-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    width: 220px;
  }
}



.product-row td {
  font-size: 14px;
  white-space: nowrap;
}

.item-code,
.customer-part,
.item-desc {
  font-size: 14px;
}

.qty-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.qty-multiplier {
  width: 52px;
  height: 36px;
  text-align: center;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  font-size: 14px;
}

.multiply-symbol {
  font-size: 16px;
  color: #1d2b45;
}

.qty-select {
  height: 36px;
  min-width: 180px;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 14px;
}

.action-cell {
  white-space: nowrap;
  min-width: 220px;
}

.action-cell-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}



.add-cart-btn,
.quote-btn {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.add-cart-btn {
  background: #0b63f6;
  color: white;
  border: none;
}

.quote-btn {
  background: white;
  color: #1d2b45;
  border: 1px solid #cfd7e6;
}

.specific-row td {
  padding: 14px 18px;
  background: white;
}

.specific-link {
  background: transparent !important;
  color: #0b63f6 !important;
  border: none !important;
  padding: 0 !important;
  font-size: 14px;
  cursor: pointer;
}

.item-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.item-main-info h3 {
  font-size: 20px;
}

/* Smaller search result fonts */

.product-row td {
  font-size: 12px;
}

.product-row th {
  font-size: 12px;
}

.item-desc {
  font-size: 12px;
  line-height: 1.2;
}

.qty-select {
  font-size: 12px;
}

.qty-multiplier {
  font-size: 12px;
}

.add-cart-btn,
.quote-btn {
  font-size: 12px;
  padding: 0 10px;
  height: 34px;
}

.specific-link {
  font-size: 12px;
}

table th {
  font-size: 12px;
  padding: 10px 8px;
}

table td {
  padding: 10px 8px;
}

/* Fix item detail spacing */
.item-detail-layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

.item-detail-grid {
  grid-template-columns: minmax(280px, 1.1fr) minmax(240px, 0.9fr) minmax(280px, 1fr);
  gap: 20px;
  align-items: start;
}

.item-main-info {
  min-width: 0;
}

.item-main-info .small-table {
  table-layout: auto;
}

.item-main-info .small-table th,
.item-main-info .small-table td {
  white-space: nowrap;
  font-size: 12px;
  padding: 8px 10px;
}

.item-main-info .small-table th:nth-child(1),
.item-main-info .small-table td:nth-child(1) {
  width: 35%;
}

.item-main-info .small-table th:nth-child(2),
.item-main-info .small-table td:nth-child(2) {
  width: 25%;
}

.item-main-info .small-table th:nth-child(3),
.item-main-info .small-table td:nth-child(3) {
  width: 40%;
}



/* Fix wrapping inside specifications and history cards */

.spec-card,
.history-card {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.spec-card .small-table,
.history-card .small-table {
  width: 100%;
  table-layout: fixed;
}

.spec-card .small-table th,
.spec-card .small-table td,
.history-card .small-table th,
.history-card .small-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: 12px;
  padding: 8px;
}

.spec-card .small-table th:nth-child(1),
.spec-card .small-table td:nth-child(1) {
  width: 45%;
}

.spec-card .small-table th:nth-child(2),
.spec-card .small-table td:nth-child(2) {
  width: 55%;
}

.history-card .small-table th:nth-child(1),
.history-card .small-table td:nth-child(1) {
  width: 34%;
}

.history-card .small-table th:nth-child(2),
.history-card .small-table td:nth-child(2) {
  width: 33%;
}

.history-card .small-table th:nth-child(3),
.history-card .small-table td:nth-child(3) {
  width: 33%;
}

.history-card h4,
.spec-card h4 {
  overflow-wrap: anywhere;
}

/* Give customer history more room */

.item-detail-grid {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.85fr) minmax(300px, 1.2fr);
}

.history-card {
  min-width: 300px;
}

.history-card .small-table {
  table-layout: fixed;
  width: 100%;
}

.history-card .small-table th,
.history-card .small-table td {
  white-space: normal !important;
  overflow-wrap: break-word;
  word-break: normal;
  font-size: 11px;
  padding: 7px 6px;
  text-align: center;
}

.history-card .small-table th:nth-child(1),
.history-card .small-table td:nth-child(1) {
  width: 38%;
}

.history-card .small-table th:nth-child(2),
.history-card .small-table td:nth-child(2) {
  width: 34%;
}

.history-card .small-table th:nth-child(3),
.history-card .small-table td:nth-child(3) {
  width: 28%;
}


/* Login area */

#loginSection input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #cfd7e6;
  font-size: 15px;
  margin-right: 10px;
  width: auto;
  min-width: 280px;
  box-sizing: border-box;
}

#loginSection .password-row input {
  width: auto;
  min-width: 280px;
  padding-right: 42px;
}

#loginSection button {
  height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 15px;
}

#loginSection {
  padding: 26px 20px;
}

#loginSection h2 {
  margin-bottom: 20px;
}

/* Dashboard 4-card layout */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.promo-card {
  min-height: 160px;
}

/* Dashboard cards */

.grid .card {
  border: 1px solid #dfe5ef;
  border-radius: 18px;
  min-height: 180px;

  transition: 0.2s;
}

.grid .card:hover {
  border-color: #b8c7e3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Quick Search input */

#dashboardSearchKeyword {
  height: 44px;
  width: 320px;

  padding: 0 14px;

  border: 1px solid #cfd7e6;
  border-radius: 10px;

  font-size: 14px;
}

#dashboard .card button {
  height: 44px;
  padding: 0 22px;

  border-radius: 10px;

  font-size: 14px;
}

/* Force larger dashboard search input */

#dashboardSearchKeyword {
  height: 48px !important;
  min-height: 48px !important;

  width: 320px;

  padding: 0 14px !important;

  border-radius: 10px;
  border: 1px solid #cfd7e6;

  font-size: 15px;
}

#dashboard .card button {
  height: 48px !important;
  padding: 0 22px;
}


/* Clickable dashboard cards */

.dashboard-card {
  cursor: pointer;
  transition: 0.2s;
}

.dashboard-card:hover {
  transform: translateY(-2px);

  border-color: #9eb6e6;

  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}



.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.welcome-text {
  font-size: 12px;
  color: #666;
}

#headerUsername {
  font-size: 15px;
  color: #0b2c66;
}

.account-name {
  font-size: 13px;
  color: #444;
  font-weight: 500;
}

.customer-id-line {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}


.account-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.account-box {
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.account-box h3 {
  margin-top: 0;
  color: #002b6b;
}

@media (max-width: 1000px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}


#cart table {
  table-layout: fixed;
  width: 100%;
}

#cart th:nth-child(1),
#cart td:nth-child(1) {
  width: 130px;
}

#cart th:nth-child(2),
#cart td:nth-child(2) {
  width: 260px;
}

#cart th:nth-child(3),
#cart td:nth-child(3) {
  width: 120px;
}

#cart th:nth-child(4),
#cart td:nth-child(4),
#cart th:nth-child(5),
#cart td:nth-child(5) {
  width: 120px;
}

#cart th:nth-child(6),
#cart td:nth-child(6) {
  width: 150px;
}

#cart td {
  vertical-align: middle;
}

#cart input[type="number"] {
  width: 80px;
  height: 34px;
}
.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.cart-footer-buttons {
  display: flex;
  gap: 12px;
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn {
  background: #2563eb;
  color: white;
}

.primary-btn:hover {
  background: #1d4ed8;
}

.secondary-btn {
  background: #e5e7eb;
  color: #111827;
}

.secondary-btn:hover {
  background: #d1d5db;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.checkout-box {
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.checkout-box h3 {
  margin-top: 0;
  color: #002b6b;
}

.checkout-box label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
}

.checkout-box input,
.checkout-box textarea,
.checkout-box select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd7e6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.full-width {
  grid-column: 1 / -1;
}

.checkout-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1000px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.orders-table td,
.orders-table th {
  font-size: 13px;
}

.status-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-submitted {
  background: #e0f2fe;
  color: #075985;
}

.status-reviewed {
  background: #fef3c7;
  color: #92400e;
}

.status-processed {
  background: #dcfce7;
  color: #166534;
}

.order-detail-card {
  margin-top: 22px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.internal-price-code {
  font-size: 11px;
  color: #888;
  text-align: center;
  white-space: nowrap;
}
.order-detail-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.order-detail-table th,
.order-detail-table td {
  padding: 12px 10px;
  vertical-align: top;
}

.item-code-cell {
  white-space: nowrap;
  font-weight: 600;
}

.description-cell {
  line-height: 1.4;
}

.desc-main {
  font-weight: 600;
}

.desc-size {
  margin-top: 4px;
  color: #666;
  font-size: 13px;
}

.center {
  text-align: center;
}

.money {
  text-align: right;
  white-space: nowrap;
}

.internal-price-code {
  font-size: 11px;
  color: #888;
  text-align: center;
  white-space: nowrap;
}


.category-grid{

display:grid;

grid-template-columns:
repeat(
auto-fill,
minmax(
220px,
1fr
)
);

gap:20px;

}

.category-card{

cursor:pointer;

transition:.15s;

}

.category-card:hover{

transform:translateY(-2px);

box-shadow:
0 6px 18px rgba(0,0,0,.08);

border-color:#2f6fe4;

}

.category-card:active{

transform:scale(.98);

}

.category-card:hover{

transform:translateY(-3px);

box-shadow:
0 6px 20px
rgba(
0,
0,
0,
.08
);

}



.category-title{

font-weight:600;

margin-top:10px;

color:#173c78;

}

.category-img-wrap {
  width: 100%;
  height: 130px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.category-photo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .22s ease;
  display: block;
}

.category-card:hover .category-photo {
  transform: scale(1.06);
}

.category-svg-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
}

.category-svg-fallback svg {
  width: 100%;
  height: 100%;
}
.category-card{

padding:22px 16px;

border-radius:18px;

background:#ffffff;

border:1px solid #edf1f7;

transition:.18s;

cursor:pointer;

text-align:center;

font-size:15px;

font-weight:600;

color:#0b3578;

min-height:50px;

}
.category-card:hover{
cursor:pointer;
transform:
translateY(-2px);

box-shadow:
0 8px 18px
rgba(
0,
40,
120,
0.08
);

background:#fbfcff;

}
.category-card:active{

transform:scale(.98);

}


.category-title{

font-size:16px;

font-weight:600;
text-align:center;
line-height:1.2;

}




.category-grid{

display:grid;

grid-template-columns:
repeat(
auto-fit,
minmax(240px,1fr)
);

gap:28px 40px;   /* more vertical + horizontal space */

margin-top:30px;

}

.catalog-breadcrumb {
  grid-column: 1 / -1;
  font-size: 14px;
  margin-bottom: 10px;
  color: #50627a;
}

.catalog-breadcrumb span {
  cursor: pointer;
  color: #2f6fe4;
}



.catalog-item-row img{
    display:none;
}


/* ==========================
CATALOG PRODUCT LIST
========================== */



/* Final catalog item layout */

.catalog-group-banner{

  margin:10px 0 18px;

  max-width:320px;
}

.catalog-group-banner img{

  width:100%;

  height:150px;

  object-fit:contain;

  padding:8px;

  border-radius:12px;

  border:1px solid #dbe4f0;

  background:#fff;
}
.catalog-item-list{

    display:flex;

    flex-direction:column;

    gap:10px;
}
.catalog-item-image {
  display: flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
}


.catalog-item-image img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.catalog-item-id {
  font-size: 18px;
}

.catalog-item-info {
  display: flex;
  flex-direction: column;
}

.catalog-item-size {
  font-size: 16px;
}

.catalog-item-desc {
  font-size: 14px;
}
.catalog-item-stock {
  margin-top: 6px;
  font-size: 14px;
}
.catalog-item-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: center;
}

.catalog-item-row:hover{

    border-color:#2d6cdf;

    box-shadow:
      0 6px 18px rgba(0,0,0,.08);

    transform:
      translateY(-1px);
}

.catalog-products-container {
  display: block;
  width: 100%;
}

.catalog-item-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: center;
}

.catalog-item-image {
  display: flex !important;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
}

.catalog-item-image img {
  display: block !important;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.catalog-item-info {
  display: flex;
  flex-direction: column;
}

.category-card {
  padding: 18px 24px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 10px;
  text-align: left;
}

.category-title {
  font-size: 16px;
  font-weight: 700;
  color: #003b8f;
}
/* =========================
   SEARCH BREADCRUMB
========================= */

.search-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid #e4eaf4;
  border-radius: 12px;
  font-size: 13px;
  color: #50627a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.bc-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.bc-link {
  color: #2e6df6;
  cursor: pointer;
  font-weight: 500;
  border-radius: 6px;
  padding: 2px 6px;
  transition: background 0.15s;
}

.bc-link:hover {
  background: #eef3fe;
  text-decoration: underline;
}

.bc-separator {
  color: #9aabbf;
  font-size: 12px;
  user-select: none;
}

.bc-current {
  color: #1d2b45;
  font-weight: 600;
  padding: 2px 6px;
  background: #f3f6fb;
  border-radius: 6px;
}

/* =========================
   PASSWORD INPUT ROW
========================= */

.password-row {
  display: flex;
  align-items: center;
  position: relative;
  width: fit-content;
}

.password-row input {
  padding-right: 42px;
}

.password-row #togglePasswordBtn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #64748b;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}

.password-row #togglePasswordBtn:hover {
  color: #1d2b45;
}

/* =========================
   QUOTE REQUEST
========================= */

.quote-intro {
  color: #555;
  font-size: 14px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: #eef3fb;
  border-left: 4px solid #2e6df6;
  border-radius: 4px;
}

.quote-empty {
  color: #888;
  text-align: center;
  padding: 32px 0;
  font-size: 14px;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.quote-table th {
  background: #f3f6fb;
  color: #1d2b45;
  font-size: 13px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #e4eaf4;
}

.quote-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f4fb;
  font-size: 13px;
  vertical-align: middle;
}

.quote-table tr:hover td {
  background: #f8fafd;
}

.quote-qty-input {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #d1d9e8;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
}

.quote-remove-btn {
  background: none;
  border: none;
  color: #e53e3e;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.quote-remove-btn:hover {
  background: #fff0f0;
}

.quote-footer-fields {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-bottom: 20px;
}

.quote-footer-fields label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d2b45;
  margin-bottom: 6px;
}

.quote-footer-fields input,
.quote-footer-fields textarea {
  width: 100%;
  box-sizing: border-box;
}

.quote-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.quote-success {
  color: #16a34a;
  font-weight: 600;
  margin-top: 12px;
}

.quote-error {
  color: #e53e3e;
  font-weight: 600;
  margin-top: 12px;
}

/* =========================
   MY QUOTES LIST
========================= */

.quote-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.quote-history-table th {
  background: #f3f6fb;
  color: #1d2b45;
  font-size: 13px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #e4eaf4;
}

.quote-history-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f4fb;
  vertical-align: middle;
}

.quote-history-table tr:hover td {
  background: #f8fafd;
  cursor: pointer;
}

.quote-status-pending {
  background: #fef3c7;
  color: #92400e;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.quote-status-processed {
  background: #d1fae5;
  color: #065f46;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.quote-status-cancelled {
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.quote-detail-row {
  background: #f8fafd;
}

.quote-detail-row td {
  padding: 0 !important;
}

.quote-detail-inner {
  padding: 16px 24px;
  border-left: 4px solid #2e6df6;
}

.quote-detail-inner table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.quote-detail-inner table th {
  font-size: 12px;
  color: #64748b;
  padding: 6px 10px;
  text-align: left;
  border-bottom: 1px solid #e4eaf4;
}

.quote-detail-inner table td {
  padding: 6px 10px;
  border-bottom: 1px solid #f0f4fb;
}

.quote-ref {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #2e6df6;
  font-weight: 600;
}

.quote-notes-block {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #e4eaf4;
}

/* =========================
   REGISTRATION
========================= */

.register-link {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4eaf4;
  text-align: center;
  font-size: 14px;
  color: #555;
}

.register-link a {
  color: #2e6df6;
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

.register-intro {
  background: #eef3fb;
  border-left: 4px solid #2e6df6;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  color: #444;
  margin-bottom: 20px;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.register-grid label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d2b45;
  margin-bottom: 6px;
}

.register-grid input {
  width: 100%;
  box-sizing: border-box;
}

.required {
  color: #e53e3e;
}

.register-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.register-success {
  color: #16a34a;
  font-weight: 600;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
  margin-bottom: 12px;
}

.register-error {
  color: #e53e3e;
  font-weight: 600;
  padding: 12px;
  background: #fef2f2;
  border-radius: 6px;
  border: 1px solid #fecaca;
  margin-bottom: 12px;
}

.register-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d2b45;
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e4eaf4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.register-grid-full {
  grid-column: 1 / -1;
}

.register-grid-full input {
  width: 100%;
  box-sizing: border-box;
}

/* =========================
   INPUT STYLES (from app)
========================= */

.card input,
.card select,
.card textarea {
  padding: 9px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card input:focus,
.card select:focus,
.card textarea:focus {
  outline: none;
  border-color: #2e6df6;
  box-shadow: 0 0 0 3px rgba(46, 109, 246, 0.12);
}

.card input::placeholder,
.card textarea::placeholder {
  color: #aaa;
}

.card button {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.card button:hover {
  background: #1d4ed8;
}

.card button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.primary-btn {
  background: #2563eb !important;
  color: white !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 14px !important;
}

.primary-btn:hover {
  background: #1d4ed8 !important;
}

.secondary-btn {
  background: #e5e7eb !important;
  color: #374151 !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 14px !important;
}

.secondary-btn:hover {
  background: #d1d5db !important;
}

/* =========================
   SEARCH BREADCRUMB
========================= */

.search-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #f3f6fb;
  border-radius: 6px;
  border: 1px solid #e4eaf4;
}

.bc-item {
  color: #444;
}

.bc-link {
  color: #2563eb;
  cursor: pointer;
  font-weight: 500;
}

.bc-link:hover {
  text-decoration: underline;
}

.bc-separator {
  color: #aaa;
  font-size: 14px;
  margin: 0 2px;
}

.bc-current {
  color: #1d2b45;
  font-weight: 600;
}

/* =========================
   SEARCH BAR ROW
========================= */

.search-bar-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.search-bar-row input {
  flex: 1;
  min-width: 0;
}

.search-bar-row button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* =========================
   SEARCH RESULTS TABLE
========================= */

.search-results-wrap {
  overflow-x: auto;
}

.search-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: auto;
}

.search-results-table th,
.search-results-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #e4eaf4;
  vertical-align: middle;
  text-align: left;
}

.search-results-table th {
  background: #f3f6fb;
  font-weight: 600;
  color: #1d2b45;
  font-size: 13px;
  white-space: nowrap;
}

.search-results-table tr:hover td {
  background: #f8fafd;
}

/* Column widths */
.search-results-table .col-item     { width: 120px; white-space: nowrap; }
.search-results-table .col-youritem { width: 100px; }
.search-results-table .col-desc     { min-width: 180px; }
.search-results-table .col-qty      { width: 230px; white-space: nowrap; }
.search-results-table .col-actions  { width: 170px; white-space: nowrap; }

/* Qty cell */
.qty-cell-inner {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
}

.qty-multiplier {
  width: 52px;
  min-width: 52px;
  text-align: center;
  padding: 5px 4px;
  box-sizing: border-box;
}

.qty-select {
  width: 80px;
  min-width: 60px;
  padding: 5px 4px;
  box-sizing: border-box;
}

.qty-select.quote-required {
  color: #e53e3e;
  font-weight: 600;
  font-size: 11px;
  width: 110px;
}

.price-display {
  font-size: 12px;
  color: #1d2b45;
  font-weight: 600;
  white-space: nowrap;
  min-width: 70px;
}

/* Action buttons cell */
.action-cell-inner {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
}

.add-cart-btn {
  background: #2563eb;
  color: white;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.add-cart-btn:hover { background: #1d4ed8; }

.quote-btn {
  background: #f59e0b;
  color: white;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.quote-btn:hover { background: #d97706; }

.specific-link {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 0;
  text-decoration: underline;
}

.specific-row td {
  padding: 2px 12px 8px;
  border-bottom: 1px solid #e4eaf4;
}

/* =========================
   SHIP-TO PREVIEW
========================= */

.shipto-preview {
  background: #f3f6fb;
  border: 1px solid #e4eaf4;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: #1d2b45;
  margin-top: 8px;
  min-height: 52px;
}