﻿table,
td,
th {
  border: 1px solid black;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 50px;
}

th {
  height: 60px;
}

.change {
  width: 100%;
  height: 100%;
  font-size: 50px;
  text-align: right;
}

.search {
  border-radius: 5px;
  width: 250px;
  height: 100px;
  font-size: 60px;
  border: 3px solid rgb(12, 161, 70);
  padding: 5px;
}

.btn {
  border-radius: 15px;
  width: 250px;
  font-size: 50px;
  height: 100px;
  margin-top: 20px;
  background: #87ceeb;
  border: none;
}

.kod {
  width: 40px;
}

.gin {
  width: auto;
  text-align: right;
  font-weight: bold;
}

#home {
  width: 165px;
  font-size: 150px;
  padding-left: 5px;
  color: #87ceeb;
}

/* DIV ԿԵՆՏՐՈՆՈՒՄ */
#mydiv {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 30em;
  height: 18em;
  margin-top: -9em;
  margin-left: -15em;
  border: 1px solid #ccc;
  background-color: blue;
  display: none;
}

.sel {
  background-color: #bdfaaa;
}

.colhide {
  display: none;
}

.colpatver {
  text-align: right;
}

td input {
  font-size: 100%;
  box-sizing: border-box;
  width: 100%;
  height: 150px;
  text-align: right;
}

::placeholder {
  font-size: 40px;
}

#total {
  font-size: 80px;
  width: 275px;
  border-radius: 18px;
  border: 2px solid rgb(157, 255, 0);
}

#total:focus {
  background-color: lightblue;
  border: 3px solid #555;
}

#nm {
  font-size: 40px;
  color: green;
}

#users {
  font-size: 35px;
  border-radius: 8px;
  height: 80px;
  width: 150px;
}

#time {
  border: 1px solid blueviolet;
  font-size: 40px;
}

#yesno {
  width: 500px;
  height: 400px;
  border: 2px double rgb(81, 196, 27);
  border-radius: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 33px;
  background-color: rgb(62, 177, 119);
  font-weight: 700;
  color: #48ff00;
  text-shadow: 1px 1px 1px #0d7e78fb,
      1px 2px 1px #028a8a,
      1px 3px 1px #028a8a,
      1px 4px 1px #028a8a,
      1px 5px 1px #028a8a,
      1px 6px 1px #028a8a,
      1px 7px 1px #028a8a,
      1px 8px 1px #028a8a,
      1px 9px 1px #028a8a,
      1px 10px 1px #028a8a,
      1px 18px 6px rgba(16,16,16,0.4),
      1px 22px 10px rgba(16,16,16,0.2),
      1px 25px 35px rgba(16,16,16,0.2),
      1px 30px 60px rgba(16, 16, 16, 0.4);
}

#pntrum {
  width: 500px;
  height: 400px;
  border: 2px double rgb(81, 196, 27);
  border-radius: 10px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: 33px;
}

.yesnobutton {
  background-image: linear-gradient(to right, #3754d3ef, #08df13);
  box-shadow: 0 4px 15px 0 rgba(206, 8, 18, 0.75);
  margin: 20px;
  width: 80%;
  height: 80px;
  border-radius: 10px;
  font-size: 50px;
}

#formfix {
  background-color: #f6feff;
  position: sticky;
  top: 0;
}

.search:focus {
  background-color: #9ACD32;
}

/* ========================================== */
/* СТИЛИ ДЛЯ МИНИАТЮР КАРТИНОК И ЗУМА         */
/* ========================================== */

/* Блок-контейнер для картинки под текстом */
.product-img-block {
  margin-top: 5px;
  text-align: left;
}

/* Картинка товара в таблице: небольшая и аккуратная */
.product-thumb {
  max-height: 200px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  background-color: #fff;
  display: block;
}

/* Модальное окно полного просмотра (Zoom) */
.image-viewer {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

/* Увеличенная картинка */
.viewer-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Кнопка закрытия */
.close-viewer {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 80px;
  font-weight: bold;
  cursor: pointer;
}