.company-report-reference { min-width: 0; }
.company-reference-cards { display: grid; gap: 10px; padding-top: 12px; }
.company-reference-card { background: #fff; border: 1px solid #b9c8dd; border-radius: 8px; overflow: hidden; }
.company-reference-card a { color: #172033; text-decoration: none !important; }
.company-reference-card a:hover { background-color: #f0f6ff; }
.company-reference-report-card { position: relative; }
.company-reference-report-card:hover { background: #f8fbff; }
.company-reference-report-card > header { position: relative; }
.company-reference-report-open { position: absolute; inset: 0; z-index: 1; }
.company-reference-report-open:hover { background: transparent !important; }
.company-reference-report-open:focus-visible { outline: 2px solid var(--action-blue, #1673e6); outline-offset: -3px; }
.company-reference-report-card .company-reference-report-heading { padding-right: 56px; }
.company-reference-report-card .company-reference-report-cells > a { z-index: 2; }
.company-reference-report-download { align-items: center; background: #fff; border: 1px solid #101828; border-radius: 8px; color: #101828 !important; display: inline-flex; height: 32px; justify-content: center; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; z-index: 3; }
.company-reference-report-download svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; width: 18px; }
.company-reference-report-download:focus-visible { outline: 2px solid var(--action-blue, #1673e6); outline-offset: 2px; }
.company-reference-report-heading { display: grid; align-items: center; gap: 12px; grid-template-columns: 110px 150px minmax(0, 1fr); padding: 12px; }
.company-reference-report-heading time { color: #475569; font-size: 12px; }
.company-reference-item-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; }
.company-reference-item-heading small { color: #64748b; }
.company-reference-report-cells { display: grid; grid-template-columns: minmax(200px, 1fr) repeat(3, 125px); gap: 10px; padding: 0 10px 10px; }
.company-reference-report-cells > a { position: relative; min-width: 0; min-height: 64px; border: 1px solid #e2e8f0; border-radius: 7px; background: #f8fafc; padding: 8px 10px 28px; }
.company-reference-card small { display: block; color: #64748b; font-size: 11px; margin-bottom: 4px; }
.company-reference-report-cells > a > strong { position: absolute; bottom: 7px; right: 9px; border-radius: 4px; background: #101828; color: white; padding: 1px 6px; font-size: 11px; }
.company-reference-report-cells > a > b { position: absolute; top: 7px; right: 9px; border-radius: 4px; background: #d92d20; color: white; padding: 1px 6px; font-size: 11px; }
.company-reference-products span { display: block; font-size: 13px; font-weight: 650; }
.company-reference-item-body { display: grid; grid-template-columns: minmax(100px, 1fr) 130px auto; align-items: center; gap: 12px; padding: 0 12px 12px; }
.company-reference-item-body img { width: 96px; height: 80px; object-fit: contain; }
.company-reference-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 18px; }
.company-reference-pagination a, .company-reference-retry { border: 1px solid var(--action-blue, #1673e6); border-radius: 5px; color: var(--action-blue, #1673e6); background: white; padding: 6px 12px; text-decoration: none; }
@media (max-width: 1000px) {
  .company-reference-report-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-reference-products { grid-column: 1 / -1; }
  .company-reference-report-heading { grid-template-columns: max-content minmax(0, 1fr); }
  .company-reference-report-heading b { grid-column: 1 / -1; }
}

.company-address-detail-drawer button.is-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.company-reference-nav-label { flex: 1 1 auto; min-width: 0; white-space: normal; }
.company-reference-nav-count { flex: 0 0 auto; margin-left: auto; font-variant-numeric: tabular-nums; }

/* The navigation and selected content are independent cards. */
.company-address-detail-panel .company-address-detail-layout {
  align-items: start;
  border: 0;
  border-radius: 0;
  gap: 16px;
}
.company-address-detail-panel .company-address-detail-drawer,
.company-address-detail-panel .company-address-detail-page {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-sizing: border-box;
  max-height: 100%;
}
.company-address-detail-panel .company-address-detail-drawer {
  overflow-y: auto;
}
.company-address-detail-panel .company-address-detail-page {
  background: #fff;
  padding: 0;
}
.company-address-detail-panel .company-address-detail-page > .company-address-detail-section {
  border: 0;
  border-radius: inherit;
}
.company-address-detail-panel .company-reference-cards {
  padding: 12px;
}
@media (max-width: 760px) {
  .floating-contract-shell .company-address-detail-panel .company-address-detail-page {
    padding: 0 !important;
  }
  .floating-contract-shell .company-address-detail-drawer-toggle {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
  }
}

/* Product references use the same ITEM cards as category/product pages. */
.company-address-detail-panel .company-address-detail-page--products {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.company-address-detail-panel .company-product-reference .company-reference-cards {
  padding: 0;
  gap: 12px;
}
.company-product-reference { container: company-products / inline-size; }
/* Embedded reference areas can be narrow even when the browser itself is wide. */
@container company-products (max-width: 1100px) {
  .company-product-reference .category-item-card { display: grid; gap: 12px; grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 10px; }
  .company-product-reference .category-item-card > header { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
  .company-product-reference .category-item-heading { padding: 0; }
  .company-product-reference .category-item-card > .category-item-cells { display: contents; }
  .company-product-reference .category-item-cells > :first-child { grid-column: 1 / -1; grid-row: 2; }
  .company-product-reference .category-item-summary { grid-column: 1 / span 4; grid-row: 3; }
  .company-product-reference .category-item-warehouse { grid-column: 5 / span 4; grid-row: 3; }
  .company-product-reference .category-item-taxonomy { grid-column: 9 / span 4; grid-row: 3; }
  .company-product-reference .category-item-card--with-picture > header,
  .company-product-reference .category-item-card--with-picture .category-item-cells > :first-child { grid-column: 1 / span 8; }
  .company-product-reference .category-picture { grid-column: 9 / span 4; grid-row: 1 / span 2; margin: 0; }
}
@container company-products (max-width: 540px) {
  .company-product-reference .category-item-summary { grid-column: 1 / span 4; }
  .company-product-reference .category-item-warehouse { grid-column: 5 / span 8; }
  .company-product-reference .category-item-taxonomy { grid-column: 1 / -1; grid-row: 4; }
}

/* Company details use full-width main/secondary navigation at every size. */
.floating-contract-shell .company-address-detail-panel .company-address-detail-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-items: stretch;
  gap: 0;
  min-height: 0 !important;
}
.company-address-detail-navigation { background: #fff; min-width: 0; padding-bottom: 12px; }
:root body .company-address-detail-navigation .company-address-main-tabs {
  margin: 0;
  max-width: 100%;
  width: 100%;
}
:root body .company-address-detail-navigation .company-address-subtabs {
  margin: 8px 0 0;
  max-width: 100%;
  vertical-align: top;
}
:root body .company-address-subtabs > button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  box-shadow: none;
  box-sizing: border-box;
  color: #667085;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  gap: 8px;
  height: 100%;
  justify-content: center;
  line-height: 1.4;
  min-height: 0;
  padding: 0 16px;
  white-space: nowrap;
  width: auto;
}
:root body .company-address-subtabs > button[aria-selected="true"] {
  background: #fff;
  border-color: #d9dadd;
  box-shadow: 0 1px 2px rgb(16 24 40 / 10%);
  color: #344054;
}
:root body .company-address-detail-navigation button:focus-visible { outline: 2px solid #1673e6; outline-offset: -3px; }
:root body .company-address-detail-navigation [hidden] { display: none !important; }
.floating-contract-shell .company-address-detail-panel .company-address-detail-page {
  border: 0;
  border-radius: 0;
  padding: 0 !important;
}

/* Nested labels inherit the standard main-tab selected/unselected colors. */
:root body .company-address-main-tabs > button > span:first-child {
  color: inherit;
  cursor: inherit;
}
