/* panels.css - v.1.8 */

/* === WYSUWANE PANELE SYSTEMU POSX === */

.panel {
  position: fixed;
  top: 0;
  right: -500px; /* 🔹 zmniejszona szerokość */
  width: 500px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease-in-out;
  z-index: 1200;
  display: flex;
  flex-direction: column;
}

.panel.active {
  right: 0;
}

/* === NAGŁÓWEK PANELU === */
.panel-header {
  background: var(--posx-panel-header-bg);
  color: var(--posx-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
  text-transform: uppercase;
  user-select: none;
}

/* === PRZYCISK ZAMKNIĘCIA (globalny styl z components.css) === */
.close-btn {
  background: transparent;
  border: none;
  color: var(--posx-orange);
  font-size: 36px; /* 🔹 zwiększony rozmiar dla ekranów dotykowych */
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
}

.close-btn:hover {
  color: var(--posx-orange-dark);
}

/* === TREŚĆ PANELU === */
.panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #fff;
}

/* === DOLNA SEKCJA Z PRZYCISKAMI === */
.panel-actions {
  padding: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid var(--posx-border-light);
  background: #f8f8f8;
  flex-shrink: 0;
}

/* === ELEMENTY LISTY CENNIKÓW === */
.cennik-item {
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--posx-border-light);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cennik-item:hover {
  background: var(--posx-gray);
}

.cennik-item.active {
  background: var(--posx-orange);
  color: var(--posx-text-light);
}

/* panels.css - v.1.8 */