body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

table {
  background-color : #c0c0c0;
  margin-left: auto;
  margin-right: auto;
  border: none;
  font-size: 90%;
  width: 100%;
  max-width: 900px; /* Максимальна ширина */
  word-wrap: break-word; /* Перенос довгих слів */
}

table.1 {
  border: none;
}

tr.hide {
}

tr.passhide {
}

tr.pass {
}

tr.pq {
}

tr.eq {
}

tr.tq {
}

tr.sq {
}

tr.iq {
}

td {
  vertical-align: middle;
  text-align: center;
  background-color: white;
}

td.shapka, td.view {
  vertical-align: top; /* Уніфікуємо вирівнювання */
  text-align: left;
  padding: 2px 4px; /* Спрощуємо padding */
  font-size: inherit; /* Успадковуємо розмір */
}

td.view {
  background-color: white;
  white-space: normal;
}

td.shapka {
  background-color: #a5b8e0;
  vertical-align: middle;
}

td.separator {
  background-color: #ffffff;
}

/* Додамо медіа-запит для мобільних пристроїв */
@media screen and (max-width: 600px) {
  table {
    font-size: 80%; /* Ще трохи зменшимо шрифт на малих екранах */
  }

  td, th {
    padding: 2px; /* Зменшимо відступи */
  }
}

div {
  text-align: center;
}

div.help {
  text-align: left;
  color: #646464;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a.cal {
  color: #646464;
}
a.cal:hover {
  color:  #999999;
}
a.help {
  color: #646464;
  text-decoration: none;
}

a.help:hover {
  color:  #999999;
  text-decoration: underline;
}

a.bottom {
  color : #6666CC;
  text-decoration: none;
}

a.bottom:hover {
  color: #FF0000;
  text-decoration: blink;
}

a.link{
  background-color: #a5b8e0;
  color: #ffffff;
}

.btext {
}

.stext {
  font-size : small;
}

.tbtext {
  font-weight: bolder;
}

.bottom {
  font-size: small;
  color: #646464;
}

.select {
  font-weight: bold;
  color: #646464;
  background-color: #e0e0e0;
  border-style: groove ridge ridge groove;
  border-width: 1px 1px 1px 1px;
}

.form {
  font-weight: bold;
  color: #646464;
  background-color: #e0e0e0;
  border-style: groove ridge ridge groove;
  border-width: 1px 1px 1px 1px;
}

.top_menu {
  margin-top: 1px;
  background-color: #8aa3d7;
  color: #fff;
  border-radius: 4px;
  border: 2px outset #CCCCCC;
  padding: 3px 10px 3px;
  display: block;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 11px;
  text-decoration: none;
  text-shadow: -1px -1px 2px #666;
  filter: dropshadow(color=#666, offx=0, offy=1);
}

.top_menu:hover {
  text-decoration: none;
}

h1, h2, h3, h4 {
  text-align: center;
}

.tooltip {
  position: relative;
  cursor: pointer;
  display: inline-block;
  color: #0077cc;
  font-weight: bold;
}

/* Стиль bubble */
.tooltip .tooltip-text {
  visibility: hidden;
  max-width: 300px;
  max-height: 300px;
  overflow-y: auto;
  background-color: #333;
  color: #fff;
  text-align: left;
  padding: 10px;
  border-radius: 10px;
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 105%; /* праворуч */
  transform: translateY(-50%) scale(0.9); /* трохи зменшений */
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Маленький трикутничок */
.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

/* Показ із анімацією */
.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
  transform: translateY(-50%) scale(1); /* плавне збільшення */
}

.scroll-container {
  max-height: 215px;
  max-width: 620px;
  margin: 0 auto;
  overflow-y: scroll;         /* завжди показує скрол */
  overflow-x: hidden;
  border: 0px solid #ccc;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Таблиця */
.scroll-container table {
  width: 100%;
  border-collapse: collapse;
}

/* Фіксовані заголовки */
.scroll-container thead tr {
  position: sticky;
  top: 0;
  background: #f0f0f0;
  z-index: 2;
}

/* ===== Кастомний скролбар ===== */
.scroll-container::-webkit-scrollbar {
  width: 8px;                /* ширина скролбара */
}

.scroll-container::-webkit-scrollbar-track {
  background: #f1f1f1;       /* колір фону доріжки */
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: #888;          /* колір повзунка */
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: #555;          /* колір при наведенні */
}

/* Для Firefox */
.scroll-container {
  scrollbar-width: thin;      /* тонкий скрол */
  scrollbar-color: #888 #f1f1f1;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}

/* Вікно */
.modal {
    position: relative;
    background: #fff;
    width: 80%;
    max-width: 900px;
    height: 90%;
    margin: 5% auto;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    overflow: hidden;
}

/* Вміст у iframe */
.modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Кнопка закриття */
.modal-close {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.custom-btn {
  /*background-color: #8598c0;   /* колір фону */
  background: linear-gradient(#4CAF50, #388E3C); /* зелений градієнт */
  color: white;                /* колір тексту */
  font-size: 18px;             /* розмір шрифту */
  font-weight: bold;
  padding: 8px 24px;          /* відступи: верх/низ, ліво/право */
  border: none;                /* забрати рамку */
  border-radius: 8px;          /* закруглені кути */
  cursor: pointer;             /* курсор "рука" */
  box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* тінь під кнопкою */
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4); /* легка тінь під текстом */
  transition: all 0.2s ease;
}

.custom-btn:hover {
  background: linear-gradient(#D53243, #B51223); /* колір при наведенні */
}

.custom-btn:active {
  box-shadow: 0 2px 3px rgba(0,0,0,0.3); /* менша тінь при натисканні */
  transform: translateY(2px); /* імітація «натиску» */
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.3s;
}

.icon-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}