/* Общие стили */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  .container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
  }
  
  /* Заголовки */
  h1 {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    color: #333;
  }
  
  /* Кнопки */
  button {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 15px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    background-color: #e7e7e7;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    color: #000;
  }
  
  button:hover {
    background-color: #d7d7d7;
  }
  
  /* Списки */
  ul {
    list-style: none;
    padding: 0;
  }
  
  li {
    margin: 10px 0;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
  }
  
  li:hover {
    background-color: #f0f0f0;
  }
  
  /* Изображение штрих-кода */
  #barcode-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto;
  }
  
  /* Кнопки закрытия в верхней части */
  #close-section, #close-gates, #close-cells {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    font-size: 18px;
    padding: 10px;
    margin-bottom: 10px;
    width: auto;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  #close-section:hover, #close-gates:hover, #close-cells:hover {
    background-color: #ff3333;
  }

  /* Кнопка закрытия для изображения */
  #close-item {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px 20px;
    margin: 10px auto;
    display: block;
    border-radius: 5px;
    cursor: pointer;
    width: 200px;
  }

  #close-item:hover {
    background-color: #ff3333;
  }

  /* Скрытый класс */
  .hidden {
    display: none;
  }