* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.brand,
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  margin-bottom: 28px;
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand p,
.topbar-brand span,
.muted {
  margin: 4px 0 0;
  color: #6b7280;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.brand-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 14px;
}

h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

form {
  margin-top: 26px;
}

label {
  display: block;
  margin: 16px 0 6px;
  font-weight: 600;
  font-size: 14px;
}

input {
  width: 100%;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: #111827;
}

button {
  height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

form button {
  width: 100%;
  margin-top: 22px;
}

button.secondary {
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.error {
  color: #b91c1c;
  min-height: 20px;
  margin-top: 14px;
}

.app-body {
  min-height: 100vh;
}

.topbar {
  height: 70px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px;
}

.hero {
  background: #111827;
  color: #ffffff;
  border-radius: 20px;
  padding: 34px;
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.hero p {
  margin: 0;
  color: #d1d5db;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  color: #6b7280;
  min-height: 72px;
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .topbar {
    height: auto;
    padding: 18px;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
}

/* SUPPLIERS MODULE STYLES */

.app-shell {
  min-height: 100vh;
  background: #f5f7fb;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.app-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-content {
  padding: 28px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #111827;
}

.page-header p {
  margin: 0;
  color: #6b7280;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  border: 1px solid #111827;
  background: #111827;
  color: #ffffff;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}

.info-box,
.status-box {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  color: #374151;
}

.status-box.error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.suppliers-grid,
.dashboard-grid,
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.supplier-card,
.module-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.supplier-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.supplier-card h2,
.module-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #111827;
}

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

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.supplier-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: #374151;
  font-size: 14px;
}

.supplier-card p,
.module-card p {
  color: #6b7280;
  line-height: 1.5;
}

.supplier-card a {
  color: #111827;
  font-weight: 700;
}

@media (max-width: 700px) {
  .topbar,
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .page-content {
    padding: 18px;
  }

  .topbar-actions {
    justify-content: flex-start;
  }
}

/* SUPPLIERS FORM STYLES */

.hidden {
  display: none !important;
}

.supplier-form-box {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.form-header h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #111827;
}

.form-header p {
  margin: 0;
  color: #6b7280;
}

.supplier-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #111827;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid #c7d2fe;
  border-color: #6366f1;
}

.form-full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-header {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}


/* SUPPLIER CREDENTIAL ACTION STYLES */

.form-section-title {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.supplier-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.supplier-card-actions .btn-secondary {
  padding: 8px 10px;
  font-size: 13px;
}


/* SUPPLIER CONNECTION SETTINGS STYLES */

.supplier-connection-summary {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 13px;
  word-break: break-word;
}


/* SUPPLIER SYNC PREVIEW STYLES */

.sync-preview-box {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.sync-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sync-preview-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #111827;
}

.sync-preview-header p {
  margin: 0;
  color: #6b7280;
}

.sync-preview-note {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.sync-preview-table-wrap {
  overflow-x: auto;
}

.sync-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.sync-preview-table th,
.sync-preview-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.sync-preview-table th {
  background: #f9fafb;
  color: #374151;
  font-weight: 800;
}

.sync-preview-table td {
  color: #111827;
}


/* SUPPLIER LATEST PREVIEW STAGING STYLES */

.latest-preview-btn {
  border-style: dashed;
}


/* SUPPLIER DATA SOURCE STYLES */

.test-data-source-btn {
  border-color: #bfdbfe;
  background: #eff6ff;
}


/* SUPPLIER MANUAL CSV UPLOAD STYLES */

.manual-csv-box {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.manual-csv-label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.manual-csv-label textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: #ffffff;
  color: #111827;
}

.upload-csv-btn {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.preview-csv-btn {
  border-color: #fed7aa;
  background: #fff7ed;
}


/* SUPPLIER COLUMN MAPPING STYLES */

.compact-info {
  margin-top: 0;
  font-size: 13px;
}


/* SUPPLIER APPROVAL STYLES */

.approve-preview-btn {
  border-color: #86efac;
  background: #dcfce7;
}

.latest-approved-btn {
  border-color: #a7f3d0;
  background: #ecfdf5;
}


/* UNIFIED SUPPLIER PORTAL SCRAPER STYLES */

.readonly-input {
  background: #f9fafb !important;
  color: #6b7280 !important;
  cursor: not-allowed;
}


/* SUPPLIER PORTAL IMPORT STYLES */

.run-portal-import-btn {
  border-color: #60a5fa;
  background: #dbeafe;
}

.latest-portal-import-btn {
  border-color: #93c5fd;
  background: #eff6ff;
}

.portal-auto-btn {
  border-color: #fde68a;
  background: #fffbeb;
}


/* EPCOM API ONLY NOTICE */

.epcom-api-note {
  margin-top: 10px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #075985;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

/* EPCOM CATALOG UI - START */
.epcom-catalog-box {
  margin-top: 24px;
}

.epcom-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.epcom-catalog-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
}

.epcom-catalog-toolbar .checkbox-inline {
  flex-direction: row;
  align-items: center;
  min-width: auto;
}

.epcom-catalog-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
}

.epcom-catalog-panel {
  min-width: 0;
}

.table-scroll {
  overflow: auto;
  max-width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  font-weight: 700;
  white-space: nowrap;
}

.epcom-product-thumb {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.small-text {
  font-size: 11px;
  word-break: break-all;
}

@media (max-width: 980px) {
  .epcom-catalog-layout {
    grid-template-columns: 1fr;
  }
}
/* EPCOM CATALOG UI - END */


/* COMPACT SUPPLIERS UI */

.dashboard-primary-suppliers-panel {
  border: 2px solid #111827 !important;
}

.supplier-compact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supplier-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.supplier-compact-title-wrap {
  min-width: 0;
}

.supplier-compact-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  color: #111827;
}

.supplier-compact-id {
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.supplier-compact-meta {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}

.supplier-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  text-transform: uppercase;
}

.supplier-status-online {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.supplier-status-offline {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.supplier-compact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.supplier-compact-actions .supplier-configure-btn {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.supplier-card-full {
  display: none;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-top: 4px;
}

.supplier-card-open .supplier-card-full {
  display: block;
}

.supplier-card-open {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .supplier-card-open {
    grid-column: span 1;
  }
}



/* DASHBOARD SUPPLIERS SAME ROW CARD */

.dashboard-four-card-row {
  align-items: stretch;
}

.dashboard-supplier-same-row-card {
  border: 1px solid #e5e7eb !important;
  border-radius: 20px !important;
  box-shadow: none !important;
  outline: none !important;
  background: #ffffff !important;
  min-height: 230px;
  padding: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

.dashboard-supplier-same-row-card h1,
.dashboard-supplier-same-row-card h2,
.dashboard-supplier-same-row-card h3 {
  font-size: 24px !important;
  line-height: 1.2 !important;
  margin-top: 0 !important;
  margin-bottom: 22px !important;
}

.dashboard-supplier-same-row-card p {
  color: #6b7280 !important;
  font-size: 20px !important;
  line-height: 1.15 !important;
  margin-bottom: 34px !important;
}

.dashboard-supplier-same-row-card .dashboard-supplier-card-button,
.dashboard-supplier-same-row-card a,
.dashboard-supplier-same-row-card button {
  width: fit-content !important;
  border-radius: 10px !important;
  padding: 13px 22px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  background: #111827 !important;
  color: #ffffff !important;
  border: 1px solid #111827 !important;
  text-decoration: none !important;
}

.dashboard-primary-suppliers-panel {
  border: 1px solid #e5e7eb !important;
}

@media (min-width: 1100px) {
  .dashboard-four-card-row {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (max-width: 1099px) {
  .dashboard-four-card-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px !important;
  }
}

@media (max-width: 700px) {
  .dashboard-four-card-row {
    grid-template-columns: 1fr !important;
  }
}


/* DASHBOARD COMPACT + ACTIVE GREEN BUTTON */

.dashboard-supplier-same-row-card,
.dashboard-four-card-row > * {
  min-height: 180px !important;
}

.dashboard-supplier-same-row-card {
  padding: 20px !important;
}

.dashboard-supplier-same-row-card h1,
.dashboard-supplier-same-row-card h2,
.dashboard-supplier-same-row-card h3 {
  font-size: 18px !important;
  line-height: 1.15 !important;
  margin-bottom: 14px !important;
}

.dashboard-supplier-same-row-card p {
  font-size: 14px !important;
  line-height: 1.35 !important;
  margin-bottom: 18px !important;
}

.dashboard-four-card-row > * h1,
.dashboard-four-card-row > * h2,
.dashboard-four-card-row > * h3 {
  font-size: 18px !important;
  line-height: 1.15 !important;
  margin-bottom: 14px !important;
}

.dashboard-four-card-row > * p {
  font-size: 14px !important;
  line-height: 1.35 !important;
}

.dashboard-four-card-row > * a,
.dashboard-four-card-row > * button {
  font-size: 14px !important;
  padding: 10px 18px !important;
  border-radius: 10px !important;
}

.dashboard-supplier-same-row-card .dashboard-supplier-card-button,
.dashboard-supplier-same-row-card a,
.dashboard-supplier-same-row-card button {
  background: #16a34a !important;
  border: 1px solid #16a34a !important;
  color: #ffffff !important;
}

.dashboard-supplier-same-row-card .dashboard-supplier-card-button:hover,
.dashboard-supplier-same-row-card a:hover,
.dashboard-supplier-same-row-card button:hover {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}

.dashboard-four-card-row {
  gap: 18px !important;
}

@media (min-width: 1100px) {
  .dashboard-four-card-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}


/* CLEAN SUPPLIERS LIST AND SINGLE WORKSPACE */

.supplier-card-clean {
  min-height: 150px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04) !important;
}

.supplier-mini-card-clean {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.supplier-mini-main-clean {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.supplier-mini-logo-clean {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 900;
}

.supplier-mini-info-clean {
  min-width: 0;
}

.supplier-mini-name-clean {
  color: #111827;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supplier-mini-slug-clean {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supplier-mini-status-clean {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.supplier-mini-status-clean.online {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.supplier-mini-status-clean.offline {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.supplier-mini-actions-clean {
  display: flex;
  gap: 8px;
}

.supplier-open-config-clean,
.supplier-open-catalog-clean {
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  border: 1px solid transparent;
}

.supplier-open-config-clean {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.supplier-open-catalog-clean {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.supplier-open-catalog-clean:hover {
  background: #15803d;
  border-color: #15803d;
}

.supplier-original-content {
  display: none;
}

/* Single supplier workspace */

body.supplier-single-open #suppliersList,
body.supplier-single-open .suppliers-grid,
body.supplier-single-open .suppliers-list {
  display: block !important;
  width: 100% !important;
}

.supplier-workspace-clean {
  max-width: 980px;
  margin: 0 auto;
}

.supplier-workspace-topbar-clean {
  margin: 8px 0 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.supplier-back-clean {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.supplier-back-clean:hover {
  background: #f9fafb;
}

.supplier-workspace-mode-clean {
  color: #16a34a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.supplier-workspace-name-clean {
  margin-top: 2px;
  color: #111827;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
}

.supplier-workspace-slug-clean {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.supplier-workspace-status-clean {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.supplier-workspace-status-clean.online {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.supplier-workspace-status-clean.offline {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.supplier-workspace-body-clean {
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.supplier-workspace-body-clean .supplier-original-content {
  display: block !important;
}

.supplier-workspace-body-clean button,
.supplier-workspace-body-clean a {
  font-size: 13px !important;
  padding: 9px 13px !important;
  border-radius: 10px !important;
  margin: 4px !important;
}

.supplier-catalog-note-clean {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

@media (max-width: 800px) {
  .supplier-mini-main-clean {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .supplier-mini-status-clean {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .supplier-workspace-topbar-clean {
    grid-template-columns: 1fr;
  }

  .supplier-back-clean {
    width: 100%;
  }
}




/* CLEAN SUPPLIER DETAIL ACTION LAYOUT */

.supplier-workspace-body-clean {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.supplier-workspace-body-clean hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.supplier-workspace-body-clean > h1,
.supplier-workspace-body-clean > h2,
.supplier-workspace-body-clean > h3 {
  font-size: 22px !important;
  line-height: 1.1 !important;
  margin-bottom: 6px !important;
}

.supplier-workspace-body-clean p,
.supplier-workspace-body-clean div,
.supplier-workspace-body-clean span {
  line-height: 1.4;
}

.supplier-actions-clean-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.supplier-action-section-clean,
.supplier-action-details-clean {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
  padding: 14px 16px;
}

.supplier-action-section-head-clean {
  margin-bottom: 10px;
}

.supplier-action-section-title-clean {
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.supplier-action-section-description-clean,
.supplier-action-details-description-clean {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}

.supplier-action-grid-clean {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-action-button-clean {
  font-size: 13px !important;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.supplier-action-details-clean summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.supplier-action-details-clean summary::-webkit-details-marker {
  display: none;
}

.supplier-action-details-clean[open] summary {
  margin-bottom: 10px;
}

/* make main action buttons visually simpler */
.supplier-action-grid-clean button,
.supplier-action-grid-clean a {
  white-space: nowrap;
}

/* keep info area cleaner */
.supplier-workspace-body-clean {
  color: #374151;
}

.supplier-workspace-body-clean .epcom-api-note,
.supplier-workspace-body-clean .supplier-catalog-note-clean {
  margin-top: 8px;
}

@media (max-width: 800px) {
  .supplier-action-grid-clean {
    flex-direction: column;
  }

  .supplier-action-grid-clean button,
  .supplier-action-grid-clean a {
    width: 100%;
  }
}



/* CLEAN SUPPLIER DETAIL ONLY */

.supplier-clean-raw-hidden {
  display: none !important;
}

.supplier-clean-detail-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.supplier-clean-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.supplier-clean-kicker {
  color: #16a34a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.supplier-clean-title {
  margin-top: 2px;
  color: #111827;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

.supplier-clean-slug {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.supplier-clean-status {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.supplier-clean-status.online {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.supplier-clean-status.offline {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

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

.supplier-clean-card,
.supplier-clean-advanced {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 14px;
  padding: 14px;
}

.supplier-clean-card-title,
.supplier-clean-advanced summary {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.supplier-clean-advanced summary {
  cursor: pointer;
}

.supplier-clean-info-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.supplier-clean-info-item {
  min-width: 0;
}

.supplier-clean-info-label {
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.supplier-clean-info-value {
  margin-top: 2px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.supplier-clean-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-clean-action-button {
  font-size: 13px !important;
  padding: 9px 13px !important;
  border-radius: 10px !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.supplier-clean-note {
  margin-top: 10px;
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #075985;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.supplier-clean-note-line + .supplier-clean-note-line {
  margin-top: 6px;
}

.supplier-clean-empty {
  color: #6b7280;
  font-size: 13px;
}

.supplier-clean-import-card.hidden,
.supplier-clean-advanced.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .supplier-clean-grid,
  .supplier-clean-info-grid {
    grid-template-columns: 1fr;
  }

  .supplier-clean-header {
    flex-direction: column;
  }
}


/* HIDE EMPTY SUPPLIERS STATUS BOX */

#suppliersStatus:empty {
  display: none !important;
}




/* MOVE BACK BUTTON TO SUPPLIERS HEADER */

.supplier-old-back-topbar-hidden {
  display: none !important;
}

.supplier-add-button-hidden {
  display: none !important;
}

.supplier-header-back-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 42px !important;
  min-width: 170px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid #d1d5db !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.supplier-header-back-button:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
}




/* HIDE DUPLICATE RAW SUPPLIER DETAIL */

.supplier-raw-detail-duplicate-hidden {
  display: none !important;
}

/* Make the internal supplier detail more compact and simple */
.supplier-clean-detail-view {
  max-width: 980px !important;
  margin: 0 auto !important;
}

.supplier-clean-header {
  padding-bottom: 12px !important;
  margin-bottom: 4px !important;
}

.supplier-clean-title {
  font-size: 24px !important;
}

.supplier-clean-grid {
  gap: 12px !important;
}

.supplier-clean-card,
.supplier-clean-advanced {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
  padding: 14px !important;
  box-shadow: none !important;
}

.supplier-clean-card-title {
  font-size: 14px !important;
  margin-bottom: 10px !important;
}

.supplier-clean-info-grid {
  gap: 8px !important;
}

.supplier-clean-info-label {
  font-size: 10px !important;
  color: #6b7280 !important;
}

.supplier-clean-info-value {
  font-size: 13px !important;
  color: #111827 !important;
}

/* Uniform action buttons */
.supplier-clean-action-button {
  width: 170px !important;
  min-width: 170px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin: 0 !important;
}

.supplier-clean-actions {
  gap: 8px !important;
}

@media (max-width: 760px) {
  .supplier-clean-action-button {
    width: 100% !important;
    min-width: 100% !important;
  }
}




/* REPLACE RAW SUPPLIER DETAIL WITH CLEAN VIEW */

.supplier-final-raw-hidden {
  display: none !important;
}

.supplier-final-detail-view {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.supplier-final-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.supplier-final-kicker {
  color: #16a34a;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.supplier-final-title {
  margin-top: 2px;
  color: #111827;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 900;
}

.supplier-final-slug {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.supplier-final-status {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.supplier-final-status.online {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.supplier-final-status.offline {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

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

.supplier-final-card,
.supplier-final-more-tools {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
}

.supplier-final-card-title,
.supplier-final-more-tools summary {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.supplier-final-more-tools summary {
  cursor: pointer;
}

.supplier-final-info-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.supplier-final-info-label {
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.supplier-final-info-value {
  margin-top: 2px;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.supplier-final-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-final-action-button {
  width: 170px !important;
  min-width: 170px !important;
  height: 40px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  margin: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.1 !important;
}

.supplier-final-note {
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #075985;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.supplier-final-empty {
  color: #6b7280;
  font-size: 13px;
}

.supplier-final-more-tools.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .supplier-final-grid,
  .supplier-final-info-grid {
    grid-template-columns: 1fr;
  }

  .supplier-final-header {
    flex-direction: column;
  }

  .supplier-final-action-button {
    width: 100% !important;
    min-width: 100% !important;
  }
}




/* HIDE RAW SUPPLIER DETAIL BY TEXT WHEN CLEAN VIEW EXISTS */

.supplier-raw-text-duplicate-hidden {
  display: none !important;
}




/* EPCOM CATALOG CLEAN BRAND LIST */

.epcom-brands-table-hidden {
  display: none !important;
}

.epcom-brand-list-clean {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.epcom-brand-item-clean {
  width: 100%;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}

.epcom-brand-item-clean:hover {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}

.epcom-brand-item-clean.active {
  border-color: #16a34a;
  background: #dcfce7;
  color: #166534;
}

/* Clean catalog layout spacing */
.epcom-catalog-panel h2,
.epcom-catalog-panel h3 {
  margin-bottom: 8px !important;
}

.epcom-catalog-toolbar input[type="text"] {
  max-width: 260px !important;
  height: 38px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}

.epcom-catalog-toolbar button {
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.epcom-catalog-toolbar button[type="button"],
.epcom-catalog-toolbar button {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}




/* EPCOM CATALOG LAYOUT - NARROWER BRANDS COLUMN */

.epcom-catalog-layout {
  display: grid !important;
  grid-template-columns: 300px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

.epcom-catalog-panel:first-child {
  max-width: 300px !important;
}

.epcom-catalog-panel:last-child {
  min-width: 0 !important;
}

.epcom-brand-list-clean {
  gap: 6px !important;
}

.epcom-brand-item-clean {
  padding: 10px 12px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}

/* Make products table use space better */
.epcom-catalog-panel table {
  width: 100% !important;
  table-layout: auto !important;
}

.epcom-catalog-panel th,
.epcom-catalog-panel td {
  vertical-align: top !important;
}

@media (max-width: 1100px) {
  .epcom-catalog-layout {
    grid-template-columns: 260px minmax(0, 1fr) !important;
  }

  .epcom-catalog-panel:first-child {
    max-width: 260px !important;
  }
}

@media (max-width: 900px) {
  .epcom-catalog-layout {
    grid-template-columns: 1fr !important;
  }

  .epcom-catalog-panel:first-child {
    max-width: 100% !important;
  }
}


/* SUPPLIER CARDS COMPACT + LOGOS */

.supplier-card-compact,
.supplier-card.supplier-card-compact,
.supplier-minimal-card.supplier-card-compact,
.supplier-card-clean.supplier-card-compact {
  padding: 16px !important;
  border-radius: 20px !important;
  min-height: 0 !important;
}

.supplier-card-compact .supplier-logo-badge {
  width: 82px !important;
  height: 44px !important;
  min-width: 82px !important;
  min-height: 44px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 6px !important;
  box-sizing: border-box !important;
}

.supplier-logo-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.supplier-logo-image-inline {
  width: 88px !important;
  height: 30px !important;
  object-fit: contain !important;
  display: block !important;
  margin-bottom: 8px !important;
}

.supplier-card-compact h2,
.supplier-card-compact h3,
.supplier-card-compact h4 {
  font-size: 19px !important;
  line-height: 1.15 !important;
  margin: 0 0 4px 0 !important;
}

.supplier-card-compact .supplier-name,
.supplier-card-compact .supplier-title {
  font-size: 19px !important;
  line-height: 1.15 !important;
}

.supplier-card-compact small,
.supplier-card-compact .supplier-slug,
.supplier-card-compact .supplier-subtitle {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.supplier-card-compact .status-badge,
.supplier-card-compact .supplier-status,
.supplier-card-compact [class*="badge"] {
  font-size: 11px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
}

.supplier-card-compact button,
.supplier-card-compact .btn,
.supplier-card-compact a.btn {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 18px !important;
  font-size: 12px !important;
  border-radius: 14px !important;
}

.supplier-card-compact .btn + .btn,
.supplier-card-compact button + button,
.supplier-card-compact a + a {
  margin-left: 8px !important;
}

.supplier-card-compact [class*="actions"],
.supplier-card-compact .supplier-actions {
  margin-top: 12px !important;
  gap: 8px !important;
}

.supplier-card-compact [class*="header"],
.supplier-card-compact .supplier-header {
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.supplier-card-compact p,
.supplier-card-compact .supplier-description {
  margin: 0 !important;
}

/* slightly tighten grid spacing */
.suppliers-grid,
.suppliers-list,
.suppliers-cards-grid {
  gap: 16px !important;
}


/* SUPPLIERS MINI CLEAN CARDS */

.suppliers-grid,
.suppliers-list,
.suppliers-cards-grid {
  gap: 14px !important;
}

.supplier-card,
.supplier-minimal-card,
.supplier-card-clean,
.supplier-card-compact {
  padding: 14px !important;
  border-radius: 18px !important;
  min-height: 150px !important;
  max-width: 420px !important;
}

.supplier-card-compact {
  padding: 14px !important;
  min-height: 150px !important;
}

.supplier-card-compact [class*="header"],
.supplier-card-compact .supplier-header {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.supplier-card-compact .supplier-logo-badge {
  width: 96px !important;
  height: 34px !important;
  min-width: 96px !important;
  min-height: 34px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.supplier-card-compact .supplier-logo-image,
.supplier-card-compact .supplier-logo-image-inline {
  width: 96px !important;
  height: 34px !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.supplier-card-compact h2,
.supplier-card-compact h3,
.supplier-card-compact h4,
.supplier-card-compact .supplier-name,
.supplier-card-compact .supplier-title {
  font-size: 14px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

.supplier-card-compact small,
.supplier-card-compact .supplier-slug,
.supplier-card-compact .supplier-subtitle {
  display: none !important;
}

.supplier-card-compact .status-badge,
.supplier-card-compact .supplier-status,
.supplier-card-compact [class*="badge"] {
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
}

.supplier-card-compact .supplier-actions,
.supplier-card-compact [class*="actions"] {
  margin-top: 10px !important;
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.supplier-card-compact button,
.supplier-card-compact .btn,
.supplier-card-compact a.btn {
  min-width: 118px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: none !important;
}

.supplier-card-compact .supplier-btn-configure {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.supplier-card-compact .supplier-btn-configure:hover {
  background: #bfdbfe !important;
  color: #1e40af !important;
}

.supplier-card-compact .supplier-btn-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
}

.supplier-card-compact .supplier-btn-catalog:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

/* make cards more compact inside suppliers page */
@media (min-width: 1100px) {
  .suppliers-grid,
  .suppliers-list,
  .suppliers-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 360px)) !important;
  }
}


/* SUPPLIERS FINAL ULTRA COMPACT */

.suppliers-grid,
.suppliers-list,
.suppliers-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(250px, 270px)) !important;
  gap: 12px !important;
  align-items: start !important;
  justify-content: start !important;
}

.supplier-card,
.supplier-minimal-card,
.supplier-card-clean,
.supplier-card-compact,
.supplier-card-ultra {
  width: 270px !important;
  min-width: 270px !important;
  max-width: 270px !important;
  min-height: 128px !important;
  max-height: 128px !important;
  padding: 12px !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* HEADER */
.supplier-card-ultra .supplier-header,
.supplier-card-compact .supplier-header,
.supplier-card .supplier-header,
.supplier-minimal-card .supplier-header {
  display: grid !important;
  grid-template-columns: 78px 1fr auto !important;
  align-items: center !important;
  column-gap: 10px !important;
  row-gap: 0 !important;
  margin-bottom: 10px !important;
}

/* LOGO AREA */
.supplier-card-ultra .supplier-logo-badge,
.supplier-card-compact .supplier-logo-badge {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.supplier-card-ultra .supplier-logo-image,
.supplier-card-compact .supplier-logo-image,
.supplier-card-ultra .supplier-logo-image-inline,
.supplier-card-compact .supplier-logo-image-inline {
  width: 78px !important;
  max-width: 78px !important;
  height: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* special width for streakwave so it does not break */
.supplier-card-ultra[data-supplier-id="streakwave"] .supplier-logo-badge,
.supplier-card-ultra[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-card-ultra[data-supplier-id="streakwave"] .supplier-logo-image-inline {
  width: 92px !important;
  max-width: 92px !important;
  height: 24px !important;
  max-height: 24px !important;
}

/* NAME */
.supplier-card-ultra h2,
.supplier-card-ultra h3,
.supplier-card-ultra h4,
.supplier-card-ultra .supplier-name,
.supplier-card-ultra .supplier-title,
.supplier-card-compact h2,
.supplier-card-compact h3,
.supplier-card-compact h4,
.supplier-card-compact .supplier-name,
.supplier-card-compact .supplier-title {
  font-size: 12px !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* HIDE DUPLICATED SECOND NAME / SLUG */
.supplier-card-ultra small,
.supplier-card-ultra .supplier-slug,
.supplier-card-ultra .supplier-subtitle,
.supplier-card-ultra p,
.supplier-card-compact small,
.supplier-card-compact .supplier-slug,
.supplier-card-compact .supplier-subtitle,
.supplier-card-compact p {
  display: none !important;
}

/* STATUS */
.supplier-card-ultra .status-badge,
.supplier-card-ultra .supplier-status,
.supplier-card-ultra [class*="badge"],
.supplier-card-compact .status-badge,
.supplier-card-compact .supplier-status,
.supplier-card-compact [class*="badge"] {
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  max-width: 90px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  justify-self: end !important;
  align-self: center !important;
  margin: 0 !important;
}

/* ACTIONS */
.supplier-card-ultra .supplier-actions,
.supplier-card-ultra [class*="actions"],
.supplier-card-compact .supplier-actions,
.supplier-card-compact [class*="actions"] {
  display: flex !important;
  gap: 8px !important;
  margin-top: 8px !important;
  flex-wrap: nowrap !important;
}

/* BUTTONS */
.supplier-card-ultra button,
.supplier-card-ultra .btn,
.supplier-card-ultra a.btn,
.supplier-card-compact button,
.supplier-card-compact .btn,
.supplier-card-compact a.btn {
  width: 106px !important;
  min-width: 106px !important;
  max-width: 106px !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: none !important;
}

.supplier-card-ultra .supplier-btn-configure,
.supplier-card-compact .supplier-btn-configure {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.supplier-card-ultra .supplier-btn-configure:hover,
.supplier-card-compact .supplier-btn-configure:hover {
  background: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.supplier-card-ultra .supplier-btn-catalog,
.supplier-card-compact .supplier-btn-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
}

.supplier-card-ultra .supplier-btn-catalog:hover,
.supplier-card-compact .supplier-btn-catalog:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

/* MOBILE */
@media (max-width: 900px) {
  .suppliers-grid,
  .suppliers-list,
  .suppliers-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  }

  .supplier-card,
  .supplier-minimal-card,
  .supplier-card-clean,
  .supplier-card-compact,
  .supplier-card-ultra {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* SUPPLIERS MICRO CARDS */

.suppliers-grid,
.suppliers-list,
.suppliers-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 220px)) !important;
  gap: 10px !important;
  align-items: start !important;
  justify-content: start !important;
}

.supplier-card,
.supplier-minimal-card,
.supplier-card-clean,
.supplier-card-compact,
.supplier-card-ultra {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  padding: 10px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* header */
.supplier-card .supplier-header,
.supplier-minimal-card .supplier-header,
.supplier-card-clean .supplier-header,
.supplier-card-compact .supplier-header,
.supplier-card-ultra .supplier-header {
  display: grid !important;
  grid-template-columns: 78px 1fr auto !important;
  align-items: center !important;
  column-gap: 6px !important;
  margin-bottom: 8px !important;
}

/* logo */
.supplier-card .supplier-logo-badge,
.supplier-minimal-card .supplier-logo-badge,
.supplier-card-clean .supplier-logo-badge,
.supplier-card-compact .supplier-logo-badge,
.supplier-card-ultra .supplier-logo-badge {
  width: 78px !important;
  min-width: 78px !important;
  max-width: 78px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.supplier-card .supplier-logo-image,
.supplier-card .supplier-logo-image-inline,
.supplier-minimal-card .supplier-logo-image,
.supplier-minimal-card .supplier-logo-image-inline,
.supplier-card-clean .supplier-logo-image,
.supplier-card-clean .supplier-logo-image-inline,
.supplier-card-compact .supplier-logo-image,
.supplier-card-compact .supplier-logo-image-inline,
.supplier-card-ultra .supplier-logo-image,
.supplier-card-ultra .supplier-logo-image-inline {
  width: 78px !important;
  max-width: 78px !important;
  height: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* streakwave a little wider */
.supplier-card[data-supplier-id="streakwave"] .supplier-logo-badge,
.supplier-card-compact[data-supplier-id="streakwave"] .supplier-logo-badge,
.supplier-card-ultra[data-supplier-id="streakwave"] .supplier-logo-badge,
.supplier-card[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-card-compact[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-card-ultra[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-card[data-supplier-id="streakwave"] .supplier-logo-image-inline,
.supplier-card-compact[data-supplier-id="streakwave"] .supplier-logo-image-inline,
.supplier-card-ultra[data-supplier-id="streakwave"] .supplier-logo-image-inline {
  width: 90px !important;
  max-width: 90px !important;
  height: 22px !important;
  max-height: 22px !important;
}

/* hide supplier names / duplicate text */
.supplier-card .supplier-name,
.supplier-card .supplier-title,
.supplier-card .supplier-slug,
.supplier-card .supplier-subtitle,
.supplier-card h2,
.supplier-card h3,
.supplier-card h4,
.supplier-card p,
.supplier-card small,
.supplier-minimal-card .supplier-name,
.supplier-minimal-card .supplier-title,
.supplier-minimal-card .supplier-slug,
.supplier-minimal-card .supplier-subtitle,
.supplier-minimal-card h2,
.supplier-minimal-card h3,
.supplier-minimal-card h4,
.supplier-minimal-card p,
.supplier-minimal-card small,
.supplier-card-clean .supplier-name,
.supplier-card-clean .supplier-title,
.supplier-card-clean .supplier-slug,
.supplier-card-clean .supplier-subtitle,
.supplier-card-clean h2,
.supplier-card-clean h3,
.supplier-card-clean h4,
.supplier-card-clean p,
.supplier-card-clean small,
.supplier-card-compact .supplier-name,
.supplier-card-compact .supplier-title,
.supplier-card-compact .supplier-slug,
.supplier-card-compact .supplier-subtitle,
.supplier-card-compact h2,
.supplier-card-compact h3,
.supplier-card-compact h4,
.supplier-card-compact p,
.supplier-card-compact small,
.supplier-card-ultra .supplier-name,
.supplier-card-ultra .supplier-title,
.supplier-card-ultra .supplier-slug,
.supplier-card-ultra .supplier-subtitle,
.supplier-card-ultra h2,
.supplier-card-ultra h3,
.supplier-card-ultra h4,
.supplier-card-ultra p,
.supplier-card-ultra small {
  display: none !important;
}

/* smaller online / offline */
.supplier-card .status-badge,
.supplier-card .supplier-status,
.supplier-card [class*="badge"],
.supplier-minimal-card .status-badge,
.supplier-minimal-card .supplier-status,
.supplier-minimal-card [class*="badge"],
.supplier-card-clean .status-badge,
.supplier-card-clean .supplier-status,
.supplier-card-clean [class*="badge"],
.supplier-card-compact .status-badge,
.supplier-card-compact .supplier-status,
.supplier-card-compact [class*="badge"],
.supplier-card-ultra .status-badge,
.supplier-card-ultra .supplier-status,
.supplier-card-ultra [class*="badge"] {
  font-size: 8px !important;
  font-weight: 800 !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  max-width: 64px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  justify-self: end !important;
  align-self: center !important;
  margin: 0 !important;
}

/* actions */
.supplier-card .supplier-actions,
.supplier-card [class*="actions"],
.supplier-minimal-card .supplier-actions,
.supplier-minimal-card [class*="actions"],
.supplier-card-clean .supplier-actions,
.supplier-card-clean [class*="actions"],
.supplier-card-compact .supplier-actions,
.supplier-card-compact [class*="actions"],
.supplier-card-ultra .supplier-actions,
.supplier-card-ultra [class*="actions"] {
  display: flex !important;
  gap: 6px !important;
  margin-top: 8px !important;
  flex-wrap: nowrap !important;
}

/* smaller buttons */
.supplier-card button,
.supplier-card .btn,
.supplier-card a.btn,
.supplier-minimal-card button,
.supplier-minimal-card .btn,
.supplier-minimal-card a.btn,
.supplier-card-clean button,
.supplier-card-clean .btn,
.supplier-card-clean a.btn,
.supplier-card-compact button,
.supplier-card-compact .btn,
.supplier-card-compact a.btn,
.supplier-card-ultra button,
.supplier-card-ultra .btn,
.supplier-card-ultra a.btn {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border-radius: 11px !important;
  border: none !important;
  box-shadow: none !important;
}

.supplier-btn-configure {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.supplier-btn-configure:hover {
  background: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.supplier-btn-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
}

.supplier-btn-catalog:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .suppliers-grid,
  .suppliers-list,
  .suppliers-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  }

  .supplier-card,
  .supplier-minimal-card,
  .supplier-card-clean,
  .supplier-card-compact,
  .supplier-card-ultra {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* SUPPLIER OVERVIEW HIDE NAMES FINAL */

.supplier-overview-name-hidden {
  display: none !important;
}

/* force real compact overview cards */
.supplier-overview-micro-card {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  height: 98px !important;
  min-height: 98px !important;
  max-height: 98px !important;
  padding: 9px !important;
  border-radius: 15px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* overview grid more compact */
.suppliers-grid,
.suppliers-list,
.suppliers-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 210px)) !important;
  gap: 10px !important;
  justify-content: start !important;
  align-items: start !important;
}

/* logo only, no box */
.supplier-overview-micro-card .supplier-logo-badge {
  width: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.supplier-overview-micro-card .supplier-logo-image,
.supplier-overview-micro-card .supplier-logo-image-inline {
  width: 76px !important;
  max-width: 76px !important;
  height: 24px !important;
  max-height: 24px !important;
  object-fit: contain !important;
}

/* smaller online/offline */
.supplier-overview-micro-card .status-badge,
.supplier-overview-micro-card .supplier-status,
.supplier-overview-micro-card [class*="badge"] {
  font-size: 8px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  padding: 4px 7px !important;
  border-radius: 999px !important;
  max-width: 62px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* compact buttons */
.supplier-overview-micro-card button,
.supplier-overview-micro-card .btn,
.supplier-overview-micro-card a.btn {
  width: 86px !important;
  min-width: 86px !important;
  max-width: 86px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  padding: 0 8px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: none !important;
}

.supplier-overview-configure-btn {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.supplier-overview-catalog-btn {
  background: #22c55e !important;
  color: #ffffff !important;
}

/* keep buttons in one line */
.supplier-overview-micro-card .supplier-actions,
.supplier-overview-micro-card [class*="actions"] {
  display: flex !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
  margin-top: 8px !important;
}

/* responsive */
@media (max-width: 900px) {
  .suppliers-grid,
  .suppliers-list,
  .suppliers-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  }

  .supplier-overview-micro-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* SUPPLIER OVERVIEW CLEAN ALIGN */

.suppliers-grid,
.suppliers-list,
.suppliers-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 220px)) !important;
  gap: 14px !important;
  align-items: start !important;
  justify-content: start !important;
}

.supplier-overview-micro-card,
.supplier-card,
.supplier-card-compact,
.supplier-card-ultra,
.supplier-minimal-card,
.supplier-card-clean {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 128px !important;
  min-height: 128px !important;
  max-height: 128px !important;
  padding: 14px !important;
  border-radius: 18px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* Top row */
.supplier-overview-micro-card .supplier-header,
.supplier-card .supplier-header,
.supplier-card-compact .supplier-header,
.supplier-card-ultra .supplier-header,
.supplier-minimal-card .supplier-header,
.supplier-card-clean .supplier-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Left section */
.supplier-overview-micro-card .supplier-logo-badge,
.supplier-card .supplier-logo-badge,
.supplier-card-compact .supplier-logo-badge,
.supplier-card-ultra .supplier-logo-badge,
.supplier-minimal-card .supplier-logo-badge,
.supplier-card-clean .supplier-logo-badge {
  width: 84px !important;
  min-width: 84px !important;
  max-width: 84px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.supplier-overview-micro-card .supplier-logo-image,
.supplier-overview-micro-card .supplier-logo-image-inline,
.supplier-card .supplier-logo-image,
.supplier-card .supplier-logo-image-inline,
.supplier-card-compact .supplier-logo-image,
.supplier-card-compact .supplier-logo-image-inline,
.supplier-card-ultra .supplier-logo-image,
.supplier-card-ultra .supplier-logo-image-inline,
.supplier-minimal-card .supplier-logo-image,
.supplier-minimal-card .supplier-logo-image-inline,
.supplier-card-clean .supplier-logo-image,
.supplier-card-clean .supplier-logo-image-inline {
  width: 84px !important;
  max-width: 84px !important;
  height: 26px !important;
  max-height: 26px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Special fix for Streakwave */
.supplier-overview-micro-card[data-supplier-id="streakwave"] .supplier-logo-badge,
.supplier-overview-micro-card[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-overview-micro-card[data-supplier-id="streakwave"] .supplier-logo-image-inline,
.supplier-card[data-supplier-id="streakwave"] .supplier-logo-badge,
.supplier-card[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-card[data-supplier-id="streakwave"] .supplier-logo-image-inline {
  width: 94px !important;
  max-width: 94px !important;
  height: 24px !important;
  max-height: 24px !important;
}

/* Hide all supplier names/text in overview */
.supplier-overview-name-hidden {
  display: none !important;
}

/* Badge smaller */
.supplier-overview-micro-card .status-badge,
.supplier-overview-micro-card .supplier-status,
.supplier-overview-micro-card [class*="badge"],
.supplier-card .status-badge,
.supplier-card .supplier-status,
.supplier-card [class*="badge"],
.supplier-card-compact .status-badge,
.supplier-card-compact .supplier-status,
.supplier-card-compact [class*="badge"] {
  font-size: 7px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  padding: 3px 6px !important;
  border-radius: 999px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

/* Buttons row */
.supplier-overview-micro-card .supplier-actions,
.supplier-overview-micro-card [class*="actions"],
.supplier-card .supplier-actions,
.supplier-card [class*="actions"],
.supplier-card-compact .supplier-actions,
.supplier-card-compact [class*="actions"] {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}

/* Buttons */
.supplier-overview-micro-card button,
.supplier-overview-micro-card .btn,
.supplier-overview-micro-card a.btn,
.supplier-card button,
.supplier-card .btn,
.supplier-card a.btn,
.supplier-card-compact button,
.supplier-card-compact .btn,
.supplier-card-compact a.btn {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

.supplier-overview-configure-btn,
.supplier-btn-configure {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.supplier-overview-configure-btn:hover,
.supplier-btn-configure:hover {
  background: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.supplier-overview-catalog-btn,
.supplier-btn-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
}

.supplier-overview-catalog-btn:hover,
.supplier-btn-catalog:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .suppliers-grid,
  .suppliers-list,
  .suppliers-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  }

  .supplier-overview-micro-card,
  .supplier-card,
  .supplier-card-compact,
  .supplier-card-ultra,
  .supplier-minimal-card,
  .supplier-card-clean {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* SUPPLIERS OVERVIEW CLEAN FINAL */

.supplier-overview-hidden-text {
  display: none !important;
}

.suppliers-grid,
.suppliers-list,
.suppliers-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(230px, 230px)) !important;
  gap: 14px !important;
  justify-content: start !important;
  align-items: start !important;
}

.supplier-overview-clean-card {
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  height: 138px !important;
  min-height: 138px !important;
  max-height: 138px !important;
  padding: 14px !important;
  border-radius: 22px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

/* header */
.supplier-overview-clean-card .supplier-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* generic logo wrapper */
.supplier-overview-clean-card .supplier-logo-badge {
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

/* image logos */
.supplier-overview-clean-card[data-supplier-id="epcom"] .supplier-logo-badge,
.supplier-overview-clean-card[data-supplier-id="streakwave"] .supplier-logo-badge {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
}

.supplier-overview-clean-card[data-supplier-id="epcom"] .supplier-logo-image,
.supplier-overview-clean-card[data-supplier-id="epcom"] .supplier-logo-image-inline,
.supplier-overview-clean-card[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-overview-clean-card[data-supplier-id="streakwave"] .supplier-logo-image-inline {
  width: 92px !important;
  max-width: 92px !important;
  height: 28px !important;
  max-height: 28px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* text logo placeholders */
.supplier-overview-clean-card[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-overview-clean-card[data-supplier-id="double-radius"] .supplier-logo-badge {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  border-radius: 18px !important;
  background: #0b1736 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* hide titles/names/slugs in overview */
.supplier-overview-clean-card .supplier-name,
.supplier-overview-clean-card .supplier-title,
.supplier-overview-clean-card .supplier-slug,
.supplier-overview-clean-card .supplier-subtitle,
.supplier-overview-clean-card h2,
.supplier-overview-clean-card h3,
.supplier-overview-clean-card h4,
.supplier-overview-clean-card p,
.supplier-overview-clean-card small {
  display: none !important;
}

/* small status badge */
.supplier-overview-clean-card .status-badge,
.supplier-overview-clean-card .supplier-status,
.supplier-overview-clean-card [class*="badge"] {
  min-width: 56px !important;
  max-width: 56px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

/* actions row */
.supplier-overview-clean-card .supplier-actions,
.supplier-overview-clean-card [class*="actions"] {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
  margin-top: auto !important;
}

/* buttons */
.supplier-overview-clean-card button,
.supplier-overview-clean-card .btn,
.supplier-overview-clean-card a.btn {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.supplier-overview-configure-btn {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.supplier-overview-configure-btn:hover {
  background: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.supplier-overview-catalog-btn {
  background: #22c55e !important;
  color: #ffffff !important;
}

.supplier-overview-catalog-btn:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .suppliers-grid,
  .suppliers-list,
  .suppliers-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) !important;
  }

  .supplier-overview-clean-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* SUPPLIERS OVERVIEW LOGO + BADGE FIX */

.supplier-overview-clean-card,
.supplier-overview-micro-card,
.supplier-card,
.supplier-card-clean,
.supplier-card-compact,
.supplier-card-ultra,
.supplier-minimal-card {
  overflow: hidden !important;
}

/* Header alignment */
.supplier-overview-clean-card .supplier-header,
.supplier-overview-micro-card .supplier-header,
.supplier-card .supplier-header,
.supplier-card-clean .supplier-header,
.supplier-card-compact .supplier-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Generic logo container */
.supplier-overview-clean-card .supplier-logo-badge,
.supplier-overview-micro-card .supplier-logo-badge,
.supplier-card .supplier-logo-badge,
.supplier-card-clean .supplier-logo-badge,
.supplier-card-compact .supplier-logo-badge {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

/* EPCOM / Streakwave logo area bigger */
.supplier-overview-clean-card[data-supplier-id="epcom"] .supplier-logo-badge,
.supplier-overview-clean-card[data-supplier-id="streakwave"] .supplier-logo-badge,
.supplier-overview-micro-card[data-supplier-id="epcom"] .supplier-logo-badge,
.supplier-overview-micro-card[data-supplier-id="streakwave"] .supplier-logo-badge,
.supplier-card[data-supplier-id="epcom"] .supplier-logo-badge,
.supplier-card[data-supplier-id="streakwave"] .supplier-logo-badge {
  width: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
}

/* EPCOM / Streakwave logo image rendering */
.supplier-overview-clean-card[data-supplier-id="epcom"] .supplier-logo-image,
.supplier-overview-clean-card[data-supplier-id="epcom"] .supplier-logo-image-inline,
.supplier-overview-clean-card[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-overview-clean-card[data-supplier-id="streakwave"] .supplier-logo-image-inline,
.supplier-overview-micro-card[data-supplier-id="epcom"] .supplier-logo-image,
.supplier-overview-micro-card[data-supplier-id="epcom"] .supplier-logo-image-inline,
.supplier-overview-micro-card[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-overview-micro-card[data-supplier-id="streakwave"] .supplier-logo-image-inline,
.supplier-card[data-supplier-id="epcom"] .supplier-logo-image,
.supplier-card[data-supplier-id="epcom"] .supplier-logo-image-inline,
.supplier-card[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-card[data-supplier-id="streakwave"] .supplier-logo-image-inline {
  width: 112px !important;
  max-width: 112px !important;
  height: 34px !important;
  max-height: 34px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ISP / DoubleRadius placeholder logos a bit cleaner */
.supplier-overview-clean-card[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-overview-clean-card[data-supplier-id="double-radius"] .supplier-logo-badge,
.supplier-overview-micro-card[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-overview-micro-card[data-supplier-id="double-radius"] .supplier-logo-badge,
.supplier-card[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-card[data-supplier-id="double-radius"] .supplier-logo-badge {
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  border-radius: 18px !important;
  background: #0b1736 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* ONLINE / OFFLINE much smaller */
.supplier-overview-clean-card .status-badge,
.supplier-overview-clean-card .supplier-status,
.supplier-overview-clean-card [class*="badge"],
.supplier-overview-micro-card .status-badge,
.supplier-overview-micro-card .supplier-status,
.supplier-overview-micro-card [class*="badge"],
.supplier-card .status-badge,
.supplier-card .supplier-status,
.supplier-card [class*="badge"] {
  min-width: 48px !important;
  max-width: 48px !important;
  width: 48px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  padding: 0 4px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 6px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}

/* Slightly tighter buttons row so everything sits better */
.supplier-overview-clean-card .supplier-actions,
.supplier-overview-micro-card .supplier-actions,
.supplier-card .supplier-actions {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: auto !important;
}


/* SUPPLIERS OVERVIEW REBUILD FINAL */

.suppliers-overview-grid-clean {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(270px, 270px)) !important;
  gap: 18px !important;
  justify-content: start !important;
  align-items: start !important;
  width: 100% !important;
  max-width: 1164px !important;
  margin: 0 auto !important;
}

.supplier-overview-rebuilt {
  width: 270px !important;
  min-width: 270px !important;
  max-width: 270px !important;
  height: 170px !important;
  min-height: 170px !important;
  max-height: 170px !important;
  padding: 18px !important;
  border-radius: 24px !important;
  border: 1px solid #d9dee7 !important;
  background: #ffffff !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: hidden !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

.supplier-overview-rebuilt .supplier-overview-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
}

.supplier-overview-rebuilt .supplier-overview-logo-wrap {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 56px !important;
}

.supplier-overview-rebuilt .supplier-overview-logo-image-wrap {
  width: 120px !important;
  height: 42px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow: hidden !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.supplier-overview-rebuilt .supplier-overview-logo-image-wrap img {
  width: 120px !important;
  height: 42px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.supplier-overview-rebuilt .supplier-overview-logo-placeholder {
  width: 60px !important;
  height: 60px !important;
  border-radius: 18px !important;
  background: #0b1736 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.supplier-overview-rebuilt .supplier-overview-status {
  flex: 0 0 auto !important;
  min-width: 70px !important;
  max-width: 70px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

.supplier-overview-rebuilt .supplier-overview-status.online {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
}

.supplier-overview-rebuilt .supplier-overview-status.offline {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #f5b5b5 !important;
}

.supplier-overview-rebuilt .supplier-overview-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: auto !important;
}

.supplier-overview-rebuilt .supplier-overview-actions button,
.supplier-overview-rebuilt .supplier-overview-actions a {
  width: 108px !important;
  min-width: 108px !important;
  max-width: 108px !important;
  height: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
  border-radius: 16px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
}

.supplier-overview-rebuilt .supplier-overview-configure {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.supplier-overview-rebuilt .supplier-overview-configure:hover {
  background: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.supplier-overview-rebuilt .supplier-overview-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
}

.supplier-overview-rebuilt .supplier-overview-catalog:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

@media (max-width: 1200px) {
  .suppliers-overview-grid-clean {
    grid-template-columns: repeat(auto-fit, minmax(270px, 270px)) !important;
  }
}

@media (max-width: 768px) {
  .suppliers-overview-grid-clean {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }

  .supplier-overview-rebuilt {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* SUPPLIERS OVERVIEW SAFE FINAL DESIGN */

.suppliers-safe-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 260px)) !important;
  gap: 16px !important;
  justify-content: start !important;
  align-items: start !important;
}

.supplier-safe-card {
  position: relative !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  padding: 16px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid #dfe3ea !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

/* Hide supplier names/slugs, keep only logo/status/buttons */
.supplier-safe-hide-name,
.supplier-safe-card .supplier-name,
.supplier-safe-card .supplier-title,
.supplier-safe-card .supplier-slug,
.supplier-safe-card .supplier-subtitle,
.supplier-safe-card h2,
.supplier-safe-card h3,
.supplier-safe-card h4,
.supplier-safe-card p,
.supplier-safe-card small {
  display: none !important;
}

/* Logo position: same left margin as Configure button */
.supplier-safe-card .supplier-logo-badge {
  position: absolute !important;
  top: 24px !important;
  left: 18px !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.supplier-safe-card .supplier-logo-image,
.supplier-safe-card .supplier-logo-image-inline {
  width: 118px !important;
  max-width: 118px !important;
  height: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}

/* Streakwave needs a wider visual logo area */
.supplier-safe-card[data-supplier-id="streakwave"] .supplier-logo-badge,
.supplier-safe-card[data-supplier-id="streakwave"] .supplier-logo-image,
.supplier-safe-card[data-supplier-id="streakwave"] .supplier-logo-image-inline {
  width: 126px !important;
  max-width: 126px !important;
  height: 34px !important;
  max-height: 34px !important;
}

/* ISP / DoubleRadius placeholders */
.supplier-safe-card[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-safe-card[data-supplier-id="double-radius"] .supplier-logo-badge {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  border-radius: 17px !important;
  background: #0b1736 !important;
  color: #ffffff !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Reduce ONLINE/OFFLINE by about 50% */
.supplier-safe-card .status-badge,
.supplier-safe-card .supplier-status,
.supplier-safe-card [class*="badge"] {
  position: absolute !important;
  top: 26px !important;
  right: 18px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  padding: 0 3px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 6px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  margin: 0 !important;
}

/* Buttons row perfectly aligned */
.supplier-safe-card .supplier-actions,
.supplier-safe-card [class*="actions"] {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}

.supplier-safe-card button,
.supplier-safe-card .btn,
.supplier-safe-card a.btn {
  width: 104px !important;
  min-width: 104px !important;
  max-width: 104px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 10px !important;
  border-radius: 15px !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

.supplier-safe-configure {
  background: #dbeafe !important;
  color: #2563eb !important;
}

.supplier-safe-configure:hover {
  background: #bfdbfe !important;
  color: #1d4ed8 !important;
}

.supplier-safe-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
}

.supplier-safe-catalog:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .suppliers-safe-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }

  .supplier-safe-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}



/* SUPPLIER OVERVIEW BUTTONS FINAL FIX */

.supplier-safe-card .supplier-actions,
.supplier-safe-card [class*="actions"] {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  height: 36px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Reset original button styles inside supplier cards */
.supplier-safe-card .supplier-actions button,
.supplier-safe-card .supplier-actions a,
.supplier-safe-card [class*="actions"] button,
.supplier-safe-card [class*="actions"] a {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 10px !important;
  margin: 0 !important;

  border-radius: 12px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  cursor: pointer !important;
  box-sizing: border-box !important;
}

/* Configure button */
.supplier-safe-card .supplier-safe-configure,
.supplier-safe-card .supplier-overview-configure-btn,
.supplier-safe-card .supplier-btn-configure,
.supplier-safe-card button.supplier-safe-configure,
.supplier-safe-card a.supplier-safe-configure {
  background: #e8f1ff !important;
  color: #2563eb !important;
  border-color: #d3e4ff !important;
}

.supplier-safe-card .supplier-safe-configure:hover,
.supplier-safe-card .supplier-overview-configure-btn:hover,
.supplier-safe-card .supplier-btn-configure:hover {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

/* Catalog button */
.supplier-safe-card .supplier-safe-catalog,
.supplier-safe-card .supplier-overview-catalog-btn,
.supplier-safe-card .supplier-btn-catalog,
.supplier-safe-card button.supplier-safe-catalog,
.supplier-safe-card a.supplier-safe-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: #22c55e !important;
}

.supplier-safe-card .supplier-safe-catalog:hover,
.supplier-safe-card .supplier-overview-catalog-btn:hover,
.supplier-safe-card .supplier-btn-catalog:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

/* Make sure old button classes do not override colors */
.supplier-safe-card .btn-primary,
.supplier-safe-card .btn-secondary,
.supplier-safe-card .btn,
.supplier-safe-card button,
.supplier-safe-card a.btn {
  box-shadow: none !important;
}

/* Slightly improve card proportions around buttons */
.supplier-safe-card {
  height: 148px !important;
  min-height: 148px !important;
  max-height: 148px !important;
}

/* Reset original button styles inside supplier cards */
.supplier-safe-card .supplier-actions button,
.supplier-safe-card .supplier-actions a,
.supplier-safe-card [class*="actions"] button,
.supplier-safe-card [class*="actions"] a {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 10px !important;
  margin: 0 !important;

  border-radius: 12px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  cursor: pointer !important;
  box-sizing: border-box !important;
}

/* Configure button */
.supplier-safe-card .supplier-safe-configure,
.supplier-safe-card .supplier-overview-configure-btn,
.supplier-safe-card .supplier-btn-configure,
.supplier-safe-card button.supplier-safe-configure,
.supplier-safe-card a.supplier-safe-configure {
  background: #e8f1ff !important;
  color: #2563eb !important;
  border-color: #d3e4ff !important;
}

.supplier-safe-card .supplier-safe-configure:hover,
.supplier-safe-card .supplier-overview-configure-btn:hover,
.supplier-safe-card .supplier-btn-configure:hover {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

/* Catalog button */
.supplier-safe-card .supplier-safe-catalog,
.supplier-safe-card .supplier-overview-catalog-btn,
.supplier-safe-card .supplier-btn-catalog,
.supplier-safe-card button.supplier-safe-catalog,
.supplier-safe-card a.supplier-safe-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: #22c55e !important;
}

.supplier-safe-card .supplier-safe-catalog:hover,
.supplier-safe-card .supplier-overview-catalog-btn:hover,
.supplier-safe-card .supplier-btn-catalog:hover {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

/* Make sure old button classes do not override colors */
.supplier-safe-card .btn-primary,
.supplier-safe-card .btn-secondary,
.supplier-safe-card .btn,
.supplier-safe-card button,
.supplier-safe-card a.btn {
  box-shadow: none !important;
}

/* Slightly improve card proportions around buttons */
.supplier-safe-card {
  height: 148px !important;
  min-height: 148px !important;
  max-height: 148px !important;
}


/* =========================================================
   Products Compact Module
   Isolated styles - do not affect Suppliers
   ========================================================= */

.products-page {
  min-height: 100vh;
  background: #f7f9fc;
  color: #111827;
}

.products-compact-shell {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 36px;
}

.products-compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.products-compact-eyebrow {
  margin: 0 0 4px;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.products-compact-header h1 {
  margin: 0;
  color: #101828;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.products-compact-header p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12.5px;
}

.products-compact-actions,
.products-compact-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-compact-btn {
  height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #344054;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.products-compact-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.products-compact-btn-primary {
  background: #1f6feb;
  border-color: #1f6feb;
  color: #ffffff;
}

.products-compact-btn-secondary {
  background: #ffffff;
  border-color: #d0d5dd;
}

.products-compact-btn-light {
  background: #ffffff;
  border-color: #e4e7ec;
}

.products-compact-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.products-compact-search {
  position: relative;
  width: min(420px, 100%);
}

.products-compact-search span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 15px;
  pointer-events: none;
}

.products-compact-search input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 34px;
  border: 1px solid #d9e0ea;
  border-radius: 11px;
  background: #ffffff;
  color: #101828;
  font-size: 12.5px;
  outline: none;
}

.products-compact-search input:focus {
  border-color: #9bbcff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.08);
}

.products-catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.products-brands-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: hidden;
}

.products-panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.products-panel-title-row h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.products-panel-title-row span {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.products-brand-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: calc(100vh - 86px);
  overflow-y: auto;
  padding-right: 2px;
}

.products-brand-card {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #e4e7ec;
  border-radius: 13px;
  background: #ffffff;
  color: #111827;
  display: flex;
  align-items: center;
  text-align: left;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.025);
  transition: all 0.16s ease;
}

.products-brand-card:hover {
  border-color: #c9d4e5;
  background: #fbfcff;
}

.products-brand-card.is-active {
  background: #dcfae6;
  border-color: #101828;
  color: #167647;
  box-shadow: inset 0 0 0 1px #101828;
}

.products-results-panel {
  min-width: 0;
}

.products-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.products-results-header h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.products-results-header p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 14px;
}

.products-results-header strong {
  color: #475467;
}

.products-compact-pill {
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #175cd3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.products-table-scroll {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e7ebf0;
  border-radius: 16px;
}

.products-compact-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.products-compact-table th {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f5;
  color: #111827;
  background: #ffffff;
  text-align: left;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.products-compact-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f5;
  color: #111827;
  vertical-align: top;
  font-size: 12.5px;
  line-height: 1.18;
}

.products-compact-table tbody tr:last-child td {
  border-bottom: 0;
}

.products-compact-empty {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  color: #667085;
}

.products-empty-square {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: #f2f4f7;
  color: #98a2b3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.products-compact-empty h3 {
  margin: 6px 0 0;
  color: #101828;
  font-size: 16px;
}

.products-compact-empty p {
  max-width: 520px;
  margin: 0;
  color: #667085;
  font-size: 12.5px;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .products-catalog-layout {
    grid-template-columns: 1fr;
  }

  .products-brands-panel {
    position: static;
    max-height: none;
  }

  .products-brand-list {
    max-height: none;
  }
}

@media (max-width: 680px) {
  .products-compact-shell {
    width: min(100% - 22px, 1440px);
  }

  .products-compact-header,
  .products-compact-toolbar,
  .products-results-header {
    flex-direction: column;
    align-items: stretch;
  }

  .products-compact-actions,
  .products-compact-toolbar-right {
    width: 100%;
  }

  .products-compact-btn {
    flex: 1;
  }

  .products-results-header h2 {
    font-size: 20px;
  }
}


/* Products dashboard button - isolated */
.dashboard-products-open-btn {
  min-width: 190px;
  height: 56px;
  padding: 0 28px;
  border-radius: 12px;
  border: 0;
  background: #16a34a;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.18s ease, transform 0.18s ease;
}

.dashboard-products-open-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.dashboard-products-open-btn:active {
  transform: translateY(0);
}

/* Products PostgreSQL data UI */
.products-brand-card {
  justify-content: space-between;
  gap: 10px;
}

.products-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-brand-products {
  min-width: 26px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}

.products-brand-card.is-active .products-brand-products {
  background: #ffffff;
  color: #167647;
}

.products-product-img,
.products-product-img-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #98a2b3;
  font-size: 14px;
}

.products-compact-table td small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  line-height: 1.25;
}

.products-compact-table td strong {
  display: block;
  color: #111827;
  font-size: 12.5px;
}

/* Products stock locations */
.products-stock-locations {
  display: block;
  margin-top: 4px;
  color: #475467;
  font-size: 10.5px;
  line-height: 1.25;
  white-space: normal;
  max-width: 140px;
}

.products-stock-empty {
  color: #98a2b3;
}

/* Products unified stock */
.products-stock-total {
  display: inline-flex;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2f7;
  color: #111827;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 900;
}

/* Products stock as plain number */
.products-stock-total {
  display: inline !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
}


/* RESTORE ADD SUPPLIER BUTTON */

.supplier-add-toolbar-clean {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 22px 0 18px 0 !important;
  padding: 0 !important;
}

.supplier-add-button-clean {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  border: 1px solid #bfdbfe !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.18) !important;
  cursor: pointer !important;
}

.supplier-add-button-clean:hover {
  background: #1d4ed8 !important;
  border-color: #93c5fd !important;
}

.supplier-add-button-clean:active {
  transform: translateY(1px) !important;
}


/* FIX TEST CONNECTION + SUPPLIERS OVERVIEW LAYOUT */

/* Force overview back to horizontal grid */
.suppliers-overview-grid-fixed,
.suppliers-safe-grid,
.suppliers-grid,
.suppliers-list,
.suppliers-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 260px)) !important;
  gap: 16px !important;
  justify-content: start !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Clean supplier card */
.supplier-overview-card-fixed,
.supplier-safe-card {
  position: relative !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  padding: 16px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid #dfe3ea !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

/* Hide supplier names/slugs */
.supplier-overview-card-fixed .supplier-name,
.supplier-overview-card-fixed .supplier-title,
.supplier-overview-card-fixed .supplier-slug,
.supplier-overview-card-fixed .supplier-subtitle,
.supplier-overview-card-fixed h2,
.supplier-overview-card-fixed h3,
.supplier-overview-card-fixed h4,
.supplier-overview-card-fixed p,
.supplier-overview-card-fixed small,
.supplier-safe-hide-name {
  display: none !important;
}

/* Logo area */
.supplier-overview-card-fixed .supplier-logo-badge,
.supplier-safe-card .supplier-logo-badge {
  position: absolute !important;
  top: 24px !important;
  left: 18px !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.supplier-overview-card-fixed .supplier-logo-image,
.supplier-overview-card-fixed .supplier-logo-image-inline,
.supplier-safe-card .supplier-logo-image,
.supplier-safe-card .supplier-logo-image-inline {
  width: 118px !important;
  max-width: 118px !important;
  height: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}

/* Placeholder logos */
.supplier-overview-card-fixed[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-overview-card-fixed[data-supplier-id="double-radius"] .supplier-logo-badge,
.supplier-safe-card[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-safe-card[data-supplier-id="double-radius"] .supplier-logo-badge {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  border-radius: 17px !important;
  background: #0b1736 !important;
  color: #ffffff !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Much smaller ONLINE / OFFLINE */
.supplier-overview-card-fixed .status-badge,
.supplier-overview-card-fixed .supplier-status,
.supplier-overview-card-fixed [class*="badge"],
.supplier-safe-card .status-badge,
.supplier-safe-card .supplier-status,
.supplier-safe-card [class*="badge"] {
  position: absolute !important;
  top: 28px !important;
  right: 18px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  padding: 0 3px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 6px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  margin: 0 !important;
}

/* Buttons row */
.supplier-overview-card-fixed .supplier-actions,
.supplier-overview-card-fixed [class*="actions"],
.supplier-safe-card .supplier-actions,
.supplier-safe-card [class*="actions"] {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  height: 36px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Buttons */
.supplier-overview-card-fixed .supplier-actions button,
.supplier-overview-card-fixed .supplier-actions a,
.supplier-overview-card-fixed [class*="actions"] button,
.supplier-overview-card-fixed [class*="actions"] a,
.supplier-safe-card .supplier-actions button,
.supplier-safe-card .supplier-actions a,
.supplier-safe-card [class*="actions"] button,
.supplier-safe-card [class*="actions"] a {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.supplier-overview-btn-configure-fixed,
.supplier-safe-configure {
  background: #e8f1ff !important;
  color: #2563eb !important;
  border-color: #d3e4ff !important;
}

.supplier-overview-btn-catalog-fixed,
.supplier-safe-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: #22c55e !important;
}

.supplier-overview-btn-configure-fixed:hover,
.supplier-safe-configure:hover {
  background: #dbeafe !important;
  color: #1d4ed8 !important;
}

.supplier-overview-btn-catalog-fixed:hover,
.supplier-safe-catalog:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .suppliers-overview-grid-fixed,
  .suppliers-safe-grid,
  .suppliers-grid,
  .suppliers-list,
  .suppliers-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }

  .supplier-overview-card-fixed,
  .supplier-safe-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* HARD FIX TEST CONNECTION + SUPPLIERS GRID */

.supplier-test-result-box-clean {
  margin-top: 14px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  max-width: 720px !important;
}

.supplier-test-result-box-clean.loading {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

.supplier-test-result-box-clean.success {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
}

.supplier-test-result-box-clean.warning {
  background: #fffbeb !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

.supplier-test-result-box-clean.error {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

/* Final horizontal suppliers grid */
.supplier-cards-final-grid-host {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 260px)) !important;
  gap: 16px !important;
  justify-content: start !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Final card geometry */
.supplier-card-final-fixed,
.supplier-safe-card,
.supplier-overview-card-fixed {
  position: relative !important;
  width: 260px !important;
  min-width: 260px !important;
  max-width: 260px !important;
  height: 150px !important;
  min-height: 150px !important;
  max-height: 150px !important;
  padding: 16px !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 1px solid #dfe3ea !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

/* Hide supplier text in cards */
.supplier-card-final-fixed .supplier-name,
.supplier-card-final-fixed .supplier-title,
.supplier-card-final-fixed .supplier-slug,
.supplier-card-final-fixed .supplier-subtitle,
.supplier-card-final-fixed h2,
.supplier-card-final-fixed h3,
.supplier-card-final-fixed h4,
.supplier-card-final-fixed p,
.supplier-card-final-fixed small {
  display: none !important;
}

/* Logo */
.supplier-card-final-fixed .supplier-logo-badge,
.supplier-safe-card .supplier-logo-badge,
.supplier-overview-card-fixed .supplier-logo-badge {
  position: absolute !important;
  top: 24px !important;
  left: 18px !important;
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.supplier-card-final-fixed .supplier-logo-image,
.supplier-card-final-fixed .supplier-logo-image-inline,
.supplier-safe-card .supplier-logo-image,
.supplier-safe-card .supplier-logo-image-inline,
.supplier-overview-card-fixed .supplier-logo-image,
.supplier-overview-card-fixed .supplier-logo-image-inline {
  width: 118px !important;
  max-width: 118px !important;
  height: 38px !important;
  max-height: 38px !important;
  object-fit: contain !important;
  object-position: left center !important;
  display: block !important;
}

/* Placeholders IS / DO */
.supplier-card-final-fixed[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-card-final-fixed[data-supplier-id="double-radius"] .supplier-logo-badge,
.supplier-safe-card[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-safe-card[data-supplier-id="double-radius"] .supplier-logo-badge,
.supplier-overview-card-fixed[data-supplier-id="isp-supplies"] .supplier-logo-badge,
.supplier-overview-card-fixed[data-supplier-id="double-radius"] .supplier-logo-badge {
  width: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  border-radius: 17px !important;
  background: #0b1736 !important;
  color: #ffffff !important;
  font-size: 23px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Smaller status badge */
.supplier-card-final-fixed .status-badge,
.supplier-card-final-fixed .supplier-status,
.supplier-card-final-fixed [class*="badge"],
.supplier-safe-card .status-badge,
.supplier-safe-card .supplier-status,
.supplier-safe-card [class*="badge"],
.supplier-overview-card-fixed .status-badge,
.supplier-overview-card-fixed .supplier-status,
.supplier-overview-card-fixed [class*="badge"] {
  position: absolute !important;
  top: 28px !important;
  right: 18px !important;
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  padding: 0 3px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 6px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  margin: 0 !important;
}

/* Buttons container */
.supplier-card-final-fixed .supplier-actions,
.supplier-card-final-fixed [class*="actions"],
.supplier-safe-card .supplier-actions,
.supplier-safe-card [class*="actions"],
.supplier-overview-card-fixed .supplier-actions,
.supplier-overview-card-fixed [class*="actions"] {
  position: absolute !important;
  left: 18px !important;
  right: 18px !important;
  bottom: 18px !important;
  height: 36px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Buttons */
.supplier-card-final-fixed .supplier-actions button,
.supplier-card-final-fixed .supplier-actions a,
.supplier-card-final-fixed [class*="actions"] button,
.supplier-card-final-fixed [class*="actions"] a,
.supplier-safe-card .supplier-actions button,
.supplier-safe-card .supplier-actions a,
.supplier-safe-card [class*="actions"] button,
.supplier-safe-card [class*="actions"] a,
.supplier-overview-card-fixed .supplier-actions button,
.supplier-overview-card-fixed .supplier-actions a,
.supplier-overview-card-fixed [class*="actions"] button,
.supplier-overview-card-fixed [class*="actions"] a {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 10px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.supplier-card-final-configure,
.supplier-overview-btn-configure-fixed,
.supplier-safe-configure {
  background: #e8f1ff !important;
  color: #2563eb !important;
  border-color: #d3e4ff !important;
}

.supplier-card-final-catalog,
.supplier-overview-btn-catalog-fixed,
.supplier-safe-catalog {
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: #22c55e !important;
}

@media (max-width: 900px) {
  .supplier-cards-final-grid-host {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  }

  .supplier-card-final-fixed,
  .supplier-safe-card,
  .supplier-overview-card-fixed {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* STABLE TEST CONNECTION HANDLER */

.stable-supplier-test-result {
  display: none;
  margin: 14px 0 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  max-width: 720px !important;
  box-sizing: border-box !important;
}

.stable-supplier-test-result.loading {
  display: block !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

.stable-supplier-test-result.success {
  display: block !important;
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #86efac !important;
}

.stable-supplier-test-result.warning {
  display: block !important;
  background: #fffbeb !important;
  color: #92400e !important;
  border: 1px solid #fde68a !important;
}

.stable-supplier-test-result.error {
  display: block !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

.stable-test-connection-btn {
  cursor: pointer !important;
}

/* Dashboard marketplace cards alignment fix */
.dashboard .cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.dashboard .card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dashboard .card h3 {
  min-height: 40px;
}

.dashboard .card p {
  min-height: 90px;
  margin-bottom: 24px;
}

.dashboard .card button {
  margin-top: auto;
  min-width: 150px;
}

.dashboard .card button.btn-live {
  background: #16a34a !important;
  color: #ffffff !important;
  border: 0 !important;
}

.dashboard .card button:disabled {
  background: #9ca3af !important;
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .dashboard .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dashboard .cards {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   EBAY MODULE - ISOLATED STYLES
   ========================================================= */

.op-ebay-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #111827;
}

.op-ebay-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.op-ebay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.op-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.op-ebay-header h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.op-ebay-subtitle {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 15px;
}

.op-ebay-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.op-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.op-btn:hover {
  transform: translateY(-1px);
}

.op-btn-primary {
  color: #ffffff;
  background: #16a34a;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.18);
}

.op-btn-soft {
  color: #111827;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.op-ebay-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.op-ebay-summary-card {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.op-ebay-summary-card span {
  display: block;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.op-ebay-summary-card strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.op-ebay-panel {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.op-ebay-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.op-ebay-panel-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.op-ebay-panel-header p {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.op-ebay-search-wrap {
  flex: 0 0 310px;
}

.op-ebay-search {
  width: 100%;
  height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  padding: 0 13px;
  font-size: 13px;
  outline: none;
  background: #f9fafb;
}

.op-ebay-search:focus {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.22);
}

.op-ebay-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #edf1f6;
  border-radius: 16px;
}

.op-ebay-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.op-ebay-table th {
  text-align: left;
  padding: 13px 14px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #edf1f6;
}

.op-ebay-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.op-ebay-table tr:last-child td {
  border-bottom: 0;
}

.op-ebay-empty-row td {
  text-align: center;
  color: #6b7280;
  padding: 34px 14px;
}

@media (max-width: 900px) {
  .op-ebay-header,
  .op-ebay-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .op-ebay-actions {
    justify-content: flex-start;
  }

  .op-ebay-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-ebay-search-wrap {
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .op-ebay-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .op-ebay-summary-grid {
    grid-template-columns: 1fr;
  }

  .op-ebay-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   EBAY MODULE - CONFIG + CATALOG
   Isolated styles. Does not modify Suppliers or Products.
   ========================================================= */

.op-ebay-page {
  min-height: 100vh;
  background: #f6f8fb;
  color: #111827;
}

.op-ebay-shell {
  width: min(100% - 44px, 1440px);
  margin: 0 auto;
  padding: 34px 0 54px;
}

.op-ebay-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.op-ebay-eyebrow {
  margin: 0 0 4px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.op-ebay-topbar h1 {
  margin: 0;
  color: #0f172a;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.op-ebay-subtitle {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
}

.op-ebay-main-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.op-ebay-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.op-ebay-btn:hover {
  transform: translateY(-1px);
}

.op-ebay-btn-primary {
  background: #8fb6f5;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.2);
}

.op-ebay-btn-primary.is-active {
  background: #2563eb;
}

.op-ebay-btn-light {
  background: #ffffff;
  color: #334155;
  border: 1px solid #d9e2ef;
}

.op-ebay-btn-light.is-active {
  background: #eaf2ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.op-ebay-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.op-ebay-summary-card {
  background: #ffffff;
  border: 1px solid #e4ebf5;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.op-ebay-summary-card span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.op-ebay-summary-card strong {
  display: block;
  color: #0f172a;
  font-size: 25px;
  letter-spacing: -0.04em;
}

.op-ebay-view {
  display: none;
}

.op-ebay-view.is-visible {
  display: block;
}

.op-ebay-panel {
  background: #ffffff;
  border: 1px solid #e4ebf5;
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.op-ebay-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.op-ebay-panel-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.op-ebay-panel-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
}

.op-ebay-search-wrap {
  width: min(390px, 100%);
}

.op-ebay-search {
  width: 100%;
  height: 42px;
  border: 1px solid #d9e2ef;
  border-radius: 15px;
  padding: 0 14px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.op-ebay-search:focus {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.22);
}

.op-ebay-brand-strip-wrap {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
}

.op-ebay-brand-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
}

.op-ebay-brand-pill {
  flex: 0 0 auto;
  border: 1px solid #e4ebf5;
  border-radius: 18px;
  background: #ffffff;
  color: #0f172a;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.op-ebay-brand-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
}

.op-ebay-brand-pill.is-active {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

.op-ebay-brand-pill.is-active span {
  background: #ffffff;
  color: #15803d;
}

.op-ebay-products-panel {
  padding: 0;
  overflow: hidden;
}

.op-ebay-products-head {
  padding: 18px 18px 0;
}

.op-ebay-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d4ed8;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 850;
}

.op-ebay-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid #edf2f7;
}

.op-ebay-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
}

.op-ebay-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  background: #f8fafc;
  color: #0f172a;
  padding: 13px 16px;
  border-bottom: 1px solid #e4ebf5;
  font-size: 13px;
  font-weight: 900;
}

.op-ebay-table td {
  vertical-align: top;
  padding: 15px 16px;
  border-bottom: 1px solid #edf2f7;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.op-ebay-table tr:last-child td {
  border-bottom: 0;
}

.op-ebay-description-cell {
  min-width: 390px;
}

.op-ebay-description-cell strong {
  display: block;
  margin-bottom: 5px;
  color: #0f172a;
  font-size: 14px;
}

.op-ebay-description-cell span {
  display: -webkit-box;
  max-width: 520px;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.op-ebay-empty {
  text-align: center;
  color: #64748b !important;
  padding: 34px 16px !important;
}

.op-ebay-muted {
  color: #94a3b8;
  font-weight: 700;
}

.op-ebay-error {
  color: #b91c1c;
  font-size: 14px;
  font-weight: 750;
}

.op-ebay-status-pill {
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 850;
}

.op-ebay-status-pill.is-configured {
  background: #dcfce7;
  color: #15803d;
}

.op-ebay-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.op-ebay-config-grid label {
  display: block;
}

.op-ebay-config-grid label span {
  display: block;
  margin-bottom: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.op-ebay-config-grid input,
.op-ebay-config-grid select {
  width: 100%;
  height: 44px;
  border: 1px solid #d9e2ef;
  border-radius: 14px;
  padding: 0 13px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 650;
}

.op-ebay-config-grid input:focus,
.op-ebay-config-grid select:focus {
  border-color: #93c5fd;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.22);
}

.op-ebay-config-wide {
  grid-column: 1 / -1;
}

.op-ebay-config-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.op-ebay-config-note {
  margin-top: 18px;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
}

.op-ebay-config-note.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

@media (max-width: 980px) {
  .op-ebay-topbar,
  .op-ebay-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .op-ebay-main-actions {
    justify-content: flex-start;
  }

  .op-ebay-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .op-ebay-search-wrap {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .op-ebay-shell {
    width: min(100% - 24px, 1440px);
    padding-top: 22px;
  }

  .op-ebay-main-actions,
  .op-ebay-config-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .op-ebay-summary-grid,
  .op-ebay-config-grid {
    grid-template-columns: 1fr;
  }
}

/* eBay dashboard button active state */
.op-ebay-dashboard-ready-btn {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  cursor: pointer !important;
  opacity: 1 !important;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.20) !important;
}

.op-ebay-dashboard-ready-btn:hover {
  background: #15803d !important;
  border-color: #15803d !important;
  transform: translateY(-1px);
}


/* DASHBOARD EBAY TWO BUTTONS - PRECISE */
.card-actions-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

.card-actions-two .btn-live {
  width: 100%;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
}


/* =========================================================
   Dashboard eBay card - precise isolated layout
   Only affects <article class="card ebay-dashboard-card">
   ========================================================= */

.ebay-dashboard-card {
  overflow: hidden !important;
}

.ebay-dashboard-card .ebay-dashboard-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: auto !important;
}

.ebay-dashboard-card .ebay-dashboard-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 58px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  background: #16a34a !important;
  color: #ffffff !important;
  border: 0 !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  font-size: 16px !important;
}

.ebay-dashboard-card .ebay-dashboard-btn:hover {
  background: #15803d !important;
}


/* =========================================================
   eBay Catalog Compact Table
   Only affects /ebay page.
   Reduces font size, spacing and column width.
   ========================================================= */

.op-ebay-page .op-ebay-shell {
  width: min(100% - 20px, 1920px) !important;
  padding-top: 18px !important;
}

.op-ebay-page .op-ebay-summary-grid {
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.op-ebay-page .op-ebay-summary-card {
  padding: 12px 16px !important;
  border-radius: 16px !important;
}

.op-ebay-page .op-ebay-summary-card span {
  font-size: 12px !important;
  margin-bottom: 4px !important;
}

.op-ebay-page .op-ebay-summary-card strong {
  font-size: 21px !important;
}

.op-ebay-page .op-ebay-panel {
  padding: 14px !important;
  margin-bottom: 12px !important;
  border-radius: 18px !important;
}

.op-ebay-page .op-ebay-products-panel {
  padding: 0 !important;
}

.op-ebay-page .op-ebay-products-head {
  padding: 12px 14px 8px !important;
  margin-bottom: 0 !important;
}

.op-ebay-page .op-ebay-panel-head h2 {
  font-size: 19px !important;
}

.op-ebay-page .op-ebay-panel-head p {
  font-size: 12px !important;
  margin-top: 3px !important;
}

.op-ebay-page .op-ebay-badge {
  padding: 8px 13px !important;
  font-size: 12px !important;
}

.op-ebay-page .op-ebay-search {
  height: 36px !important;
  font-size: 12px !important;
  border-radius: 12px !important;
}

.op-ebay-page .op-ebay-table-wrap {
  overflow-x: hidden !important;
}

.op-ebay-page .op-ebay-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.op-ebay-page .op-ebay-table th,
.op-ebay-page .op-ebay-table td {
  padding: 8px 9px !important;
  font-size: 12px !important;
  line-height: 1.22 !important;
  vertical-align: top !important;
}

.op-ebay-page .op-ebay-table th {
  font-size: 11px !important;
  letter-spacing: 0.03em !important;
}

.op-ebay-page .op-ebay-table td strong {
  font-size: 12px !important;
  line-height: 1.22 !important;
}

.op-ebay-page .op-ebay-description-cell {
  min-width: 0 !important;
}

.op-ebay-page .op-ebay-description-cell strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  margin-bottom: 3px !important;
  font-size: 12px !important;
  line-height: 1.22 !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
}

.op-ebay-page .op-ebay-description-cell span {
  display: -webkit-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
  font-size: 11px !important;
  line-height: 1.22 !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
}

.op-ebay-page .op-ebay-table th:nth-child(1),
.op-ebay-page .op-ebay-table td:nth-child(1) {
  width: 12% !important;
}

.op-ebay-page .op-ebay-table th:nth-child(2),
.op-ebay-page .op-ebay-table td:nth-child(2) {
  width: 35% !important;
}

.op-ebay-page .op-ebay-table th:nth-child(3),
.op-ebay-page .op-ebay-table td:nth-child(3) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table th:nth-child(4),
.op-ebay-page .op-ebay-table td:nth-child(4) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table th:nth-child(5),
.op-ebay-page .op-ebay-table td:nth-child(5) {
  width: 5% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table th:nth-child(6),
.op-ebay-page .op-ebay-table td:nth-child(6) {
  width: 8% !important;
  word-break: break-word !important;
}

.op-ebay-page .op-ebay-table th:nth-child(7),
.op-ebay-page .op-ebay-table td:nth-child(7) {
  width: 7% !important;
  word-break: break-word !important;
}

.op-ebay-page .op-ebay-table th:nth-child(8),
.op-ebay-page .op-ebay-table td:nth-child(8) {
  width: 10% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table th:nth-child(9),
.op-ebay-page .op-ebay-table td:nth-child(9) {
  width: 9% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-muted {
  font-size: 11px !important;
  line-height: 1.15 !important;
}

.op-ebay-page .op-ebay-topbar {
  margin-bottom: 12px !important;
}

.op-ebay-page .op-ebay-topbar h1 {
  font-size: 32px !important;
}

.op-ebay-page .op-ebay-subtitle {
  font-size: 13px !important;
  margin-top: 5px !important;
}

.op-ebay-page .op-ebay-main-actions {
  gap: 8px !important;
}

.op-ebay-page .op-ebay-btn {
  padding: 10px 15px !important;
  font-size: 13px !important;
  border-radius: 12px !important;
}

/* =========================================================
   eBay grouped catalog table (vendor / ebay)
   ========================================================= */

.op-ebay-page .op-ebay-table-grouped .op-ebay-group-head th {
  background: #ffffff !important;
  color: #111827 !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  padding: 8px 8px 4px !important;
  border-bottom: 0 !important;
}

.op-ebay-page .op-ebay-table-grouped .op-ebay-group-head th:first-child {
  border-right: 2px solid #111827 !important;
}

.op-ebay-page .op-ebay-table-grouped thead tr:nth-child(2) th {
  padding-top: 6px !important;
  border-top: 1px solid #e5e7eb !important;
}

.op-ebay-page .op-ebay-table-grouped thead tr:nth-child(2) th:nth-child(7),
.op-ebay-page .op-ebay-table-grouped tbody tr td:nth-child(7) {
  border-left: 2px solid #111827 !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(1),
.op-ebay-page .op-ebay-table-grouped td:nth-child(1) {
  width: 11% !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(2),
.op-ebay-page .op-ebay-table-grouped td:nth-child(2) {
  width: 35% !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(3),
.op-ebay-page .op-ebay-table-grouped td:nth-child(3) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(4),
.op-ebay-page .op-ebay-table-grouped td:nth-child(4) {
  width: 8% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(5),
.op-ebay-page .op-ebay-table-grouped td:nth-child(5) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(6),
.op-ebay-page .op-ebay-table-grouped td:nth-child(6) {
  width: 5% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(7),
.op-ebay-page .op-ebay-table-grouped td:nth-child(7) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(8),
.op-ebay-page .op-ebay-table-grouped td:nth-child(8) {
  width: 5% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(9),
.op-ebay-page .op-ebay-table-grouped td:nth-child(9) {
  width: 7% !important;
  word-break: break-word !important;
}

.op-ebay-page .op-ebay-table-grouped th:nth-child(10),
.op-ebay-page .op-ebay-table-grouped td:nth-child(10) {
  width: 8% !important;
}

.op-ebay-page .op-ebay-table-grouped td:nth-child(10) a {
  font-size: 11px !important;
  font-weight: 800 !important;
}

/* =========================================================
   eBay clean table override
   Reverts grouped header style and removes separator line
   ========================================================= */

.op-ebay-page .op-ebay-table-clean {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.op-ebay-page .op-ebay-table-clean thead tr th {
  background: #f8fafc !important;
  color: #0f172a !important;
  text-align: left !important;
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid #e4ebf5 !important;
  padding: 8px 10px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.15 !important;
}

.op-ebay-page .op-ebay-table-clean tbody td {
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid #edf2f7 !important;
  padding: 10px 10px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  vertical-align: top !important;
}

.op-ebay-page .op-ebay-table-clean tbody tr:last-child td {
  border-bottom: 0 !important;
}

.op-ebay-page .op-ebay-table-clean td strong {
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.op-ebay-page .op-ebay-table-clean .op-ebay-description-cell {
  min-width: 0 !important;
}

.op-ebay-page .op-ebay-table-clean .op-ebay-description-cell strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  margin-bottom: 3px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
}

.op-ebay-page .op-ebay-table-clean .op-ebay-description-cell span {
  display: -webkit-box !important;
  overflow: hidden !important;
  max-width: 100% !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
}

/* Correct column widths */
.op-ebay-page .op-ebay-table-clean th:nth-child(1),
.op-ebay-page .op-ebay-table-clean td:nth-child(1) {
  width: 10% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(2),
.op-ebay-page .op-ebay-table-clean td:nth-child(2) {
  width: 32% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(3),
.op-ebay-page .op-ebay-table-clean td:nth-child(3) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(4),
.op-ebay-page .op-ebay-table-clean td:nth-child(4) {
  width: 8% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(5),
.op-ebay-page .op-ebay-table-clean td:nth-child(5) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(6),
.op-ebay-page .op-ebay-table-clean td:nth-child(6) {
  width: 5% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(7),
.op-ebay-page .op-ebay-table-clean td:nth-child(7) {
  width: 8% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(8),
.op-ebay-page .op-ebay-table-clean td:nth-child(8) {
  width: 6% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(9),
.op-ebay-page .op-ebay-table-clean td:nth-child(9) {
  width: 8% !important;
  word-break: break-word !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(10),
.op-ebay-page .op-ebay-table-clean td:nth-child(10) {
  width: 9% !important;
}

.op-ebay-page .op-ebay-table-clean td:nth-child(10) a {
  font-size: 11px !important;
  font-weight: 800 !important;
}

/* Explicitly remove any old grouped/separator style */
.op-ebay-page .op-ebay-table-clean th,
.op-ebay-page .op-ebay-table-clean td {
  border-left: none !important;
  box-shadow: none !important;
}

.op-ebay-page .op-ebay-table-wrap {
  overflow-x: hidden !important;
}

/* =========================================================
   eBay Fee % and Win % columns
   Only affects /ebay catalog table
   ========================================================= */

.op-ebay-page .op-ebay-table-clean th:nth-child(1),
.op-ebay-page .op-ebay-table-clean td:nth-child(1) {
  width: 9% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(2),
.op-ebay-page .op-ebay-table-clean td:nth-child(2) {
  width: 26% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(3),
.op-ebay-page .op-ebay-table-clean td:nth-child(3) {
  width: 6.5% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(4),
.op-ebay-page .op-ebay-table-clean td:nth-child(4) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(5),
.op-ebay-page .op-ebay-table-clean td:nth-child(5) {
  width: 6.5% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(6),
.op-ebay-page .op-ebay-table-clean td:nth-child(6) {
  width: 4.5% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(7),
.op-ebay-page .op-ebay-table-clean td:nth-child(7) {
  width: 5.5% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(8),
.op-ebay-page .op-ebay-table-clean td:nth-child(8) {
  width: 5.5% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(9),
.op-ebay-page .op-ebay-table-clean td:nth-child(9) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(10),
.op-ebay-page .op-ebay-table-clean td:nth-child(10) {
  width: 6% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(11),
.op-ebay-page .op-ebay-table-clean td:nth-child(11) {
  width: 8% !important;
  word-break: break-word !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(12),
.op-ebay-page .op-ebay-table-clean td:nth-child(12) {
  width: 8.5% !important;
}

.op-ebay-page .op-ebay-fee-input,
.op-ebay-page .op-ebay-win-select {
  width: 100% !important;
  height: 28px !important;
  border: 1px solid #d9e2ef !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 0 6px !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.op-ebay-page .op-ebay-fee-input:focus,
.op-ebay-page .op-ebay-win-select:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18) !important;
}

.op-ebay-page .op-ebay-fee-input.is-saving,
.op-ebay-page .op-ebay-win-select.is-saving {
  background: #fef9c3 !important;
}

.op-ebay-page .op-ebay-fee-input.is-saved,
.op-ebay-page .op-ebay-win-select.is-saved {
  background: #dcfce7 !important;
  border-color: #86efac !important;
}

/* EPCOM LBS COLUMN - START */
.epcom-weight-input {
  width: 74px;
  max-width: 74px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 8px;
  font-size: 13px;
}

.epcom-weight-input[data-source="manual"] {
  font-weight: 700;
}

.epcom-weight-input.saved {
  outline: 2px solid rgba(22, 163, 74, 0.35);
  border-color: rgba(22, 163, 74, 0.8);
}

.epcom-weight-input.error {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  border-color: rgba(220, 38, 38, 0.8);
}
/* EPCOM LBS COLUMN - END */

/* EPCOM LBS COLUMN - START */
.epcom-weight-input {
  width: 76px;
  max-width: 76px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 8px;
  font-size: 13px;
}

.epcom-weight-input[data-source="manual"] {
  font-weight: 700;
}

.epcom-weight-input.saved {
  outline: 2px solid rgba(22, 163, 74, 0.35);
  border-color: rgba(22, 163, 74, 0.8);
}

.epcom-weight-input.error {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  border-color: rgba(220, 38, 38, 0.8);
}
/* EPCOM LBS COLUMN - END */

/* EPCOM LBS TABLE OVERLAY - START */
.epcom-lbs-cell {
  min-width: 86px;
}

.epcom-weight-input {
  width: 76px;
  max-width: 76px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}

.epcom-weight-input[data-source="supplier"] {
  border-color: rgba(37, 99, 235, 0.45);
}

.epcom-weight-input[data-source="manual"] {
  font-weight: 700;
  border-color: rgba(22, 163, 74, 0.75);
}

.epcom-weight-input.saved {
  outline: 2px solid rgba(22, 163, 74, 0.35);
}

.epcom-weight-input.error {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  border-color: rgba(220, 38, 38, 0.8);
}
/* EPCOM LBS TABLE OVERLAY - END */

/* Products manual lbs input */
.products-lbs-input {
  width: 74px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 12.5px;
  font-weight: 700;
  outline: none;
}

.products-lbs-input:focus {
  border-color: #9bbcff;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.08);
}

.products-lbs-input.is-saving {
  background: #fff7ed;
  border-color: #fdba74;
}

.products-lbs-input.is-saved {
  background: #ecfdf3;
  border-color: #75e0a7;
}

.products-lbs-input.is-error {
  background: #fef3f2;
  border-color: #fda29b;
}

/* EPCOM COMPACT CATALOG - START */
.epcom-catalog-box {
  font-size: 12px;
}

.epcom-catalog-box h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.epcom-catalog-box h3 {
  font-size: 14px;
  margin: 8px 0;
}

.epcom-catalog-box p,
.epcom-catalog-box label,
.epcom-catalog-box input,
.epcom-catalog-box button {
  font-size: 12px;
}

.epcom-catalog-toolbar {
  gap: 8px;
  margin: 10px 0;
}

.epcom-catalog-toolbar label {
  min-width: 170px;
  gap: 4px;
}

.epcom-catalog-toolbar input[type="text"] {
  padding: 7px 8px;
  height: 34px;
}

.epcom-catalog-box .btn-secondary {
  padding: 7px 10px;
  font-size: 12px;
}

.epcom-catalog-layout {
  gap: 12px;
}

.epcom-catalog-box .data-table,
.epcom-brands-table,
.epcom-products-table {
  font-size: 11px;
  line-height: 1.25;
}

.epcom-catalog-box .data-table th,
.epcom-catalog-box .data-table td {
  padding: 5px 6px;
}

.epcom-brands-table th,
.epcom-brands-table td {
  white-space: nowrap;
}

.epcom-products-table th,
.epcom-products-table td {
  vertical-align: top;
}

.epcom-products-table td:nth-child(4) {
  max-width: 360px;
}

.epcom-product-thumb {
  width: 34px;
  height: 34px;
}

.epcom-weight-input {
  width: 58px;
  max-width: 58px;
  padding: 4px 5px;
  font-size: 11px;
}

.small-text {
  font-size: 10px;
}

.epcom-view-products-btn,
.open-epcom-catalog-btn {
  font-size: 11px;
  padding: 5px 8px;
}
/* EPCOM COMPACT CATALOG - END */

/* EPCOM CATALOG LAYOUT COMPACT - START */

/* Main layout: make Brands smaller and Products wider */
.epcom-catalog-layout {
  grid-template-columns: 245px minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start;
}

/* Brands panel compact */
.epcom-catalog-panel:first-child {
  max-width: 245px;
  min-width: 245px;
}

.epcom-catalog-panel:first-child h3 {
  font-size: 12px !important;
  margin: 4px 0 6px 0 !important;
}

.epcom-brands-table {
  font-size: 10px !important;
  line-height: 1.15 !important;
}

.epcom-brands-table th,
.epcom-brands-table td {
  padding: 3px 4px !important;
  white-space: nowrap;
}

.epcom-brands-table th:nth-child(1),
.epcom-brands-table td:nth-child(1) {
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.epcom-brands-table th:nth-child(2),
.epcom-brands-table td:nth-child(2),
.epcom-brands-table th:nth-child(3),
.epcom-brands-table td:nth-child(3) {
  width: 38px;
  text-align: right;
}

.epcom-brands-table th:nth-child(4),
.epcom-brands-table td:nth-child(4) {
  width: 52px;
  text-align: right;
}

.epcom-brands-table th:nth-child(5),
.epcom-brands-table td:nth-child(5) {
  width: 42px;
  text-align: center;
}

.epcom-brands-table .btn-secondary,
.epcom-view-products-btn {
  font-size: 10px !important;
  padding: 3px 5px !important;
  min-height: 24px;
}

/* Products panel wider and tighter */
.epcom-catalog-panel:nth-child(2) {
  min-width: 0;
  width: 100%;
}

.epcom-catalog-panel:nth-child(2) h3 {
  font-size: 13px !important;
  margin: 4px 0 6px 0 !important;
}

.epcom-products-table {
  font-size: 10.5px !important;
  line-height: 1.18 !important;
  table-layout: fixed;
}

.epcom-products-table th,
.epcom-products-table td {
  padding: 4px 5px !important;
  vertical-align: middle !important;
}

/* Product columns alignment */
.epcom-products-table th:nth-child(1),
.epcom-products-table td:nth-child(1) {
  width: 42px;
  text-align: center;
}

.epcom-products-table th:nth-child(2),
.epcom-products-table td:nth-child(2) {
  width: 105px;
  word-break: break-word;
}

.epcom-products-table th:nth-child(3),
.epcom-products-table td:nth-child(3) {
  width: 88px;
  word-break: break-word;
}

.epcom-products-table th:nth-child(4),
.epcom-products-table td:nth-child(4) {
  width: auto;
  min-width: 260px;
}

.epcom-products-table th:nth-child(5),
.epcom-products-table td:nth-child(5) {
  width: 60px;
  text-align: center;
}

.epcom-products-table th:nth-child(6),
.epcom-products-table td:nth-child(6) {
  width: 58px;
  text-align: right;
}

.epcom-products-table th:nth-child(7),
.epcom-products-table td:nth-child(7),
.epcom-products-table th:nth-child(8),
.epcom-products-table td:nth-child(8) {
  width: 72px;
  text-align: right;
}

.epcom-products-table th:nth-child(9),
.epcom-products-table td:nth-child(9) {
  width: 95px;
  word-break: break-word;
}

/* Hide long product URL below SKU to improve alignment */
.epcom-products-table .small-text {
  display: none !important;
}

.epcom-product-thumb {
  width: 30px !important;
  height: 30px !important;
}

.epcom-weight-input {
  width: 50px !important;
  max-width: 50px !important;
  padding: 3px 4px !important;
  font-size: 10.5px !important;
  text-align: center;
}

/* Toolbar slightly smaller */
.epcom-catalog-toolbar {
  gap: 7px !important;
  margin: 8px 0 !important;
}

.epcom-catalog-toolbar label {
  min-width: 155px !important;
  font-size: 11px !important;
}

.epcom-catalog-toolbar input[type="text"] {
  height: 30px !important;
  padding: 5px 7px !important;
  font-size: 11px !important;
}

.epcom-catalog-toolbar .btn-secondary {
  padding: 5px 8px !important;
  font-size: 11px !important;
}

/* Keep responsive behavior */
@media (max-width: 980px) {
  .epcom-catalog-layout {
    grid-template-columns: 1fr !important;
  }

  .epcom-catalog-panel:first-child {
    max-width: none;
    min-width: 0;
  }
}

/* EPCOM CATALOG LAYOUT COMPACT - END */

/* =========================================================
   eBay Lbs column
   Only affects /ebay catalog table
   Column order:
   SKU, Description, Price, Vendor, Cost, Stock, Lbs, Fee %, Win %, eBay Price, eBay Stock, eBay ID, eBay Link
   ========================================================= */

.op-ebay-page .op-ebay-table-clean th:nth-child(1),
.op-ebay-page .op-ebay-table-clean td:nth-child(1) {
  width: 8.5% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(2),
.op-ebay-page .op-ebay-table-clean td:nth-child(2) {
  width: 24% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(3),
.op-ebay-page .op-ebay-table-clean td:nth-child(3) {
  width: 6.5% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(4),
.op-ebay-page .op-ebay-table-clean td:nth-child(4) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(5),
.op-ebay-page .op-ebay-table-clean td:nth-child(5) {
  width: 6.5% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(6),
.op-ebay-page .op-ebay-table-clean td:nth-child(6) {
  width: 4.5% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(7),
.op-ebay-page .op-ebay-table-clean td:nth-child(7) {
  width: 4.5% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(8),
.op-ebay-page .op-ebay-table-clean td:nth-child(8) {
  width: 5.5% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(9),
.op-ebay-page .op-ebay-table-clean td:nth-child(9) {
  width: 5.5% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(10),
.op-ebay-page .op-ebay-table-clean td:nth-child(10) {
  width: 7% !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(11),
.op-ebay-page .op-ebay-table-clean td:nth-child(11) {
  width: 6% !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(12),
.op-ebay-page .op-ebay-table-clean td:nth-child(12) {
  width: 7% !important;
  word-break: break-word !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(13),
.op-ebay-page .op-ebay-table-clean td:nth-child(13) {
  width: 7% !important;
}

/* Shipping module */
.panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 24px;
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.shipping-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
  margin-top: 0;
}

.shipping-form button {
  width: 100%;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid #e5e7eb;
}

.data-table th {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.small-btn {
  height: 34px;
  padding: 0 12px;
  margin-right: 8px;
}

button.danger {
  background: #dc2626;
  color: #ffffff;
}

@media (max-width: 900px) {
  .shipping-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shipping-form {
    grid-template-columns: 1fr;
  }
}


/* eBay calculated price */
.op-ebay-page .op-ebay-calculated-price {
  color: #15803d !important;
  font-weight: 900 !important;
}


/* eBay STK Max and calculated eBay Stock */
.op-ebay-page .op-ebay-stock-max-input {
  width: 68px !important;
  height: 28px !important;
  border: 1px solid #d9e2ef !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 0 6px !important;
  outline: none !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.op-ebay-page .op-ebay-stock-max-input:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18) !important;
}

.op-ebay-page .op-ebay-stock-calculated {
  color: #0f172a !important;
  font-weight: 900 !important;
}


/* =========================================================
   eBay Config - Green Connect eBay button
   Only affects the eBay config page
   ========================================================= */

.op-ebay-page #connectEbayBtn {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.18) !important;
}

.op-ebay-page #connectEbayBtn:hover {
  background: #15803d !important;
  border-color: #15803d !important;
}

.op-ebay-page #connectEbayBtn:active {
  background: #166534 !important;
  border-color: #166534 !important;
}


/* eBay product manual link buttons */
.op-ebay-page .op-ebay-link-btn,
.op-ebay-page .op-ebay-unlink-btn,
.op-ebay-page .op-ebay-open-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 28px !important;
  border-radius: 9px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.op-ebay-page .op-ebay-link-btn {
  border: 1px solid #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
}

.op-ebay-page .op-ebay-open-link {
  border: 1px solid #16a34a !important;
  background: #16a34a !important;
  color: #ffffff !important;
}

.op-ebay-page .op-ebay-unlink-btn {
  border: 1px solid #fecaca !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.op-ebay-page .op-ebay-link-actions {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  white-space: nowrap !important;
}


/* =========================================================
   eBay link icon button
   Red = not linked
   Green = linked
   ========================================================= */

.op-ebay-page .op-ebay-link-icon-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  padding: 0 !important;
  transition: all 0.18s ease !important;
  box-sizing: border-box !important;
}

.op-ebay-page .op-ebay-link-icon-btn .op-ebay-link-icon {
  font-size: 17px !important;
  line-height: 1 !important;
  display: inline-block !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-linked {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.20) !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-linked:hover {
  background: #15803d !important;
  border-color: #15803d !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-unlinked {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.20) !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-unlinked:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

.op-ebay-page .op-ebay-link-icon-btn:disabled {
  opacity: 0.65 !important;
  cursor: wait !important;
}


/* =========================================================
   eBay Link SVG Icon Button - forced fix
   Red = not linked / Green = linked
   ========================================================= */

.op-ebay-page .op-ebay-link-icon-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
}

.op-ebay-page .op-ebay-link-icon-btn .op-ebay-link-svg {
  width: 19px !important;
  height: 19px !important;
  display: block !important;
  fill: currentColor !important;
  color: inherit !important;
  pointer-events: none !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-linked {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.22) !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-linked:hover {
  background: #15803d !important;
  border-color: #15803d !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-unlinked {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.22) !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-unlinked:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

.op-ebay-page .op-ebay-link-icon-btn:disabled {
  opacity: 0.65 !important;
  cursor: wait !important;
}

/* =========================================================
   Forced eBay Link column/icon
   ========================================================= */

.op-ebay-page .op-ebay-table-clean th:nth-child(13),
.op-ebay-page .op-ebay-table-clean td:nth-child(13) {
  width: 56px !important;
  min-width: 56px !important;
  max-width: 56px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(14),
.op-ebay-page .op-ebay-table-clean td:nth-child(14) {
  width: 95px !important;
  min-width: 95px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-link-icon-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 auto !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.op-ebay-page .op-ebay-link-svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
  fill: currentColor !important;
  color: inherit !important;
  pointer-events: none !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-linked {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-linked:hover {
  background: #15803d !important;
  border-color: #15803d !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-unlinked {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
}

.op-ebay-page .op-ebay-link-icon-btn.is-unlinked:hover {
  background: #b91c1c !important;
  border-color: #b91c1c !important;
}

.op-ebay-page .op-ebay-link-icon-btn:disabled {
  opacity: 0.65 !important;
  cursor: wait !important;
}

/* =========================================================
   eBay Catalog alignment + Link / eBay ID final fix
   ========================================================= */

.op-ebay-page .op-ebay-table-clean {
  table-layout: fixed !important;
  width: 100% !important;
}

.op-ebay-page .op-ebay-table-clean th,
.op-ebay-page .op-ebay-table-clean td {
  vertical-align: middle !important;
  line-height: 1.25 !important;
}

.op-ebay-page .op-ebay-table-clean tbody tr {
  min-height: 66px !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(1),
.op-ebay-page .op-ebay-table-clean td:nth-child(1) {
  width: 8% !important;
  text-align: left !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(2),
.op-ebay-page .op-ebay-table-clean td:nth-child(2) {
  width: 24% !important;
  text-align: left !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(3),
.op-ebay-page .op-ebay-table-clean td:nth-child(3),
.op-ebay-page .op-ebay-table-clean th:nth-child(4),
.op-ebay-page .op-ebay-table-clean td:nth-child(4),
.op-ebay-page .op-ebay-table-clean th:nth-child(5),
.op-ebay-page .op-ebay-table-clean td:nth-child(5),
.op-ebay-page .op-ebay-table-clean th:nth-child(6),
.op-ebay-page .op-ebay-table-clean td:nth-child(6),
.op-ebay-page .op-ebay-table-clean th:nth-child(7),
.op-ebay-page .op-ebay-table-clean td:nth-child(7),
.op-ebay-page .op-ebay-table-clean th:nth-child(8),
.op-ebay-page .op-ebay-table-clean td:nth-child(8),
.op-ebay-page .op-ebay-table-clean th:nth-child(9),
.op-ebay-page .op-ebay-table-clean td:nth-child(9),
.op-ebay-page .op-ebay-table-clean th:nth-child(10),
.op-ebay-page .op-ebay-table-clean td:nth-child(10),
.op-ebay-page .op-ebay-table-clean th:nth-child(11),
.op-ebay-page .op-ebay-table-clean td:nth-child(11),
.op-ebay-page .op-ebay-table-clean th:nth-child(12),
.op-ebay-page .op-ebay-table-clean td:nth-child(12),
.op-ebay-page .op-ebay-table-clean th:nth-child(13),
.op-ebay-page .op-ebay-table-clean td:nth-child(13),
.op-ebay-page .op-ebay-table-clean th:nth-child(14),
.op-ebay-page .op-ebay-table-clean td:nth-child(14) {
  text-align: center !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(3),
.op-ebay-page .op-ebay-table-clean td:nth-child(3) {
  width: 6.3% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(4),
.op-ebay-page .op-ebay-table-clean td:nth-child(4) {
  width: 6.5% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(5),
.op-ebay-page .op-ebay-table-clean td:nth-child(5) {
  width: 6.2% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(6),
.op-ebay-page .op-ebay-table-clean td:nth-child(6) {
  width: 5.2% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(7),
.op-ebay-page .op-ebay-table-clean td:nth-child(7) {
  width: 4.6% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(8),
.op-ebay-page .op-ebay-table-clean td:nth-child(8) {
  width: 5.7% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(9),
.op-ebay-page .op-ebay-table-clean td:nth-child(9) {
  width: 5.8% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(10),
.op-ebay-page .op-ebay-table-clean td:nth-child(10) {
  width: 7.5% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(11),
.op-ebay-page .op-ebay-table-clean td:nth-child(11) {
  width: 5.8% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(12),
.op-ebay-page .op-ebay-table-clean td:nth-child(12) {
  width: 5.7% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(13),
.op-ebay-page .op-ebay-table-clean td:nth-child(13) {
  width: 4.8% !important;
}

.op-ebay-page .op-ebay-table-clean th:nth-child(14),
.op-ebay-page .op-ebay-table-clean td:nth-child(14) {
  width: 8% !important;
}

.op-ebay-page .op-ebay-fee-input,
.op-ebay-page .op-ebay-win-select {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.op-ebay-page .op-ebay-stock-max-input {
  width: 52px !important;
  max-width: 52px !important;
  min-width: 52px !important;
  height: 28px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  padding: 0 4px !important;
}

.op-ebay-page .op-ebay-link-icon-btn {
  margin-left: auto !important;
  margin-right: auto !important;
}

.op-ebay-page .op-ebay-id-link {
  color: #2563eb !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  display: inline-block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-id-link:hover {
  text-decoration: underline !important;
}

/* =========================================================
   eBay Sync Listing Button
   Green/red link button + blue update button
   ========================================================= */

.op-ebay-page .op-ebay-link-sync-actions {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.op-ebay-page .op-ebay-sync-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  font-size: 18px !important;
  font-weight: 900 !important;
}

.op-ebay-page .op-ebay-sync-btn.is-ready {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

.op-ebay-page .op-ebay-sync-btn.is-ready:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.op-ebay-page .op-ebay-sync-btn.is-disabled,
.op-ebay-page .op-ebay-sync-btn:disabled {
  background: #cbd5e1 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  cursor: not-allowed !important;
}
