/* Modal Window and Child Table Styles */
.modal {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 99%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3100;
}

.similar-content {
  padding: 135px 0px;         /* Можно уменьшить отступ */
  border-radius: 8px;
  /* max-height здесь не нужен, убираем или ставим выше */
  max-height: 88%;       /* допустим, оставляем ограничение */
  display: flex;
  flex-direction: column; /* чтобы внутренние блоки шли вертикально */
}


/*
.modal-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  max-height: 80%;
  overflow-y: auto;
}
*/

.modal-close {
  position: absolute;
  top: 100px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
  cursor: pointer;
text-align: center;
z-index: 5100;
}

.modal.hidden {
  display: none;
}

#table-container {
  height: calc(100vh - 300px); /* Высота таблицы с учётом отступов */
  overflow-y: auto;
  position: relative;
}

/* Таблица внутри модального окна */
.similar-posts-table {
  width: 100%;
  table-layout: fixed;
  max-height: 100%;
  margin: 0px auto;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #000062;
}

.similar-posts-table th,
.similar-posts-table td {
  border-right: 1px solid #b2bcd1;
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Заголовки таблицы */
.similar-posts-table th {
  
background: #609512 !important;

/*  background: #1e61a9 !important; */
  color: #c2d9f1;
  text-align: center;
  position: sticky;
  top: 0px;
  z-index: 1100;
  font-family: Verdana;
  font-weight: normal;
  font-size: 14px;
  padding-left: 0px;
height: 30px;
}

.similar-posts-table tr {
  border-bottom: 1px solid #dadfe8;
}

.similar-posts-table td {
  	color: #000062;
	font-size: 13px;
}



/* Зебра-эффект 
.similar-posts-table tr:nth-child(even) {
    background: #f2f2f2;
}
*/

.similar-posts-table tr:hover td {
  background-color: #4571a3;
  color: snow; 
}


.similar-publisher {
	font-size: 13px;
	text-transform: capitalize;
	

}

.similar-lot_or_dwt {
}

.similar-margin {
}

.similar-loading_port {
	text-transform: capitalize;
}

.similar-discharge_port {
	text-transform: capitalize;
}


.similar-laycan_start {
	text-align: right;
}

.similar-laycan_end {
}



.similar-commission {
	text-align: center;
}

.similar-age {
	text-align: center;
	font-size: 10px !important;
}


/* разукрашиваем одинаковых паблишеров */

.row-group-1 {
    background: #f2f2f2;
}
.row-group-2 {
    background: #e0e0e0;
}

.parent-row {
	color: red !important;

}