/* PM Pricelist – scoped reset (chrání proti obecným stylům šablony) */
.pm-pricelist,
.pm-pricelist * {
  box-sizing: border-box;
}

.pm-pricelist table {
  border-spacing: 0;
}

.pm-pricelist .pm-pricelist-table,
.pm-pricelist .pm-pricelist-table th,
.pm-pricelist .pm-pricelist-table td {
  float: none;
  max-width: none;
  text-transform: none;
}

.pm-pricelist .pm-pricelist-table {
  border-collapse: collapse;
  width: 100%;
  font-family: Calibri, Arial, sans-serif;
  font-size: 16px;
  background: #fff;
}

.pm-pricelist .pm-pricelist-table th,
.pm-pricelist .pm-pricelist-table td {
  border: 1px solid #000;
  padding: 10px 12px;
  vertical-align: middle;
}

.pm-pricelist .pm-pricelist-table thead th {
  background: #464223;
  color: #eceae8;
  font-weight: 700;
}

.pm-pricelist .pm-pricelist-table thead th:first-child {
  text-align: left;
  padding-left: 80px;
}

.pm-pricelist .pm-pricelist-table thead th:not(:first-child),
.pm-pricelist .pm-pricelist-table tbody td:not(:first-child) {
  text-align: center;
}

.pm-pricelist .pm-pricelist-table tbody tr:nth-child(odd) td {
  background: #f7f4ef;
}

.pm-pricelist .pm-pricelist-table td[data-empty="1"]::after,
.pm-pricelist .pm-pricelist-table td.is-empty::after {
  content: "–";
}

.pm-pricelist .pm-pricelist-table a {
  color: #464223;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pm-pricelist .pm-pricelist-table a:hover,
.pm-pricelist .pm-pricelist-table a:focus {
  text-decoration-thickness: 2px;
}

/* PM Pricelist – pojistka pro poslední řádek (Sportovní masáž apod.)
   Některé globální styly (Bootstrap / šablona) umí poslednímu řádku shodit okraje. */
.pm-pricelist .pm-pricelist-table {
  border: 1px solid #000; /* rám tabulky i když by někdo shodil okraje buněk */
}

.pm-pricelist .pm-pricelist-table > tbody > tr:last-child > td {
  border: 1px solid #000 !important; /* vrátí všechny linky (dole i svislé) pro poslední řádek */
}

@media (max-width: 759.98px) {
  .pm-pricelist .pm-pricelist-table thead {
    display: none !important;
  }

  .pm-pricelist .pm-pricelist-table {
    table-layout: fixed;
    width: 100%;
  }

  .pm-pricelist .pm-pricelist-table tbody td {
    display: block;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .pm-pricelist .pm-pricelist-table tbody td[data-empty="1"],
  .pm-pricelist .pm-pricelist-table tbody td.is-empty {
    display: none !important;
  }

  .pm-pricelist .pm-pricelist-table tbody td:first-child {
    font-weight: 700;
    text-align: center;
    padding: 12px 10px;
  }

  .pm-pricelist .pm-pricelist-table tbody td:first-child::before {
    content: "" !important;
    display: none !important;
  }

  .pm-pricelist .pm-pricelist-table tbody td:not(:first-child)::before {
    content: attr(data-th);
    font-weight: 500;
    display: inline-block;
    float: left;
    text-align: left;
    width: clamp(7.5rem, 34vw, 12rem);
    white-space: normal;
  }

  .pm-pricelist .pm-pricelist-table tbody tr:last-child td {
    border-bottom: 1px solid #000;
  }
}
