/* ---------------------------------
   Dashboard base
---------------------------------- */

:root {
  --dashboard-sidebar-width: 255px;
  --dashboard-background: #f4f7fa;
  --dashboard-sidebar: #10223d;
  --dashboard-sidebar-soft: #1a3151;
  --dashboard-white: #ffffff;
  --dashboard-border: #e4e9ef;
  --dashboard-text: #192435;
  --dashboard-muted: #667085;
  --dashboard-primary: #087f72;
  --dashboard-primary-dark: #06665c;
  --dashboard-primary-soft: #daf3ef;
  --dashboard-warning: #a66300;
  --dashboard-warning-soft: #fff2d8;
  --dashboard-blue: #2766a8;
  --dashboard-blue-soft: #e6f0fb;
  --dashboard-success: #157a63;
  --dashboard-success-soft: #e0f4ed;
  --dashboard-shadow:
    0 12px 35px rgba(17, 35, 61, 0.07);
}

.dashboard-body {
  margin: 0;
  background: var(--dashboard-background);
  color: var(--dashboard-text);
  font-family: Arial, Helvetica, sans-serif;
}

.dashboard-shell {
  display: grid;
  grid-template-columns:
    var(--dashboard-sidebar-width)
    minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------------------------------
   Sidebar
---------------------------------- */

.dashboard-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 25px 18px;
  background: var(--dashboard-sidebar);
  color: white;
  overflow-y: auto;
}

.dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 26px;
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.dashboard-brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-brand-symbol {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--dashboard-primary);
  border-radius: 11px;
  font-size: 1.2rem;
}

.dashboard-navigation {
  display: grid;
  gap: 7px;
}

.navigation-label {
  margin: 12px 12px 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.68);
  border-radius: 9px;
  font-size: 0.87rem;
  font-weight: 700;
}

.dashboard-nav-link:hover,
.dashboard-nav-link.active {
  background: var(--dashboard-sidebar-soft);
  color: white;
}

.nav-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  font-size: 0.63rem;
}

.dashboard-nav-link.active .nav-icon {
  background: var(--dashboard-primary);
}

.sidebar-footer {
  display: grid;
  gap: 15px;
  margin-top: auto;
  padding-top: 30px;
}

.sidebar-help {
  padding: 16px;
  background: var(--dashboard-sidebar-soft);
  border-radius: 12px;
}

.sidebar-help strong {
  font-size: 0.82rem;
}

.sidebar-help p {
  margin: 7px 0 13px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  line-height: 1.5;
}

.sidebar-help-button,
.logout-button {
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
}

.sidebar-help-button {
  background: var(--dashboard-primary);
  color: white;
  font-size: 0.74rem;
}

.logout-button {
  background: transparent;
  color: rgba(255, 255, 255, 0.67);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
}

.logout-button:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ---------------------------------
   Main area and top bar
---------------------------------- */

.dashboard-main {
  min-width: 0;
}

.dashboard-topbar {
  display: flex;
  min-height: 90px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 18px 4%;
  background: var(--dashboard-white);
  border-bottom: 1px solid var(--dashboard-border);
}

.dashboard-date {
  margin: 0;
  color: var(--dashboard-muted);
  font-size: 0.76rem;
}

.dashboard-topbar h1 {
  margin: 3px 0 0;
  font-size: 1.45rem;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.user-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--dashboard-primary-soft);
  color: var(--dashboard-primary-dark);
  border-radius: 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.user-details {
  display: grid;
}

.user-details strong {
  font-size: 0.84rem;
}

.user-details span {
  color: var(--dashboard-muted);
  font-size: 0.7rem;
}

.dashboard-content {
  display: grid;
  gap: 22px;
  width: min(1450px, 92%);
  margin: 0 auto;
  padding: 35px 0 60px;
}

/* ---------------------------------
   Welcome panel
---------------------------------- */

.welcome-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 30px;
  background:
    linear-gradient(
      110deg,
      var(--dashboard-sidebar),
      #17415a
    );
  color: white;
  border-radius: 17px;
  box-shadow: var(--dashboard-shadow);
}

.dashboard-eyebrow {
  margin: 0 0 6px;
  color: #75dfce;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.welcome-panel h2 {
  margin: 0;
  font-size: 1.8rem;
}

.welcome-panel p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.dashboard-primary-button {
  flex: 0 0 auto;
  padding: 12px 18px;
  background: var(--dashboard-primary);
  color: white;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 800;
}

.dashboard-primary-button:hover {
  background: var(--dashboard-primary-dark);
}

/* ---------------------------------
   Metric cards
---------------------------------- */

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

.dashboard-metric-card {
  padding: 21px;
  background: var(--dashboard-white);
  border: 1px solid var(--dashboard-border);
  border-radius: 14px;
  box-shadow: var(--dashboard-shadow);
}

.metric-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  color: var(--dashboard-muted);
  font-size: 0.74rem;
}

.metric-change,
.metric-neutral {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 800;
}

.metric-change {
  background: var(--dashboard-success-soft);
  color: var(--dashboard-success);
}

.metric-neutral {
  background: var(--dashboard-blue-soft);
  color: var(--dashboard-blue);
}

.dashboard-metric-card > strong {
  display: block;
  margin-top: 17px;
  font-size: 1.75rem;
}

.dashboard-metric-card > p {
  margin: 8px 0 0;
  color: var(--dashboard-muted);
  font-size: 0.73rem;
}

/* ---------------------------------
   General panels
---------------------------------- */

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.75fr);
  gap: 20px;
}

.dashboard-panel {
  min-width: 0;
  padding: 24px;
  background: var(--dashboard-white);
  border: 1px solid var(--dashboard-border);
  border-radius: 15px;
  box-shadow: var(--dashboard-shadow);
}

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

.panel-label {
  margin: 0;
  color: var(--dashboard-primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-heading h2 {
  margin: 3px 0 0;
  font-size: 1.15rem;
}

.text-button {
  padding: 0;
  background: transparent;
  color: var(--dashboard-primary);
  border: 0;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 800;
}

.panel-count {
  padding: 5px 9px;
  background: var(--dashboard-primary-soft);
  color: var(--dashboard-primary-dark);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
}

/* ---------------------------------
   Tables
---------------------------------- */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.dashboard-table th {
  padding: 11px 10px;
  color: var(--dashboard-muted);
  border-bottom: 1px solid var(--dashboard-border);
  text-align: left;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-table td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--dashboard-border);
}

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

.dashboard-table tbody tr:hover {
  background: #fafcfd;
}

.status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 0.64rem;
  font-weight: 800;
}

.status-review {
  background: var(--dashboard-warning-soft);
  color: var(--dashboard-warning);
}

.status-submitted {
  background: var(--dashboard-blue-soft);
  color: var(--dashboard-blue);
}

.status-accepted,
.status-completed {
  background: var(--dashboard-success-soft);
  color: var(--dashboard-success);
}

.status-quotation {
  background: var(--dashboard-blue-soft);
  color: var(--dashboard-blue);
}

/* ---------------------------------
   Quick actions
---------------------------------- */

.quick-action-list {
  display: grid;
  gap: 10px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 10px;
}

.quick-action:hover {
  border-color: var(--dashboard-primary);
}

.quick-action-number {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--dashboard-primary-soft);
  color: var(--dashboard-primary-dark);
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
}

.quick-action span:last-child {
  display: grid;
}

.quick-action strong {
  font-size: 0.76rem;
}

.quick-action small {
  margin-top: 2px;
  color: var(--dashboard-muted);
  font-size: 0.65rem;
}

/* ---------------------------------
   Deliveries
---------------------------------- */

.delivery-list {
  display: grid;
  gap: 12px;
}

.delivery-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 11px;
}

.delivery-reference {
  display: grid;
}

.delivery-reference > span {
  color: var(--dashboard-primary);
  font-size: 0.62rem;
  font-weight: 800;
}

.delivery-reference strong {
  margin-top: 3px;
  font-size: 0.76rem;
}

.delivery-reference small {
  margin-top: 2px;
  color: var(--dashboard-muted);
  font-size: 0.65rem;
}

.progress-information {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--dashboard-muted);
  font-size: 0.66rem;
}

.progress-track {
  height: 7px;
  background: #dfe6ec;
  border-radius: 999px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--dashboard-primary);
  border-radius: inherit;
}

.outline-button {
  padding: 8px 10px;
  background: white;
  color: var(--dashboard-primary);
  border: 1px solid var(--dashboard-primary);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.67rem;
  font-weight: 800;
}

/* ---------------------------------
   Buyer insights
---------------------------------- */

.insight-chart {
  display: grid;
  gap: 19px;
}

.insight-row > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 0.7rem;
}

.insight-row strong {
  color: var(--dashboard-primary);
}

.insight-bar {
  height: 8px;
  background: #e6ebef;
  border-radius: 999px;
  overflow: hidden;
}

.insight-bar span {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--dashboard-primary),
      #4dc5b4
    );
  border-radius: inherit;
}

/* ---------------------------------
   Responsive layout
---------------------------------- */

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

  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }

  .dashboard-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-help {
    display: none;
  }

  .dashboard-topbar {
    padding: 18px 5%;
  }
}

@media (max-width: 620px) {
  .dashboard-user .user-details {
    display: none;
  }

  .dashboard-content {
    width: 90%;
  }

  .welcome-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-primary-button {
    width: 100%;
    text-align: center;
  }

  .dashboard-metric-grid {
    grid-template-columns: 1fr;
  }

  .delivery-item {
    grid-template-columns: 1fr;
  }

  .outline-button {
    width: 100%;
  }
}
/* ---------------------------------
   Seller dashboard additions
---------------------------------- */

.profile-completion {
  display: grid;
  gap: 18px;
}

.profile-progress-heading {
  display: flex;
  justify-content: space-between;
  color: var(--dashboard-muted);
  font-size: 0.72rem;
}

.profile-progress-heading strong {
  color: var(--dashboard-primary);
}

.profile-progress-track {
  height: 9px;
  background: #e4eaee;
  border-radius: 999px;
  overflow: hidden;
}

.profile-progress-track span {
  display: block;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      var(--dashboard-primary),
      #4dc5b4
    );
  border-radius: inherit;
}

.profile-checklist {
  display: grid;
  gap: 9px;
}

.profile-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 8px;
  color: var(--dashboard-muted);
  font-size: 0.7rem;
}

.profile-check span {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
}

.profile-check.complete span {
  background: var(--dashboard-success-soft);
  color: var(--dashboard-success);
}

.profile-check.incomplete span {
  background: var(--dashboard-warning-soft);
  color: var(--dashboard-warning);
}

.seller-full-button {
  width: 100%;
}

/* Seller catalogue listings */

.seller-listings {
  display: grid;
  gap: 11px;
}

.seller-listing-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  grid-template-areas:
    "visual information status"
    "actions actions actions";
  align-items: center;
  gap: 10px 13px;
  width: 100%;
  min-width: 0;
  padding: 13px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 10px;
}

.seller-listing-visual {
  grid-area: visual;
}

.seller-listing-information {
  grid-area: information;
  min-width: 0;
}

.seller-listing-status {
  grid-area: status;
  justify-self: end;
}

.seller-listing-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.seller-listing-visual {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: var(--dashboard-primary-soft);
  color: var(--dashboard-primary-dark);
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.seller-listing-information {
  display: grid;
}

.seller-listing-information strong {
  color: var(--dashboard-text);
  font-size: 0.74rem;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.seller-listing-information span {
  margin-top: 3px;
  color: var(--dashboard-muted);
  font-size: 0.64rem;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.seller-listings {
  container-type: inline-size;
}

.seller-listing-status {
  padding: 5px 8px;
  background: var(--dashboard-success-soft);
  color: var(--dashboard-success);
  border-radius: 999px;
  font-size: 0.61rem;
  font-weight: 800;
}

.seller-listing-empty {
  padding: 25px;
  background: var(--dashboard-background);
  color: var(--dashboard-muted);
  border: 1px dashed var(--dashboard-border);
  border-radius: 10px;
  text-align: center;
  font-size: 0.75rem;
}

/* Seller insight cards */

.seller-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.seller-insight-card {
  padding: 18px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 11px;
}

.seller-insight-card > span {
  color: var(--dashboard-muted);
  font-size: 0.68rem;
}

.seller-insight-card > strong {
  display: block;
  margin: 7px 0 14px;
  color: var(--dashboard-text);
  font-size: 1.45rem;
}

.seller-insight-card small {
  display: block;
  margin-top: 9px;
  color: var(--dashboard-muted);
  font-size: 0.63rem;
}

.status-declined {
  background: #fde8e8;
  color: #a83232;
}

@media (max-width: 900px) {
  .seller-insight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .seller-listing-item {
    grid-template-columns: auto 1fr;
  }

  .seller-listing-status {
    grid-column: 1 / -1;
    width: fit-content;
  }
}
/* ---------------------------------
   Editable seller profile
---------------------------------- */

.seller-profile-summary {
  display: grid;
  gap: 18px;
}

.seller-profile-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.company-logo-preview {
  position: relative;
  display: grid;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  place-items: center;
  background: var(--dashboard-primary-soft);
  color: var(--dashboard-primary-dark);
  border: 1px solid #cbe9e3;
  border-radius: 13px;
  overflow: hidden;
  font-weight: 800;
}

.company-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-logo-preview-large {
  flex-basis: 90px;
  width: 90px;
  height: 90px;
  border-radius: 17px;
  font-size: 1.2rem;
}

.seller-profile-identity h3 {
  margin: 0;
  color: var(--dashboard-text);
  font-size: 1rem;
}

.seller-profile-identity p {
  margin: 7px 0 0;
  color: var(--dashboard-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.seller-profile-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.seller-profile-details > div {
  display: grid;
  gap: 3px;
  padding: 10px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 8px;
}

.seller-profile-details span,
.profile-section-label {
  color: var(--dashboard-muted);
  font-size: 0.62rem;
}

.seller-profile-details strong {
  font-size: 0.69rem;
  overflow-wrap: anywhere;
}

.profile-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.profile-tag {
  padding: 5px 8px;
  background: var(--dashboard-primary-soft);
  color: var(--dashboard-primary-dark);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
}

.profile-tag-empty {
  color: var(--dashboard-muted);
  font-size: 0.67rem;
}

.profile-status-message {
  margin: 0;
  padding: 10px 12px;
  background: var(--dashboard-success-soft);
  color: var(--dashboard-success);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Profile editor */

.profile-editor-panel {
  scroll-margin-top: 25px;
}

#sellerProfileForm {
  display: grid;
  gap: 18px;
}

.profile-logo-editor {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 11px;
}

.profile-logo-editor p {
  margin: 8px 0 0;
  color: var(--dashboard-muted);
  font-size: 0.65rem;
}

.seller-file-button {
  display: inline-block;
  padding: 9px 13px;
  background: var(--dashboard-sidebar);
  color: white;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

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

.seller-form-field {
  display: grid;
  gap: 7px;
}

.seller-form-field > span {
  color: #475467;
  font-size: 0.7rem;
  font-weight: 800;
}

.seller-form-field input,
.seller-form-field textarea {
  width: 100%;
  padding: 11px 12px;
  background: #f9fafb;
  color: var(--dashboard-text);
  border: 1px solid #dce2e8;
  border-radius: 8px;
  outline: none;
  resize: vertical;
}

.seller-form-field input:focus,
.seller-form-field textarea:focus {
  background: white;
  border-color: var(--dashboard-primary);
  box-shadow: 0 0 0 3px rgba(8, 127, 114, 0.1);
}

.seller-form-field input[readonly] {
  background: #eef1f4;
  color: var(--dashboard-muted);
  cursor: not-allowed;
}

.seller-form-field small {
  color: var(--dashboard-muted);
  font-size: 0.62rem;
}

.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
}

.profile-form-actions button {
  min-width: 145px;
}

@media (max-width: 650px) {
  .seller-profile-details,
  .seller-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-logo-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-form-actions {
    flex-direction: column-reverse;
  }

  .profile-form-actions button {
    width: 100%;
  }
}
[hidden] {
  display: none !important;
}

.company-logo-preview img {
  display: block;
}

.company-logo-preview img:not([src]),
.company-logo-preview img[src=""] {
  display: none !important;
}
/* ---------------------------------
   Seller catalogue editor
---------------------------------- */

.catalogue-heading-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.catalogue-editor-panel {
  width: 100%;
  min-width: 0;
  scroll-margin-top: 25px;
}

#catalogueItemForm {
  display: grid;
  gap: 18px;
}

.seller-form-field select {
  width: 100%;
  padding: 11px 12px;
  background: #f9fafb;
  color: var(--dashboard-text);
  border: 1px solid #dce2e8;
  border-radius: 8px;
  outline: none;
}

.seller-form-field select:focus {
  background: white;
  border-color: var(--dashboard-primary);
  box-shadow:
    0 0 0 3px rgba(8, 127, 114, 0.1);
}

.catalogue-image-editor {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 11px;
}

.catalogue-image-preview {
  position: relative;
  display: grid;
  flex: 0 0 150px;
  width: 150px;
  height: 110px;
  place-items: center;
  background:
    linear-gradient(
      135deg,
      var(--dashboard-primary-soft),
      #c8e5ec
    );
  color: var(--dashboard-primary-dark);
  border: 1px solid #cbe9e3;
  border-radius: 13px;
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.catalogue-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalogue-image-controls {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.catalogue-image-controls p {
  margin: 0;
  color: var(--dashboard-muted);
  font-size: 0.65rem;
}

.seller-listing-visual {
  overflow: hidden;
}

.seller-listing-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-listing-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.seller-listing-action {
  padding: 6px 8px;
  background: white;
  color: var(--dashboard-primary);
  border: 1px solid var(--dashboard-border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 800;
}

.seller-listing-action:hover {
  border-color: var(--dashboard-primary);
}

.seller-listing-action.delete {
  color: #a83232;
}

.seller-listing-status.inactive {
  background: #eef1f4;
  color: var(--dashboard-muted);
}

@media (max-width: 700px) {
  .catalogue-heading-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .catalogue-image-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalogue-image-preview {
    width: 100%;
    height: 180px;
    flex-basis: auto;
  }

  .catalogue-image-controls {
    width: 100%;
  }

  .catalogue-image-controls .seller-file-button {
    width: 100%;
    text-align: center;
  }
}
/* ---------------------------------
   Seller buyer-request responses
---------------------------------- */

.request-response-panel {
  width: 100%;
  min-width: 0;
  scroll-margin-top: 25px;
}

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

.request-response-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 10px;
}

.request-response-summary span {
  color: var(--dashboard-muted);
  font-size: 0.63rem;
}

.request-response-summary strong {
  color: var(--dashboard-text);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.request-buyer-message {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--dashboard-border);
  border-left: 4px solid var(--dashboard-primary);
  border-radius: 10px;
}

.request-buyer-message > span {
  color: var(--dashboard-primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.request-buyer-message p {
  margin: 8px 0 0;
  color: var(--dashboard-muted);
  font-size: 0.76rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

#sellerResponseForm {
  display: grid;
  gap: 18px;
}

.request-action-button {
  padding: 7px 10px;
  background: white;
  color: var(--dashboard-primary);
  border: 1px solid var(--dashboard-primary);
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 800;
}

.request-action-button:hover {
  background: var(--dashboard-primary-soft);
}

.request-action-button.has-response {
  background: var(--dashboard-primary);
  color: white;
}

.request-action-button.has-response:hover {
  background: var(--dashboard-primary-dark);
}

.seller-response-success {
  margin: 0;
  padding: 11px 13px;
  background: var(--dashboard-success-soft);
  color: var(--dashboard-success);
  border: 1px solid #bce5d8;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .request-response-summary {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .request-response-summary {
    grid-template-columns: 1fr;
  }

  .request-action-button {
    width: 100%;
  }
}
/* ---------------------------------
   Buyer seller-response viewer
---------------------------------- */

.buyer-response-panel {
  width: 100%;
  min-width: 0;
  scroll-margin-top: 25px;
}

.buyer-response-commercial-details {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.buyer-response-commercial-details article {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 10px;
}

.buyer-response-commercial-details span {
  color: var(--dashboard-muted);
  font-size: 0.65rem;
}

.buyer-response-commercial-details strong {
  color: var(--dashboard-text);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.buyer-response-message {
  padding: 18px;
  background: #f8fafc;
  border: 1px solid var(--dashboard-border);
  border-left: 4px solid var(--dashboard-primary);
  border-radius: 10px;
}

.buyer-response-message > span {
  color: var(--dashboard-primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.buyer-response-message p {
  margin: 9px 0 0;
  color: var(--dashboard-muted);
  font-size: 0.78rem;
  line-height: 1.65;
  white-space: pre-wrap;
}

.buyer-response-date {
  margin: 12px 0 0;
  color: var(--dashboard-muted);
  font-size: 0.66rem;
  text-align: right;
}

.buyer-response-button {
  padding: 7px 10px;
  background: var(--dashboard-primary);
  color: white;
  border: 1px solid var(--dashboard-primary);
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.65rem;
  font-weight: 800;
}

.buyer-response-button:hover {
  background: var(--dashboard-primary-dark);
}

@container (max-width: 360px) {
  .seller-listing-item {
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "visual information"
      "status status"
      "actions actions";
  }

  .seller-listing-status {
    justify-self: start;
  }

  .seller-listing-actions {
    width: 100%;
  }
}

.buyer-response-button.awaiting {
  background: #eef1f4;
  color: var(--dashboard-muted);
  border-color: var(--dashboard-border);
  cursor: default;
}

@media (max-width: 620px) {
  .buyer-response-commercial-details {
    grid-template-columns: 1fr;
  }

  .buyer-response-button {
    width: 100%;
  }
}

.shipment-action-stack {
  display: grid;
  gap: 6px;
  align-items: start;
}

.shipment-evidence-panel {
  margin-top: 20px;
}

.shipment-evidence-reference {
  margin-bottom: 18px;
  color: var(--dashboard-muted);
  font-size: 0.75rem;
}

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

.shipment-evidence-field {
  display: grid;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
}

.shipment-evidence-field input,
.shipment-evidence-field select,
.shipment-evidence-field textarea {
  width: 100%;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--dashboard-border);
  border-radius: 8px;
  font: inherit;
}

.shipment-evidence-field small {
  color: var(--dashboard-muted);
  font-weight: 400;
}

.shipment-evidence-field-wide {
  grid-column: 1 / -1;
}

.shipment-evidence-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

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

  .shipment-evidence-field-wide {
    grid-column: auto;
  }
}

.buyer-delivery-actions {
  display: grid;
  gap: 7px;
}

.buyer-dispute-summary {
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #fff7e8;
  border: 1px solid #ead7ad;
  border-radius: 8px;
  font-size: 0.68rem;
}

.buyer-dispute-summary strong {
  font-size: 0.72rem;
}

.buyer-dispute-summary small {
  color: var(--dashboard-muted);
}

/* Give data-heavy dashboard panels enough horizontal space */
@media (max-width: 1350px) {
  .dashboard-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Buyer dispute form */

.buyer-dispute-panel {
  margin-top: 22px;
}

.buyer-dispute-reference {
  margin: 0 0 18px;
  color: var(--dashboard-muted);
  font-size: 0.74rem;
}

.buyer-dispute-reference strong {
  color: var(--dashboard-text);
}

.buyer-dispute-quantity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.buyer-dispute-quantity-summary article {
  display: grid;
  gap: 5px;
  padding: 13px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 9px;
}

.buyer-dispute-quantity-summary span {
  color: var(--dashboard-muted);
  font-size: 0.66rem;
}

.buyer-dispute-quantity-summary strong {
  font-size: 0.82rem;
}

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

.buyer-dispute-form-grid label {
  display: grid;
  gap: 6px;
}

.buyer-dispute-form-grid label > span {
  font-size: 0.7rem;
  font-weight: 700;
}

.buyer-dispute-form-grid input,
.buyer-dispute-form-grid select,
.buyer-dispute-form-grid textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--dashboard-border);
  border-radius: 7px;
  background: white;
  font: inherit;
}

.buyer-dispute-form-grid textarea {
  resize: vertical;
}

.buyer-dispute-quantity-input {
  display: flex;
  width: 100%;
}

.buyer-dispute-form-grid
.buyer-dispute-quantity-input input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 7px 0 0 7px;
}

.buyer-dispute-unit {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 12px;
  background: var(--dashboard-background);
  color: var(--dashboard-text);
  border: 1px solid var(--dashboard-border);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 800;
}

.buyer-dispute-wide {
  grid-column: 1 / -1;
}

.buyer-dispute-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

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

  .buyer-dispute-wide {
    grid-column: auto;
  }
}

/* ---------------------------------
   Seller dispute management
---------------------------------- */

.seller-dispute-evidence-grid {
  display: grid;
  grid-template-columns: repeat(
    3,
    minmax(0, 1fr)
  );
  gap: 16px;
  margin: 20px 0;
}

.seller-dispute-evidence-card {
  padding: 16px;
  background: var(--dashboard-background);
  border: 1px solid var(--dashboard-border);
  border-radius: 11px;
}

.seller-dispute-evidence-card > span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
}

.seller-dispute-evidence-meta p {
  margin: 5px 0;
  color: var(--dashboard-muted);
  font-size: 0.7rem;
}

.seller-dispute-photo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.seller-dispute-photo-gallery img {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border: 1px solid var(--dashboard-border);
  border-radius: 8px;
}

@media (max-width: 900px) {
  .seller-dispute-evidence-grid {
    grid-template-columns: 1fr;
  }
}

.seller-request-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

/* ---------------------------------
   Buyer demo payment / escrow
---------------------------------- */

.buyer-payment-panel {
  margin-top: 22px;
  padding: 22px;
  background: #f8fbfb;
  border: 1px solid var(--dashboard-border);
  border-radius: 14px;
}

.buyer-payment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.buyer-payment-heading h3 {
  margin: 4px 0 0;
  color: var(--dashboard-text);
  font-size: 1.05rem;
}

.buyer-payment-demo-badge {
  padding: 6px 10px;
  background: #fff1c7;
  color: #795400;
  border: 1px solid #ead28b;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.buyer-payment-intro {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--dashboard-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.buyer-payment-summary {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.buyer-payment-summary > div {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: white;
  border: 1px solid var(--dashboard-border);
  border-radius: 10px;
}

.buyer-payment-summary span,
.buyer-payment-secured-details span {
  color: var(--dashboard-muted);
  font-size: 0.64rem;
}

.buyer-payment-summary strong,
.buyer-payment-secured-details strong {
  color: var(--dashboard-text);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.buyer-payment-warning {
  margin-bottom: 16px;
  padding: 13px 15px;
  background: #fff8e8;
  border: 1px solid #ead49b;
  border-radius: 10px;
}

.buyer-payment-warning strong {
  color: #745100;
  font-size: 0.74rem;
}

.buyer-payment-warning p {
  margin: 5px 0 0;
  color: #7d6a3d;
  font-size: 0.7rem;
  line-height: 1.55;
}

.buyer-demo-card {
  max-width: 560px;
  margin-bottom: 16px;
  padding: 20px;
  background:
    linear-gradient(
      135deg,
      #12233f,
      #087f72
    );
  border-radius: 16px;
  box-shadow:
    0 14px 30px rgba(17, 35, 61, 0.16);
}

.buyer-demo-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
}

.buyer-payment-field-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.buyer-payment-field {
  display: grid;
  gap: 5px;
}

.buyer-payment-field-wide {
  grid-column: 1 / -1;
}

.buyer-payment-field span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.62rem;
}

.buyer-payment-field input {
  width: 100%;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.96);
  color: #12233f;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.76rem;
}

.buyer-payment-button {
  border: 0;
  cursor: pointer;
}

.buyer-payment-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.buyer-payment-secured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--dashboard-success-soft);
  border: 1px solid #bce5d8;
  border-radius: 12px;
}

.buyer-payment-secured-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--dashboard-success);
  color: white;
  border-radius: 50%;
  font-weight: 900;
}

.buyer-payment-secured > div:nth-child(2) strong {
  color: var(--dashboard-success);
  font-size: 0.82rem;
}

.buyer-payment-secured > div:nth-child(2) p {
  margin: 5px 0 0;
  color: var(--dashboard-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.buyer-payment-secured-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.buyer-payment-secured-details > div {
  display: grid;
  gap: 4px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.payment-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
}

.payment-status-chip.secured {
  background: var(--dashboard-success-soft);
  color: var(--dashboard-success);
}

.payment-status-chip.awaiting {
  background: #fff1c7;
  color: #795400;
}

@media (max-width: 760px) {
  .buyer-payment-summary,
  .buyer-payment-secured-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .buyer-payment-field-grid {
    grid-template-columns: 1fr;
  }

  .buyer-payment-field-wide {
    grid-column: auto;
  }
}


/* Read-only logistics evidence viewer */

.shipment-evidence-viewer-panel {
  margin-top: 20px;
}

.shipment-evidence-viewer-grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  );
  gap: 18px;
}

.shipment-evidence-view-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--dashboard-border);
  border-radius: 12px;
  background: white;
}

.shipment-evidence-view-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.shipment-evidence-view-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.shipment-evidence-view-gallery {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  );
  gap: 10px;
}

.shipment-evidence-view-photo-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--dashboard-border);
  border-radius: 10px;
  background: var(--dashboard-background);
}

.shipment-evidence-view-photo {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.shipment-evidence-view-details {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  );
  gap: 10px;
}

.shipment-evidence-view-detail {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--dashboard-border);
  border-radius: 8px;
  background: var(--dashboard-background);
}

.shipment-evidence-view-detail span,
.shipment-evidence-view-notes > span {
  color: var(--dashboard-muted);
  font-size: 0.68rem;
}

.shipment-evidence-view-detail strong {
  font-size: 0.78rem;
}

.shipment-evidence-view-notes {
  display: grid;
  gap: 6px;
}

.shipment-evidence-view-notes p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--dashboard-border);
  border-radius: 8px;
  background: var(--dashboard-background);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .shipment-evidence-viewer-grid {
    grid-template-columns: 1fr;
  }

  .shipment-evidence-view-details {
    grid-template-columns: 1fr;
  }

  .shipment-evidence-view-photo {
    height: 190px;
  }
}


/* ---------------------------------
   Logistics shipment mobile cards
---------------------------------- */

@media (max-width: 760px) {
  .dashboard-table-wrapper {
    overflow: visible;
  }

  .dashboard-table {
    display: block;
    width: 100%;
  }

  .dashboard-table thead {
    display: none;
  }

  .dashboard-table tbody {
    display: grid;
    gap: 14px;
  }

  .dashboard-table tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 14px;
    background: white;
    border: 1px solid var(--dashboard-border);
    border-radius: 12px;
  }

  .dashboard-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.38fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border-bottom: 1px solid var(--dashboard-border);
    word-break: break-word;
  }

  .dashboard-table td::before {
    content: attr(data-label);
    color: var(--dashboard-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .dashboard-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .dashboard-table tbody tr:last-child td {
    border-bottom: 1px solid var(--dashboard-border);
  }

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

  .dashboard-table tbody tr:hover {
    background: white;
  }

  .dashboard-table .dashboard-primary-button {
    width: 100%;
  }

  .shipment-action-stack {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .dashboard-table td {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
