.rn-search-section,
.rn-search-admin {
  background: #f6f8fb;
  box-sizing: border-box;
  color: #14213d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 36px 18px 44px;
}

.rn-search-inner,
.rn-search-admin-inner {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto;
  min-width: 0;
}

.rn-search-block,
.rn-search-submit,
.rn-search-admin-form {
  background: #ffffff;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  margin-top: 18px;
  min-width: 0;
  padding: 20px;
}

.rn-search-block:first-child {
  margin-top: 0;
}

.rn-search-section h2,
.rn-search-section h3,
.rn-search-admin h2,
.rn-search-admin h3 {
  color: #101828;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 8px;
}

.rn-search-section p,
.rn-search-admin p {
  color: #475467;
  line-height: 1.55;
  margin: 0 0 14px;
  overflow-wrap: anywhere;
}

.rn-search-empty,
.rn-search-status {
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 8px;
  color: #1d3b75;
  padding: 12px 14px;
}

.rn-search-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.rn-search-table {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
}

.rn-search-table th,
.rn-search-table td {
  border-bottom: 1px solid #e4e7ec;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.rn-search-table th {
  background: #f8fafc;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.rn-search-table td {
  color: #101828;
  font-size: 14px;
}

.stock-table.rn-provider-table thead th:nth-child(1) {
  width: 37%;
}

.stock-table.rn-provider-table thead th:nth-child(2) {
  width: 12%;
}

.stock-table.rn-provider-table thead th:nth-child(3) {
  width: 15%;
}

.stock-table.rn-provider-table thead th:nth-child(4) {
  width: 11%;
}

.stock-table.rn-provider-table thead th:nth-child(5) {
  width: 13%;
}

.stock-table.rn-provider-table thead th:nth-child(6) {
  width: 12%;
}

.verified-provider-cell {
  color: #596777;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.rn-search-form,
.rn-search-admin-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rn-search-admin-forms {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  margin: 18px 0;
}

.rn-search-admin-form .rn-specifications,
.rn-search-admin-form .rn-search-extra-specs {
  grid-column: 1 / -1;
}

.rn-search-extra-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 0;
}

.rn-search-extra-specs summary { cursor: pointer; font-weight: 700; }
.rn-search-admin-form .rn-search-cancel[hidden] { display: none; }

.rn-search-form label,
.rn-search-admin-form label {
  color: #344054;
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  min-width: 0;
}

.rn-search-admin-form h3 {
  grid-column: 1 / -1;
}

.rn-search-form input,
.rn-search-admin-form input,
.rn-search-admin-form select,
.rn-search-admin-table select {
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  box-sizing: border-box;
  color: #101828;
  font: inherit;
  min-height: 42px;
  min-width: 0;
  padding: 9px 10px;
  width: 100%;
}

.rn-search-form input:focus,
.rn-search-admin-form input:focus,
.rn-search-admin-form select:focus,
.rn-search-admin-table select:focus {
  border-color: #285ca8;
  box-shadow: 0 0 0 3px rgba(40, 92, 168, 0.14);
  outline: 0;
}

.rn-search-form button,
.rn-search-admin button,
.rn-search-admin-form button {
  align-self: end;
  background: #173f74;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  min-height: 42px;
  padding: 10px 14px;
  white-space: normal;
}

.rn-search-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.rn-search-admin-table button {
  font-size: 13px;
  margin: 0 6px 6px 0;
  min-height: 34px;
  padding: 7px 10px;
}

.rn-search-hp {
  display: none !important;
}

.rn-search-admin-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

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

@media (max-width: 620px) {
  .rn-search-section,
  .rn-search-admin {
    padding: 24px 12px 32px;
  }

  .rn-search-block,
  .rn-search-submit,
  .rn-search-admin-form {
    padding: 16px;
  }

  .rn-search-form,
  .rn-search-admin-form,
  .rn-search-admin-forms {
    grid-template-columns: 1fr;
  }

  .rn-search-form button,
  .rn-search-admin-form button {
    width: 100%;
  }

  .rn-search-admin-head {
    display: block;
  }

  .rn-search-table {
    min-width: 620px;
  }

}

@media (max-width: 600px) {
  .stock-table.rn-provider-table {
    min-width: 0;
  }

  .stock-table.rn-provider-table .stock-row .verified-provider-cell {
    grid-column: 1;
    grid-row: 2;
    padding-top: 2px;
  }

  .stock-table.rn-provider-table .stock-row .verified-provider-cell::before {
    color: var(--muted);
    content: attr(data-label);
    display: block;
    font-size: 9px;
    margin-bottom: 3px;
  }

  .stock-table.rn-provider-table .stock-row .location-cell {
    grid-column: 2;
    grid-row: 2;
  }

  .stock-table.rn-provider-table .stock-row .quantity-cell {
    grid-column: 1;
    grid-row: 3;
  }

  .stock-table.rn-provider-table .stock-row .availability-cell {
    grid-column: 2;
    grid-row: 3;
  }

  .stock-table.rn-provider-table .stock-row .item-actions {
    grid-column: 3;
    grid-row: 2 / 4;
  }
}
