/* Zakładka "Sprawdź IMEI" (imei/SprawdzImeiView) i okno WindowSprawdzImei (Magazyn firmy, nowa umowa), 2026-10-22.
   Kopia wanted-list-v1.css (nagłówek strony) + karty kroków z sale-form-v1.css ze zmienionym prefiksem.
   Wartości z tabeli kanonicznej w docs/UI_STYLE_VAADIN8.md. */

.mytheme .imei-view {
  box-sizing: border-box;
  padding: 14px 18px 12px;
  background: #f7f7f8;
}

.mytheme .imei-view > .v-spacing,
.mytheme .imei-panel > .v-spacing {
  height: 12px;
}

/* nagłówek strony */
.mytheme .imei-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.imei-page-title {
  color: #282828;
  font-size: 27px !important;
  font-weight: 700;
  line-height: 1.25;
}

.mytheme .v-label.imei-page-subtitle {
  margin-top: 4px;
  color: #666;
  font-size: 13px;
  font-weight: 400;
  white-space: normal;
}

/* karta kroku */
.mytheme .imei-card {
  box-sizing: border-box;
  padding: 17px 19px 19px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-top: 2px solid rgba(213, 155, 53, 0.62);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mytheme .imei-step-header {
  box-sizing: border-box;
  padding-bottom: 13px;
  border-bottom: 1px solid #e8e8e8;
}

.mytheme .v-label.imei-step-number {
  box-sizing: border-box;
  width: 34px !important;
  height: 34px;
  padding-top: 6px;
  border-radius: 50%;
  background: #d59b35;
  color: #17130c;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 0 4px rgba(213, 155, 53, 0.12);
}

.mytheme .v-label.imei-step-title {
  color: #303030;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.3;
}

.mytheme .v-label.imei-step-description {
  margin-top: 2px;
  color: #6e6e6e;
  font-size: 12px;
  font-weight: 400;
  white-space: normal;
}

.mytheme .v-label.imei-pomoc {
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
}

.mytheme .v-label.imei-podpis {
  margin-top: 4px;
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* przyciski w kartach */
.mytheme .imei-panel .v-button,
.mytheme .imei-view .v-button {
  height: 37px;
  border-radius: 6px;
  font-weight: 700;
}

/* pole numeru: cyfry równej szerokości, większe niż zwykłe pola */
.mytheme .v-textfield.imei-numer {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.mytheme .v-label.imei-blad {
  color: #c65353;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
}

/* co sprawdzamy (towar) - pole kontekstu jak w oknach */
.mytheme .v-label.imei-kontekst {
  box-sizing: border-box;
  padding: 8px 12px;
  border-left: 3px solid #d59b35;
  background: #fff8ec;
  color: #303030;
  font-size: 13px;
  font-weight: 600;
  white-space: normal;
}

/* blokada u któregoś operatora - czerwony kafelek (jak pasek komunikatu w nagłówku) */
.mytheme .v-label.imei-ostrzezenie {
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #efc9c9;
  border-left: 4px solid #c65353;
  border-radius: 9px;
  background: #fff0f0;
  color: #8a2f2f;
  font-size: 14px;
  white-space: normal;
}

/* "Numer był już sprawdzany ..." - pastylka informacyjna */
.mytheme .v-label.imei-podsumowanie {
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 9px;
  background: #f4f4f4;
  color: #565656;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
}

/* kafelki operatorów: 4 w rzędzie, w oknie po 2 (zawijanie przez flex) */
.mytheme .imei-operatorzy {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
}

.mytheme .imei-operatorzy > .v-verticallayout.imei-operator {
  box-sizing: border-box;
  flex: 1 1 200px;
  min-width: 200px;
  padding: 12px 14px 14px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mytheme .imei-operatorzy > .imei-operator > .v-slot {
  margin-top: 8px;
}

.mytheme .imei-operatorzy > .imei-operator > .v-slot:first-child {
  margin-top: 0;
}

.mytheme .imei-operatorzy > .v-verticallayout.imei-operator-blokada {
  border-color: #efc9c9;
  background: #fff0f0;
}

.mytheme .v-label.imei-operator-nazwa {
  color: #303030;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.3;
}

.mytheme .v-label.imei-operator-stan {
  min-height: 18px;
  color: #565656;
  font-size: 12px;
  white-space: normal;
}

.mytheme .imei-wyniki {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
}

.mytheme .imei-wyniki .v-button.imei-wynik {
  flex: 1 1 auto;
  padding: 0 10px;
  font-size: 13px;
  box-shadow: none;
  background-image: none;
}

.mytheme .imei-wyniki .v-button.imei-wynik-brak_blokady {
  border: 1px solid #cfe3cf;
  background-color: #f0f8ef;
  color: #2f6b2a;
}

.mytheme .imei-wyniki .v-button.imei-wynik-blokada {
  border: 1px solid #efc9c9;
  background-color: #fff0f0;
  color: #a33f3f;
}

.mytheme .imei-wyniki .v-button.imei-wynik-czeka {
  border: 1px solid #e5d6bc;
  background-color: #fff9ef;
  color: #6f4900;
}

/* pastylki statusów */
.mytheme .imei-pill {
  display: inline-block;
  box-sizing: border-box;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.mytheme .imei-pill-brak {
  background: #f0f0f0;
  color: #777;
}

.mytheme .imei-pill-czysty {
  background: #e8f5e6;
  color: #2f6b2a;
}

.mytheme .imei-pill-czeka {
  background: #fff3dc;
  color: #6f4900;
}

/* blokada ostrzega mocniej niż pastelowe (jak klient "Złodziej") */
.mytheme .imei-pill-blokada {
  border: 1px solid #c65353;
  background: #c65353;
  color: #fff;
}

.mytheme .imei-zdarzenie-wpisano {
  color: #6e6e6e;
}

.mytheme .imei-zdarzenie-kontakt {
  color: #6e6e6e;
  font-size: 12px;
}

.mytheme .v-grid-row.imei-wiersz-blokada:not(.v-grid-row-selected) > td {
  background-color: #fff0f0;
}

/* okno: tło jak widok, karty na nim */
.mytheme .imei-window .imei-window-tresc {
  background: #f7f7f8;
}

.mytheme .imei-window .v-window-contents > .v-scrollable {
  background: #f7f7f8;
}
