@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  font-family: Inter;
  font-weight: 400 !important;

  color: #fff;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(40, 41, 64);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

body.loaded #preloader {
  opacity: 0;
  pointer-events: none;
}

body {
  background: radial-gradient(circle, #131b2c 0%, #0c1220 90%);
  overflow: hidden;
  padding: 0;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;

  margin: 0;
  border: 0;
}

.background {
  width: 100%;
  height: 100%;

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.background>.gorny_panel {
  width: 100%;
  height: 10%;

  border-bottom: 0.1px solid #ffffff;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* lewo | Ã…â€ºrodek | prawo */
  align-items: center;
}

.background>.gorny_panel>.przyciskilewo {
  justify-self: start;
  display: flex;
  gap: 1.5vh;
  margin-left: 2vh;
}

.background>.gorny_panel>.przyciskilewo>.btndiv {
  /*width:33.3%;*/
  height: 100%;

  display: flex;
  align-items: center;
}

.background>.gorny_panel>.przyciskilewo>.btndiv>.btn {
  border: 0.1vh solid #1f2b3e;

  background: #101726;
  padding: 1.6vh 3vh;

  font-size: 1.6vh;
  color: #fff;

  border-radius: 0.6vh;

  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-block;
  }
}

.background>.gorny_panel>.przyciskilewo>.btndiv>.btn:hover {
  background: #1a2135;
  cursor: pointer;
}

.background>.gorny_panel>.searchdiv {
  height: 100%;
  justify-self: center;

  display: flex;
  align-items: center;
  justify-content: center;
}

.background>.gorny_panel>.searchdiv>#search_pro {
  border: 0.1vh solid #1f2b3e;
  background: #101726;

  width: 55vh;
  max-width: 60vw;
  /* Ã…Â¼eby siÃ„â„¢ nie wywaliÃ…â€šo na maÃ…â€šych */

  height: 34%;

  margin: 0;
  outline: none;

  padding: 1vh;

  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);

  font-size: 1.6vh
}




.background>.gorny_panel>.btndiv2 {
  justify-self: end;
  height: 100%;

  margin-right: 2vh;

  display: flex;
  align-items: center;
  gap: 1.5vh;
}

.background>.gorny_panel>.btndiv2>.dropdown {
  position: relative;
  display: inline-block;
  font-family: "Inter", sans-serif;

  font-size: 1.6vh;
}

.background>.gorny_panel>.btndiv2>.dropdown>.dropdown-toggle {
  background: #101726;
  border: 0.1vh solid #1f2b3e;
  border-radius: 0.6vh;
  padding: 1.6vh 1.5vh;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 7vh;

  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);
}

.background>.gorny_panel>.btndiv2>.dropdown .arrow {
  margin-left: 1vh;
  transition: transform 0.3s ease;
}

.dropdown.open .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;

  background: #101726;
  border: 0.1vh solid #1f2b3e;
  border-radius: 0.6vh;
  margin: 0.5vh 0 0 0;
  padding: 0.9vh 0;
  list-style: none;
  display: none;
  animation: fadeIn 0.2s ease;
  z-index: 1000;

  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);
}

.fi {
  font-size: 1.3vh;
}

.dropdown.open .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu li {
  padding: 1vh 1vh;
  cursor: pointer;
  transition: background 0.2s;

  display: flex;
  align-items: center;
  gap: 0.6vh;
}

.dropdown-menu li:hover {
  background: #1a2135;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}





.background>.gorny_panel>.btndiv2>.wylogujdiv {
  border: 0.1vh solid #1f2b3e;
  background: #101726;

  padding: 0.7vh 1.5vh;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1vh;

  border-radius: 0.6vh;

  min-width: 15vh;
}

.background>.gorny_panel>.btndiv2>.wylogujdiv>.text {
  font-size: 1.6vh;
}

.background>.gorny_panel>.btndiv2>.wylogujdiv>i {
  padding: 1.1vh;
  font-size: 1.6vh;
  border-radius: 100%;
  background: #1d2c4a;
}

.wylogujdiv .logouticon {
  display: none;
}

.wylogujdiv:hover .usericon {
  display: none;
}

.wylogujdiv:hover .logouticon {
  display: inline-block;
}

.jezyk>.dropdown:hover .dropdown-toggle,
.background>.gorny_panel>.btndiv2>.wylogujdiv:hover,
.background>.gorny_panel>.btndiv2>.dropdown:hover .dropdown-toggle {
  background: #1a2135;
  cursor: pointer;
}







.background>.dolny_panel {
  width: 100%;
  height: 88%;

  display: flex;
  justify-content: space-between;
}

.background>.dolny_panel>.filtry {
  width: 33vh;

  display: flex;
  align-items: center;
  flex-direction: column;

  gap: 0.7vh;

  margin-top: 2.5vh;
}

.background>.dolny_panel>.filtry>.btn {
  border: 0.1vh solid #1f2b3e;

  background: radial-gradient(circle, #35455a 0%, #2b394a 90%);
  padding: 1.6vh 3vh;

  font-size: 1.6vh;
  color: #fff;
  border-radius: 0.6vh;

  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);

  width: 70%;
}

.background>.dolny_panel>.filtry>.btn:hover {
  background: #1a2135;
  cursor: pointer;
}

.background>.dolny_panel>.filtry>.btn.active {
  background: #1a2135;
  color: #6ea8fe;
  border-color: #2b3a55;
}

.background>.dolny_panel>.siatka {
  width: 170vh;
  height: 88vh;

  margin-top: 1vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.background>.dolny_panel>.siatka>.shelf-grid {
  position: relative;
  z-index: 0;

  display: grid;
  grid-template-columns: repeat(12, 12.5vh);
  grid-template-rows: repeat(7, 11.5vh);
  gap: 0.7vh;
}

.background>.dolny_panel>.siatka>.shelf-grid>.grid-cell {
  border: 0.01vh solid #8d8d8d3b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #35455a 0%, #2b394a 90%);

  border-radius: 0.5vh;

  position: relative;
  cursor: pointer;
  font-size: 1.5vh;
  text-align: center;
  padding: 5px;

  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow: visible;

  z-index: 1;

  transition: 100ms;

  text-shadow: 0.15vh 0.15vh 0.6vh #000000;
}

.grid-cell.resetting {
  opacity: 0.3;
  background: radial-gradient(circle, #2a3340 0%, #1c2430 90%);
}

.background>.dolny_panel>.siatka>.shelf-grid>.grid-cell.highlighted {
  opacity: 1;
  background: radial-gradient(circle, #99d099 0%, #6ba56b 90%);
}

.background>.dolny_panel>.siatka>.shelf-grid>.grid-cell.filled_wyroba {
  opacity: 1;
  background: radial-gradient(circle, #d9badd 0%, #886091 90%);
}

.background>.dolny_panel>.siatka>.shelf-grid>.grid-cell.filled_drut {
  opacity: 1;
  background: radial-gradient(circle, #a3b7cb 0%, #4b637b 90%);
}

.background>.dolny_panel>.siatka>.shelf-grid>.grid-cell.filled_inne {
  opacity: 1;
  background: radial-gradient(circle, #d7d7b4 0%, #a49e62 90%);
}

.shelf-grid .grid-cell:nth-child(12n + 3),
.shelf-grid .grid-cell:nth-child(12n + 6),
.shelf-grid .grid-cell:nth-child(12n + 9),
.shelf-grid .grid-cell:nth-child(12n + 12) {
  border-right: 0.4vh solid #d8d8d84f !important;
}

.shelf-grid .grid-cell:nth-child(12n + 1),
.shelf-grid .grid-cell:nth-child(12n + 4),
.shelf-grid .grid-cell:nth-child(12n + 7),
.shelf-grid .grid-cell:nth-child(12n + 10) {
  border-left: 0.4vh solid #d8d8d84f !important;
}

.background>.dolny_panel>.siatka>.shelf-grid>.grid-cell:hover {
  transition: 100ms;
  border: 0.01vh solid #e4e4e4;

  z-index: 9999 !important;
}

.background>.dolny_panel>.siatka>.shelf-grid>.grid-cell>.opis {
  width: 100%;
  min-width: 0;
  /* kluczowe przy flex! */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  /* ile linii */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  text-align: center;
}

.background>.dolny_panel>.siatka>.shelf-grid>.grid-cell>.numer_kafelka {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.4vh;

  color: #ffffff85;
  font-size: 1.25vh;
  font-weight: 500 !important;

  z-index: 9999 !important;
}

.grid-cell.dimmer {
  opacity: 0.4;
  filter: brightness(0.3);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

#tooltip {
  position: fixed;
  background: #1a2135;
  color: #fff;
  padding: 0.8vh 1.2vh;
  border-radius: 0.6vh;
  font-size: 1.5vh;
  line-height: 2.1vh;
  box-shadow: 0 0.3vh 0.8vh rgba(0, 0, 0, 0.4);
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-50%);
  z-index: 99999;
}

.tooltip_jedn_kolor {
  color: #ffffffaa;
}

#tooltip.show {
  opacity: 1;
}















/* ladowanie */

.kontener {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  background: radial-gradient(circle, #35455ad8 0%, #2b394ad8 90%);
  padding: 4vh;
  border-radius: 2.5vh;
  border: 0.5vh solid #657e9e61;

  box-shadow: 0 0.2vh 4vh rgb(0 0 0 / 60%);
}

.kontener>.text {
  font-size: 3vh;
  color: #fff;
  margin-top: 0.5vh;
  margin-bottom: 2vh;
}

.kontener>.logo {
  width: 40vh;
}

.kontener2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border-radius: 1.5vh;

  width: 20vh;
  padding: 2vh;
  background: #a4a3a340;
}

.jezyki {
  display: flex;
  justify-content: center;
}

.jezykphoto {
  width: 2vh;
}

button {
  background: none;
  border: none;

  cursor: pointer;
}

button:focus {
  outline: none;
}

.kontener>.btndiv222 {
  width: 95%;

  display: flex;
  align-items: center;
  flex-direction: column;

  gap: 1vh;

  height: 10vh;
}

.btndiv222>.dropdown2 {
  position: relative;
  display: inline-block;
  font-family: "Inter", sans-serif;

  font-size: 1.4vh;
}

.btndiv222 .dropdown2>.dropdown2-toggle {
  background: #101726;
  border: 0.1vh solid #1f2b3e;
  border-radius: 0.6vh;
  padding: 1.6vh 1.5vh;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 25vh;

  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);
}

.btndiv222 .dropdown2 .arrow {
  margin-left: 1vh;
  transition: transform 0.3s ease;
}

.dropdown2.open .arrow {
  transform: rotate(180deg);
}

.dropdown2-menu {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;

  max-height: 30vh;
  overflow: auto;

  background: #101726;
  border: 0.1vh solid #1f2b3e;
  border-radius: 0.6vh;
  margin: 0.5vh 0 0 0;
  padding: 0.9vh 0;
  list-style: none;
  display: none;
  animation: fadeIn 0.2s ease;
  z-index: 1000;

  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);
}

.dropdown2-menu::-webkit-scrollbar {
  width: 0.4vh;
}

.dropdown2-menu::-webkit-scrollbar-track {
  background: transparent;
}

.dropdown2-menu::-webkit-scrollbar-thumb {
  background: #657e9e61;
  border-radius: 1vh;

  transition: background 0.5s ease;
}

.dropdown2-menu::-webkit-scrollbar-thumb:hover {
  background: #657e9e;

  transition: background 0.5s ease;
}

.dropdown2.open .dropdown2-menu {
  display: block;
}

.dropdown2-menu li {
  padding: .8vh 2vh;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown2-menu li:hover {
  background: #1a2135;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btndiv222>.wylogujdiv2 {
  border: 0.1vh solid #1f2b3e;
  background: #101726;

  padding: 0.7vh 1.5vh;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1vh;

  border-radius: 0.6vh;

  min-width: 20vh;

  font-size: 1.5vh
}

.btndiv222>.wylogujdiv2>.text {
  font-size: 1.6vh;
}

.btndiv222>.wylogujdiv2>i {
  padding: 1.1vh;
  font-size: 1.5vh;
  border-radius: 100%;
  background: #1d2c4a;
}

.btndiv222>.wylogujdiv2:hover .logouticon {
  display: inline-block;
}

.btndiv222>.wylogujdiv2:hover,
.btndiv222>.dropdown2:hover .dropdown2-toggle {
  background: #1a2135;
  cursor: pointer;
}

.jezyk {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%, -50%);

  display: flex;
  justify-content: center;
  align-items: center;
}

.jezyk>.dropdown {
  position: relative;
  display: inline-block;
  font-family: "Inter", sans-serif;

  font-size: 1.6vh;
}

.jezyk>.dropdown>.dropdown-toggle {
  background: #101726;
  border: 0.1vh solid #1f2b3e;
  border-radius: 0.6vh;
  padding: 1.6vh 1.5vh;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 7vh;

  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);
}

.dropdown-toggle span {
  display: flex;
  justify-content: center;
  gap: 0.5vh;
}

.jezyk>.dropdown .arrow {
  margin-left: 1vh;
  transition: transform 0.3s ease;
}






#item-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#item-modal.show {
  opacity: 1;
  pointer-events: all;
}


#item-modal .modal {
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#item-modal.show .modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.modal {
  position: absolute;

  background: #0f1221;
  border: 0.1vh solid #1f2b3e;
  box-shadow: 0 0.2vh 4vh rgba(0, 0, 0, 0.6);

  width: 25%;

  padding: 3vh 1vh;

  position: absolute;
  left: 50%;
  top: 50%;

  z-index: 500;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;

  border-radius: 1.0vh;
}

.modal>.podsekcja {
  width: 100%;
  gap: 1vh;
  
  max-height:70vh;
  overflow-y: auto;   /* scroll w pionie */
  overflow-x: hidden; /* brak poziomego scrolla */
  
  display: flex;
  flex-direction: column;
  align-items: center;

  -webkit-overflow-scrolling: touch; /* płynny scroll na telefonach */
}

.modal>*>*>input,
.modal>*>input {
  background: radial-gradient(circle, #35455a 0%, #2b394a 90%);
  border: 0.1vh solid #1f2b3e;

  width: 90%;
  font-size: 1.4vh;
  outline: none;

  border-radius: 0.5vh;

  padding: 1.2vh 1vh;
}

.modal>*>*>input::placeholder,
.modal>*>input::placeholder {
  color: #ffffff96;
}

.modal>*>*>#edit-category,
.modal>*>*>#edit-qtytype,
.modal>*>#item-category,
.modal>*>#freeSpotSelect,
.modal>*>#item-qtytype {
  background: radial-gradient(circle, #35455a 0%, #2b394a 90%);
  border: 0.1vh solid #1f2b3e;

  width: 94%;
  font-size: 1.4vh;
  outline: none;

  border-radius: 0.5vh;

  padding: 1.2vh 1vh;

  color: #fff;
}

.modal>.naaazwa {
  width: 90%;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1vh;

  padding: 0vh 0vh 1vh 0vh;
}

.modal>.naaazwa>.text {
  font-size: 2vh;
}

.modal>.naaazwa>.dobokukox {
  margin-left: auto;
  opacity: 0.8;

  transition: 200ms;
}

.modal>.naaazwa>.dobokukox:hover {
  color: #99aac0;

  transition: 200ms;
}

.modal>.naaazwa>i {
  font-size: 2vh;
}

select option {
  background: #35455a;
  color: #fff;
  border-radius: 0.2vh;
  padding: 1vh;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal>*>*>.btn,
.modal>*>.btn {
  border: 0.1vh solid #1f2b3e;

  background: #101726;
  padding: 1.2vh 2vh;

  font-size: 1.6vh;
  color: #fff;

  border-radius: 0.6vh;

  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);
  text-align: center;

  width: 30%;

  margin-bottom: -1vh;
}

.modal>*>*>.btn:hover,
.modal>*>.btn:hover {
  background: #1a2135;
  cursor: pointer;
}

.modal>.podsekcja>.przyciski {
  display: flex;
  gap: 1.5vh;
}

.modal>.podsekcja>.przyciski>.usun {
  background: radial-gradient(circle, #933a3a 0%, #5c1b1b 90%);
  border: 0.1vh solid #3e1f1f;
}

.modal>.podsekcja>.przyciski>.usun:hover {
  background: radial-gradient(circle, #c03434 0%, #831414 90%);
  cursor: pointer;
}

.modal>.podsekcja>.content_divdiv4,
.modal>.podsekcja>.content_divdiv2,
.modal>.podsekcja>.content_divdiv {
  width: 92%;

  display: flex;
  flex-direction: column;
  gap: 1.5vh;
}

.modal>.podsekcja>.content_divdiv4>.divdiv,
.modal>.podsekcja>.content_divdiv2>.divdiv,
.modal>.podsekcja>.content_divdiv>.divdiv {
  background: radial-gradient(circle, #35455a8f 0%, #2b394a8f 90%);
  border: 0.1vh solid #1f2b3e8f;

  width: 90%;
  font-size: 1.4vh;
  outline: none;

  border-radius: 0.5vh;

  padding: 1.2vh 1vh;

  color: #fff;
}

.modal>.podsekcja>.content_divdiv4>.divdiv_cat,
.modal>.podsekcja>.content_divdiv2>.divdiv_cat,
.modal>.podsekcja>.content_divdiv>.divdiv_cat {
  color: #ffffffaa;
  margin-left: 0.3vh;
  margin-bottom: -0.9vh;
  font-size: 1.5vh;
}







#history_menu_id {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgb(0 0 0 / 80%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#history_menu_id.show {
  opacity: 1;
  pointer-events: all;
}

.history-content {
  position: absolute;

  width: 55%;
  height: 60%;

  overflow-y: auto;

  background: radial-gradient(circle, #131b2c 0%, #0c1220 90%);
  border: 0.1vh solid #1f2b3e;
  box-shadow: 0 0.2vh 4vh rgba(0, 0, 0, 0.6);
  border-radius: 1.0vh;
}

.history-content>.t1 {
  display: flex;
  align-items: center;
  gap: 1.5vh;

  margin-top: 2vh;
  margin-left: 2vh;
  margin-bottom: 1.5vh;
}

.history-content>.t1>i {
  font-size: 3vh;
}

.history-content>.t1>.text {
  font-size: 2.4vh;
}

.history-content>.tabelka {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  font-size: 1.7vh;
}

.history-content>.tabelka>.element:nth-child(odd) {
  background: radial-gradient(circle, #131b2c 0%, #0c1220 90%);
}

.history-content>.tabelka>.element:nth-child(even) {
  background: radial-gradient(circle, #0e111a 0%, #0b101e 90%);
}

.history-content>.tabelka>.header,
.history-content>.tabelka>.element {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  text-align: center;
}

.history-content>.tabelka>.header {
  font-weight: bold;
  padding: 1.5vh 0vh;
  border: 0.1vh solid #ffffff1a;
}

.history-content>.tabelka>.header span {
  color: #ffffff96;
  font-size: 1.8vh;
}

.history-content>.tabelka>.element {
  padding: 1.5vh 0vh;
  border: 0.1vh solid #ffffff1a;
}

.history-content>.tabelka>.element .Dodano,
.history-content>.tabelka>.element .Dodano i {
  color: #4ae9cf;
}

.history-content>.tabelka>.element .Usunieto,
.history-content>.tabelka>.element .Usunieto i {
  color: #e73c3b;
}

.history-content>.tabelka>.element .Edytowano,
.history-content>.tabelka>.element .Edytowano i {
  color: #3daeff;
}

.history-content::-webkit-scrollbar {
  width: 0vh;
}








#stats_menu_id {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  /* zajmuje caÃƒâ€¦Ã¢â‚¬Å¡y ekran */
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#stats_menu_id.show {
  opacity: 1;
  pointer-events: all;
}

.stats-content {
  position: absolute;

  width: 80%;
  height: 80%;

  overflow-y: auto;

  background: #0f1221;
  border: 0.1vh solid #1f2b3e;
  box-shadow: 0 0.2vh 4vh rgba(0, 0, 0, 0.6);
  border-radius: 1.0vh;
}

.szczegoly_kolor {
  color: #97aedd;
}






















/* =========================================================
   MOBILE LAYOUT (bez zmian w HTML) Ã¢â‚¬â€œ FINAL
   - topbar wrap + search full width
   - filtry jako pasek poziomy
   - siatka 3 kolumny (minmax(0,1fr) = brak rozpychania)
   - brak poziomego scrolla / Ã…â€šamanie dÃ…â€šugich tekstÃƒÂ³w (np. JSON)
   - wiÃ„â„¢ksze modale, tooltip off
   ========================================================= */



@media (max-width: 900px) {

  /* --- global: brak poziomego scrolla + normalny scroll w pionie --- */
  html,
  body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* particles nie blokuje kliku */
  #particles-js {
    pointer-events: none;
  }

  /* background nie jest "centrowany absolutem" */
  .background {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-height: 100vh !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* --- TOP BAR --- */
  .background>.gorny_panel {
    height: auto !important;
    padding: 1vh !important;
    gap: 0.6vh !important;

    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .background>.gorny_panel>.przyciskilewo {
    margin-left: 0 !important;
    gap: 1vh !important;
  }

  .background>.gorny_panel>.przyciskilewo>.btndiv>.btn {
    padding: 1.2vh 2vh !important;
    font-size: 1.6vh !important;
  }

  .background>.gorny_panel>.btndiv2 {
    margin-right: 0 !important;
    gap: 1vh !important;
  }

  .background>.gorny_panel>.btndiv2>.wylogujdiv {
    min-width: unset !important;
    padding: 0.7vh 1.2vh !important;
  }

  /* SEARCH: peÃ…â€šna szerokoÃ…â€ºÃ„â€¡ pod spodem */
  .background>.gorny_panel>.searchdiv {
    order: 3 !important;
    width: 100% !important;

    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding-top: 0.5vh !important;
    box-sizing: border-box !important;
  }

  .background>.gorny_panel>.searchdiv>#search_pro {
    width: 95% !important;
    max-width: 100% !important;
    height: 5.6vh !important;

    font-size: 1.8vh !important;
    border-radius: 1vh !important;
    padding: 1.3vh !important;

    box-sizing: border-box !important;
  }

  /* --- BOTTOM: layout w pion --- */
  .background>.dolny_panel {
    height: auto !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 1.2vh !important;
    padding: 1.2vh !important;

    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  /* Filtry: poziomy pasek scroll */
  .background>.dolny_panel>.filtry {
    width: 100% !important;
    margin-top: 0 !important;

    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center;
    gap: 1vh !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 0.8vh !important;

    -webkit-overflow-scrolling: touch;
    box-sizing: border-box !important;
  }

  .background>.dolny_panel>.filtry::-webkit-scrollbar {
    height: 0;
  }

  .background>.dolny_panel>.filtry>.btn,
  .filtry .btn {
    width: auto !important;
    flex: 0 0 auto !important;

    padding: 1.5vh 2.5vh !important;
    font-size: 1.5vh !important;
    border-radius: 0.8vh !important;
  }

  /* Siatka: full width */
  .background>.dolny_panel>.siatka {
    width: 100% !important;
    max-width: 100vw !important;

    height: auto !important;
    margin-top: 0 !important;
    align-items: flex-start !important;

    padding: 0.5vh !important;
    box-sizing: border-box !important;
  }

  /* --- GRID: 3 kolumny + minmax(0,1fr) = nic nie rozpycha --- */
  .background>.dolny_panel>.siatka>.shelf-grid,
  .background .dolny_panel .siatka .shelf-grid,
  .shelf-grid {
    width: 100% !important;
    max-width: 100vw !important;

    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    /* wywalam sztywne repeat(7, 11.5vh) */
    grid-auto-rows: auto !important;

    gap: 1vh !important;
    box-sizing: border-box !important;
  }

  /* Kafelki */
  .background>.dolny_panel>.siatka>.shelf-grid>.grid-cell,
  .grid-cell {
    min-width: 0 !important;
    /* klucz przy grid */
    overflow: hidden !important;
    /* nie wypycha */

    min-height: 13vh !important;
    height: auto !important;

    padding: 1vh !important;
    font-size: 1.45vh !important;
    border-radius: 1vh !important;
    box-sizing: border-box !important;
  }

  .background>.dolny_panel>.siatka>.shelf-grid>.grid-cell>.numer_kafelka,
  .numer_kafelka {
    font-size: 1.3vh !important;
    padding: 0.6vh !important;
    opacity: .8 !important;
  }

  /* Ã…Âamanie dÃ…â€šugich tekstÃƒÂ³w (JSON / dÃ…â€šugie nazwy) */
  .grid-cell,
  .grid-cell * {
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    min-width: 0 !important;
  }

  /* Opis: mniej linii, niech nie puchnie */
  .grid-cell .opis {
    max-width: 100% !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
  }

  /* Ten TwÃƒÂ³j wzÃƒÂ³r borderÃƒÂ³w 12n nie ma sensu na 3 kolumnach */
  .shelf-grid .grid-cell:nth-child(12n + 3),
  .shelf-grid .grid-cell:nth-child(12n + 6),
  .shelf-grid .grid-cell:nth-child(12n + 9),
  .shelf-grid .grid-cell:nth-child(12n + 12),
  .shelf-grid .grid-cell:nth-child(12n + 1),
  .shelf-grid .grid-cell:nth-child(12n + 4),
  .shelf-grid .grid-cell:nth-child(12n + 7),
  .shelf-grid .grid-cell:nth-child(12n + 10) {
    border-left: 0.01vh solid #8d8d8d3b !important;
    border-right: 0.01vh solid #8d8d8d3b !important;
  }

  /* --- MODALE: wiÃ„â„¢ksze pod palec --- */
  .modal {
    width: 92% !important;
    padding: 2.2vh 1.2vh !important;
    border-radius: 1.2vh !important;
  }

  .modal>*>*>input,
  .modal>*>input {
    width: 94% !important;
    font-size: 1.7vh !important;
  }

  .modal>*>*>#edit-category,
  .modal>*>*>#edit-qtytype,
  .modal>*>#item-category,
  .modal>*>#freeSpotSelect,
  .modal>*>#item-qtytype {
    width: 96% !important;
    font-size: 1.7vh !important;
  }

  .modal>*>*>.btn,
  .modal>*>.btn {
    width: 46% !important;
    padding: 1.2vh 1.6vh !important;
  }

  /* Tooltip off (hover i tak nie istnieje) */
  #tooltip {
    display: none !important;
  }
}












/* ===== LIVE TOAST ===== */
.live-toast {
  position: fixed;
  right: 2vh;
  bottom: 2vh;

  background: #101726;
  border: 0.1vh solid #1f2b3e;
  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 30%);

  padding: 1.4vh 1.8vh;
  border-radius: 0.8vh;

  font-size: 1.6vh;
  display: flex;
  align-items: center;
  gap: 1vh;

  opacity: 0;
  transform: translateY(2vh);
  transition: all .25s ease;

  z-index: 999999;
}

.live-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.live-toast i {
  color: #6ea8fe;
}














/* =========================================================
   ADMIN MODAL (LOGIN + PANEL) Ã¢â‚¬â€œ FULL CSS
   ========================================================= */

/* Overlay */
#adminModal.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);

  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

#adminModal.admin-modal.show {
  opacity: 1;
  pointer-events: all;
}

/* Box */
#adminModal .admin-box {
  width: min(980px, 92vw);
  height: min(640px, 86vh);

  background: radial-gradient(circle at top, #131b2c 0%, #0c1220 85%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 0.2vh 4vh rgba(0, 0, 0, 0.65);
  border-radius: 14px;

  overflow: hidden;
  position: relative;

  transform: translateY(10px) scale(.98);
  transition: transform .2s ease;
}

#adminModal.show .admin-box {
  transform: translateY(0) scale(1);
}

/* Header */
#adminModal .admin-header {
  height: 56px;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(0, 0, 0, .18);
}

#adminModal .admin-title {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 16px;
  font-weight: 600 !important;
  letter-spacing: .2px;
}

#adminModal .admin-title i {
  font-size: 16px;
  opacity: .95;
}

#adminModal .admin-close {
  width: 36px;
  height: 36px;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .18);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: .15s ease;
}

#adminModal .admin-close:hover {
  background: rgba(255, 255, 255, .06);
}

/* View */
#adminModal .admin-view {
  height: calc(100% - 56px);
  padding: 16px;
  overflow: auto;
}

/* Login view layout */
#adminModal .admin-login-wrap {
  width: min(420px, 92%);
  margin: 0 auto;
  margin-top: 15vh;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

#adminModal .admin-subtitle {
  text-align: center;
  font-size: 3vh;
  opacity: .85;
  margin-top: 0.5vh;
  margin-bottom: 1vh;
}

/* Inputs */
#adminModal .admin-input {
  width: 100%;
  box-sizing: border-box;

  background: radial-gradient(circle, #35455a 0%, #2b394a 90%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;

  padding: 10px 12px;
  font-size: 14px;
  outline: none;

  color: #fff;
  box-shadow: 0 0.2vh 2vh rgb(0 0 0 / 16%);
}

#adminModal .admin-input::placeholder {
  color: rgba(255, 255, 255, .55);
}

#adminModal .admin-input:focus {
  border-color: rgba(90, 140, 255, .55);
  box-shadow: 0 0 0 3px rgba(60, 120, 255, .15);
}

#adminModal .admin-input.big {
  padding: 12px 14px;
  font-size: 15px;
}

/* Buttons */
#adminModal .admin-btn {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);

  padding: 10px 12px;
  border-radius: 10px;

  font-size: 14px;
  color: #fff;
  cursor: pointer;

  transition: .15s ease;
}

#adminModal .admin-btn:hover {
  background: rgba(255, 255, 255, .06);
}

#adminModal .admin-btn.primary {
  background: rgba(29, 94, 255, .85);
  border-color: rgba(29, 94, 255, .85);
}

#adminModal .admin-btn.primary:hover {
  background: rgba(29, 94, 255, 1);
}

#adminModal .admin-btn.logout {
  background: rgba(255, 80, 80, .18);
  border-color: rgba(255, 80, 80, .25);
}

#adminModal .admin-btn.logout:hover {
  background: rgba(255, 80, 80, .28);
}

/* Errors / info */
#adminModal .admin-error {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;

  background: rgba(255, 60, 60, .14);
  border: 1px solid rgba(255, 60, 60, .25);
  color: #ff7b7b;

  font-size: 13px;
}

#adminModal .admin-info {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;

  background: rgba(60, 170, 255, .12);
  border: 1px solid rgba(60, 170, 255, .18);
  color: rgba(255, 255, 255, .92);

  font-size: 13px;
}

/* Toolbar */
#adminModal .admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  margin-bottom: 12px;
  flex-wrap: wrap;
}

#adminModal .admin-left-tools,
#adminModal .admin-right-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Add box */
#adminModal .admin-add-box {
  display: flex;
  gap: 8px;
  align-items: center;

  background: rgba(0, 0, 0, .16);
  border: 1px solid rgba(255, 255, 255, .06);
  padding: 10px;
  border-radius: 12px;

  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Table */
#adminModal .admin-table-wrap {
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 12px;
  overflow: hidden;

  margin-bottom: 3vh;
}

#adminModal .admin-table {
  width: 100%;
  border-collapse: collapse;
}

#adminModal .admin-table thead tr {
  background: rgba(0, 0, 0, .18);
}

#adminModal .admin-table th {
  text-align: left;
  padding: 12px 12px;
  font-size: 12px;
  opacity: .85;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

#adminModal .admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  vertical-align: middle;
}

#adminModal .admin-table tbody tr:hover {
  background: rgba(255, 255, 255, .03);
}

/* Actions */
#adminModal .admin-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

#adminModal .admin-icon-btn {
  width: 36px;
  height: 36px;

  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: .15s ease;
}

#adminModal .admin-icon-btn:hover {
  background: rgba(255, 255, 255, .06);
}

#adminModal .admin-icon-btn.delete {
  background: rgba(255, 60, 60, .22);
  border-color: rgba(255, 60, 60, .28);
}

#adminModal .admin-icon-btn.delete:hover {
  background: rgba(255, 60, 60, .30);
}

/* Mobile */
@media (max-width: 700px) {
  #adminModal .admin-box {
    width: 94vw;
    height: 88vh;
  }

  #adminModal .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  #adminModal .admin-left-tools,
  #adminModal .admin-right-tools {
    width: 100%;
    justify-content: space-between;
  }

  #adminModal .admin-add-box {
    flex-direction: column;
    align-items: stretch;
  }

  #adminModal .admin-actions {
    justify-content: flex-start;
  }
}

.admin-view::-webkit-scrollbar {
  width: 0.4vh;
}

.admin-view::-webkit-scrollbar-track {
  background: transparent;
}

.admin-view::-webkit-scrollbar-thumb {
  background: #657e9e61;
  border-radius: 1vh;

  transition: background 0.5s ease;
}

.admin-view::-webkit-scrollbar-thumb:hover {
  background: #657e9e;

  transition: background 0.5s ease;
}




































.qr-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.qr-modal.is-open {
  display: block;
}

.qr-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.qr-modal__card {
  position: relative;
  width: min(520px, 92vw);
  margin: 8vh auto 0;
  background: #111;
  color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.qr-modal__header,
.qr-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #151515;
}

.qr-modal__title {
  font-weight: 700;
}

.qr-modal__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 18px;
  padding: 8px;
}

.qr-modal__body {
  padding: 12px 14px;
}

.qr-reader {
  width: 100%;
}

.qr-status {
  margin-top: 10px;
  opacity: .85;
  font-size: 14px;
}

.qr-modal__footer button {
  background: #232323;
  border: 1px solid #2f2f2f;
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
}