body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
}

button {
  margin-top: 20px;
  padding: 8px 16px;
  border: none;
  background-color: #1976d2;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #333;
  color: white;
  padding: 10px 15px;
  height: 50px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

#menu-toggle {
  cursor: pointer;
}

#sidebar {
  position: absolute;
  top: 50px;
  bottom: 0;
  right: 0;
  width: 200px;
  background: #444;
  color: white;
  padding: 20px;
  display: none;
  flex-direction: column;
  z-index: 1;
}

#sidebar.show {
  display: flex;
}

#login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* --- Panel opisywania biletów tymczasowych --- */
.temp-layout {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  align-items: flex-start;
}

.temp-list-card {
  width: 260px;
  max-height: 80vh;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
  overflow-y: auto;
}

.temp-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.temp-ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.temp-ticket-item {
  padding: 6px 4px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.temp-ticket-item:hover {
  background: #f0f0f0;
}

.temp-ticket-item.muted {
  cursor: default;
}

.temp-ticket-item .ticket-number {
  font-weight: 500;
}

.temp-ticket-item .ticket-date {
  font-size: 11px;
  color: #777;
}

.temp-editor-card {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  min-height: 400px;
  background: #fff;
}

.temp-empty {
  color: #777;
}

.temp-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.temp-image {
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fafafa;
}

.temp-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
}

.temp-form .field {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.temp-form .field label {
  margin-bottom: 4px;
}

.temp-form .field input {
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 13px;
}

.temp-form .field.wide {
  grid-column: 1 / -1;
}

.temp-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.temp-status {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}
