
table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border-radius: 12px;
}

table th,
table td {
  padding: 10px;
  border: 1px solid #ddd;
  min-width: 157px;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

table thead {
  font-size: 22px;
  line-height: 27px;
  background: #6305E0;
  color: #fff;
  text-transform: uppercase;
  border-top-left-radius: 10px;
}
table th{
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
}
table tbody tr:nth-child(odd){
  background: #f2f2f2;
}
table td{
  font-size: 22px;
  line-height: 1;
  padding: 22px 22px;;
}
thead tr:first-child th:first-child {
  border-top-left-radius: 12px;
  border: none;
}

thead tr:first-child th:last-child {
  border-top-right-radius: 12px;
  border: none;
}

table tbody tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
  border: none;
}

table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
  border: none;
}
@media (max-width: 767px) {
  table thead {
    display: none;
  }

  .responsive-data-table,
  table tbody,
  table tr,
  table td {
    display: block;
    width: 100%;
  }

  table tr {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    padding: 10px;
  }

  table td {
    text-align: right;
    position: relative;
    padding-left: 50%;
  }

  table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 8px;
    font-weight: bold;
    text-align: left;
  }
}

.table-swiper {
  margin-top: 20px;
}
.table-swiper table {
  width: 100%;
  border-collapse: collapse;
}

.table-swiper th,
.table-swiper td {
  border: 1px solid #ddd;
  padding: 8px;
}

.swiper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.swiper-controls .swiper-hint {
  font-size: 14px;
  color: #222;
}

.swiper-button-prev,
.swiper-button-next {
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.swiper-button-prev svg,
.swiper-button-next svg {
  display: block;
  width: 100%;
  height: 100%;
}
.rt-remove-row {
  background-color: #dc3545;
  color: white;
  border: none;
  font-weight: bold;
  padding: 0 10px;
  cursor: pointer;
}
.rt-remove-row:hover {
  background-color: #b02a37;
}

.truncate-2-lines {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.4em;
  height: 2.8em;
  cursor: help;
}
