body {
  font-family: sans-serif;
  margin: 0;
  padding: 10px;
  font-size: 14px;
}

h1 {
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
}

.row, .controls, .actions, .toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  justify-content: center;
}

label {
  flex: 1 1 100%;
}

input, textarea {
  width: 100%;
  padding: 6px;
  font-size: 14px;
}

button {
  flex: 1 1 45%;
  padding: 10px;
  font-size: 14px;
  background-color: #3a86ff;
  color: white;
  border: none;
  border-radius: 5px;
}

button:hover {
  background-color: #265ed7;
}

/* Удаление иконок из текста кнопок */
button::before,
button::after {
  content: none !important;
}

/* Таблица лекарств */
#drugsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#drugsTable th, #drugsTable td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: left;
}

.template-dropdown {
  position: relative;
  flex: 1 1 100%;
}

.template-toggle {
  width: 100%;
}

.template-menu {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  z-index: 1;
  width: 100%;
}

.template-dropdown:hover .template-menu {
  display: block;
}

#authBox {
  text-align: center;
  margin-bottom: 10px;
}

#subscribeFloating {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: #ff595e;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

/* Обёртка для горизонтальной прокрутки таблицы */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Сама таблица */
#drugsTable {
  min-width: 600px; /* Чтобы была прокрутка */
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.icon {
  display: none !important;
}

.secondary-button {
  background-color: #34495e; /* зелёный */
}

.secondary-button:hover {
  background-color: #2c3e50;
}
