/* ==== Ekran wyników wyszukiwarki (wyszukiwarka/WyszukiwarkaView), 2026-11-23: wygląd Wyszukiwarki Globalnej z L66
   (kopia przerzutki-v1.css / wanted-list-v1.css, prefiks ws-). Wartości z tabeli kanonicznej (docs/UI_STYLE_VAADIN8.md). ==== */
.mytheme .ws-view {
  box-sizing: border-box;
  padding: 14px 18px 12px;
  background: #f7f7f8;
}

.mytheme .ws-view > .v-spacing {
  height: 12px;
}

.mytheme .ws-page-header {
  box-sizing: border-box;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #ead8b8;
  border-radius: 12px;
  background: linear-gradient(115deg, #fff7e8, #fffdf8 58%, #fff);
}

.mytheme .v-label.ws-page-title {
  color: #282828;
  font-size: 27px !important;
  font-weight: 700;
  line-height: 1.25;
}

/* pasek narzędzi */
.mytheme .ws-toolbar {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mytheme .ws-toolbar > .v-spacing {
  width: 8px;
}

.mytheme .ws-toolbar .v-button {
  height: 37px;
  border-radius: 6px;
  font-weight: 700;
}

.mytheme .ws-toolbar .v-textfield {
  height: 37px;
}

/* kafelki liczników źródeł (CssLayout + flex, zawijają się) */
.mytheme .ws-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mytheme .ws-metric-card {
  box-sizing: border-box;
  min-width: 118px;
  min-height: 64px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-left-width: 4px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: box-shadow 120ms, border-color 120ms;
}

.mytheme .ws-metric-card:hover {
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
}

.mytheme .ws-metric-card.ws-metric-active {
  box-shadow: 0 0 0 3px rgba(213, 155, 53, 0.22);
}

.mytheme .ws-metric-all {
  border-color: #e5d6bc;
  border-left-color: #c48b2a;
  background: #fff9ef;
}

.mytheme .ws-metric-zrodlo {
  border-color: #caddea;
  border-left-color: #5f8eae;
  background: #f1f7fb;
}

.mytheme .ws-metric-card .v-label {
  display: block;
  width: 100%;
}

.mytheme .v-label.ws-metric-caption {
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.mytheme .v-label.ws-metric-value {
  margin-top: 2px;
  color: #303030;
  font-size: 22px !important;
  font-weight: 700;
  line-height: 26px;
}

/* lista */
.mytheme .ws-grid-container,
.mytheme .ws-grid-container .v-grid {
  overflow: hidden;
  border-radius: 9px;
}

.mytheme .ws-grid-container {
  border: 1px solid #dedede;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mytheme .ws-grid-container .v-grid {
  border: 0;
}

/* pastylka źródła w tabeli (HtmlRenderer); numer = magazyn (3 Sklep 23%, 5 Złoto, 6 Srebro, 13 Stal), kolory jak w liście w nagłówku */
.mytheme .ws-pill {
  display: inline-block;
  box-sizing: border-box;
  padding: 2px 10px;
  border: 1px solid #caddea;
  border-radius: 999px;
  background: #f1f7fb;
  color: #36566c;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.mytheme .ws-pill-5 {
  border-color: #ead8b8;
  background: #fff3dc;
  color: #6f4900;
}

.mytheme .ws-pill-6 {
  border-color: #dedede;
  background: #f0f0f0;
  color: #565656;
}

.mytheme .ws-pill-13 {
  border-color: #d3dce3;
  background: #eaeff3;
  color: #44525d;
}

/* Archiwum (towar sprzedany, z L66 2026-11-28): brąz nagłówka jak w L66 */
.mytheme .ws-pill-0 {
  border-color: #e3d5c8;
  background: #f3ece6;
  color: #6b4a2b;
}
