﻿/* === Tabulka === */


.table-wrap {
  border: 1px solid #d9deea;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}


.custom-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}


.custom-table th,
.custom-table td {
  vertical-align: middle;
  word-break: break-word;
  overflow-wrap: break-word;
}


.custom-table thead th {
  background: #edeff7;
  color: #323546;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid #d9deea;
}


.custom-table tbody td {
  color: #323546;
  font-size: 16px;
  line-height: 1.6;
  padding: 18px 20px;
  border-bottom: 1px solid #d9deea;
}


.custom-table tbody tr:last-child td {
  border-bottom: none;
}


.custom-table tbody td strong {
  font-weight: 700;
}


/* === Mobil: 2–3 sloupce zůstávají tabulkou === */
@media (max-width: 767px) {
  .table-mobile-table {
    overflow: hidden;
  }


  .table-mobile-table .custom-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }


  .table-mobile-table .custom-table thead th,
  .table-mobile-table .custom-table tbody td {
    padding: 12px 10px;
    font-size: 14px;
    line-height: 1.45;
  }
}


/* === Mobil: 4+ sloupců jako kartičky === */
@media (max-width: 767px) {
  .table-mobile-cards {
    border: none;
    background: transparent;
    overflow: visible;
  }


  .table-mobile-cards .custom-table,
  .table-mobile-cards .custom-table thead,
  .table-mobile-cards .custom-table tbody,
  .table-mobile-cards .custom-table tr,
  .table-mobile-cards .custom-table th,
  .table-mobile-cards .custom-table td {
    display: block;
    width: 100%;
  }


  .table-mobile-cards .custom-table {
    table-layout: auto;
  }


  .table-mobile-cards .custom-table thead {
    display: none;
  }


  .table-mobile-cards .custom-table tbody tr {
    margin-bottom: 14px;
    border: 1px solid #d9deea;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
  }


  .table-mobile-cards .custom-table tbody td {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.5;
    border-bottom: 1px solid #e6e9f2;
  }


  .table-mobile-cards .custom-table tbody tr td:last-child {
    border-bottom: none;
  }


  .table-mobile-cards .custom-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #323546;
    line-height: 1.4;
  }
}