.catalog-source-title {
  margin: 8px 0 0;
  padding: 12px 0 2px;
  border-top: 1px solid #d7e4f0;
  color: #0c2f5a;
  font: 800 12px Manrope;
}

.catalog-source-title small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font: 500 9px Manrope;
}

.catalog-source b,
.catalog-source small {
  display: block;
}

.catalog-source small {
  margin-top: 3px;
  color: var(--muted);
  white-space: nowrap;
}

.catalog-source-link {
  display: inline-block;
  margin-top: 6px;
  color: #0878ed;
  font-weight: 800;
  text-decoration: none;
}

.catalog-source-link:hover {
  text-decoration: underline;
}

.catalog-source-empty {
  color: var(--muted);
  font-size: 9px;
}

.quote-catalog-table table {
  min-width: 1120px;
}

.catalog-toolbar { align-items: center; }
.catalog-toolbar > input { min-width: 320px; }
.catalog-toolbar #refreshCatalogPrices { flex: none; min-width: 170px; white-space: nowrap; }
.catalog-toolbar #refreshCatalogPrices:disabled { cursor: wait; opacity: .65; }
.catalog-refresh-status { flex: 1 1 100%; min-height: 16px; color: var(--muted); font-size: 9px; font-weight: 700; }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 2px 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.catalog-pagination > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.catalog-pagination button { min-width: 38px; height: 38px; padding: 0 11px; border: 1px solid #cbddec; border-radius: 10px; background: #fff; color: #244b75; font: 800 12px Manrope; cursor: pointer; }
.catalog-pagination button:hover:not(:disabled), .catalog-pagination button.active { border-color: #0878ed; background: #0878ed; color: #fff; }
.catalog-pagination button:disabled { cursor: default; opacity: .45; }

.quote-catalog-table tbody tr[data-catalog-view] { cursor: pointer; transition: background-color .16s ease; }
.quote-catalog-table tbody tr[data-catalog-view]:hover td { background-color: #f7fbff; }

.quote-catalog-table th:last-child,
.quote-catalog-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  min-width: 88px;
  background: #fff;
  box-shadow: -8px 0 12px -12px #244b75;
  text-align: center;
}

.quote-catalog-table th:last-child {
  z-index: 3;
  background: #f3f8fd;
}

.quote-catalog-table td:last-child .row-action {
  width: 100%;
  white-space: nowrap;
}

.catalog-row-actions {
  display: grid;
  gap: 6px;
}

.quote-catalog-table td:last-child .catalog-delete {
  border-color: #f1b5b0;
  color: #b42318;
  background: #fff8f7;
}

.quote-catalog-table td:last-child .catalog-delete:hover {
  border-color: #d92d20;
  background: #fff0ee;
}

.catalog-view-modal { width: min(760px, calc(100vw - 28px)); }
.catalog-view-badges { display: flex; gap: 10px; margin: 4px 0 20px; }
.catalog-view-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catalog-view-grid > div { padding: 15px; border: 1px solid #d8e5f2; border-radius: 14px; background: #f8fbff; }
.catalog-view-grid .wide { grid-column: 1 / -1; }
.catalog-view-grid small, .catalog-view-grid strong, .catalog-view-grid p { display: block; }
.catalog-view-grid small { margin-bottom: 5px; color: #61748d; font-size: 10px; font-weight: 800; letter-spacing: .07em; }
.catalog-view-grid strong, .catalog-view-grid p { margin: 0; color: #10243f; white-space: pre-wrap; }
.catalog-view-grid .catalog-source-link, .catalog-view-grid .catalog-source-empty { display: block; }

@media (max-width: 620px) {
  .catalog-view-grid { grid-template-columns: 1fr; }
  .catalog-view-grid .wide { grid-column: auto; }
  .catalog-toolbar #refreshCatalogPrices { width: 100%; }
  .catalog-pagination { align-items: stretch; flex-direction: column; }
  .catalog-pagination > div { justify-content: flex-start; }
}

.callcenter-portal #quotes .quote-summary,
.callcenter-portal #quotes [data-quote-tab="quoteDocumentsPanel"],
.callcenter-portal #quoteDocumentsPanel,
.callcenter-portal .quote-catalog-table th:nth-child(6),
.callcenter-portal .quote-catalog-table td:nth-child(6),
.callcenter-portal .quote-catalog-table th:last-child,
.callcenter-portal .quote-catalog-table td:last-child { display: none; }

.callcenter-portal #quotes .quote-tabs { margin-top: 4px; }
.callcenter-portal #quoteCatalogPanel .filters input { min-width: min(520px, 65vw); }

.topbar .search { position: relative; }
.global-catalog-suggestions { display: none; position: absolute; z-index: 40; top: calc(100% + 10px); left: 0; width: min(620px, 80vw); max-height: 430px; overflow: auto; padding: 7px; border: 1px solid #cbddec; border-radius: 14px; background: #fff; box-shadow: 0 20px 55px rgba(4,35,70,.2); }
.global-catalog-suggestions.open { display: block; }
.global-catalog-suggestions button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 13px; border: 0; border-bottom: 1px solid #e7eef6; background: #fff; color: #10243f; text-align: left; cursor: pointer; }
.global-catalog-suggestions button:last-child { border-bottom: 0; }
.global-catalog-suggestions button:hover, .global-catalog-suggestions button.active { background: #edf6ff; border-radius: 9px; }
.global-catalog-suggestions button span, .global-catalog-suggestions button b, .global-catalog-suggestions button small, .global-catalog-suggestions button em { display: block; min-width: 0; }
.global-catalog-suggestions button b { font: 800 12px Manrope; }
.global-catalog-suggestions button small { margin-top: 2px; color: #0878ed; font-size: 9px; font-weight: 800; }
.global-catalog-suggestions button em { max-width: 440px; margin-top: 4px; overflow: hidden; color: #6b7d92; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.global-catalog-suggestions button strong { flex: none; color: #0c2f5a; font: 800 11px Manrope; }
.global-catalog-suggestions > p { margin: 0; padding: 18px; color: #6b7d92; text-align: center; }

@media (max-width: 620px) {
  .global-catalog-suggestions { position: fixed; top: 68px; right: 12px; left: 12px; width: auto; }
}
