/*
 * DO NOT EDIT THIS FILE.
 * See the following change record for more information,
 * https://www.drupal.org/node/3084859
 * @preserve
 */

/**
 * @file
 * User generated tables.
 */

.forum table,
.text-content table,
.views-table,
.draggable-table {
  margin-block-start: var(--sp0-5);
  margin-block-end: var(--sp0-5);
  border-spacing: 0;
  color: var(--color-text-neutral-medium);
  border: 0;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: var(--sp1-5);
}

@media (min-width: 31.25rem) {
  .forum table,
  .text-content table,
  .views-table,
  .draggable-table {
    margin-block-start: var(--sp2);
    margin-block-end: var(--sp2);
    font-size: 1rem;
  }
}

:is(.forum table, .text-content table, .views-table, .draggable-table) caption {
  margin-block-end: var(--sp1);
  text-align: start;
  color: var(--color-text-neutral-medium);
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-style: italic;
  line-height: var(--sp);
}

:is(.forum table, .text-content table, .views-table, .draggable-table) tr:last-child td {
  border-block-end: 0;
}

:is(.forum table, .text-content table, .views-table, .draggable-table) td,
:is(.forum table, .text-content table, .views-table, .draggable-table) th {
  padding-block: var(--sp0-5);
  padding-inline-start: 0;
  padding-inline-end: var(--sp0-5);
  vertical-align: top;
}

@media (min-width: 31.25rem) {
  :is(.forum table, .text-content table, .views-table, .draggable-table) td,
  :is(.forum table, .text-content table, .views-table, .draggable-table) th {
    padding-block: var(--sp1);
    padding-inline-end: var(--sp1);
  }
}

:is(.forum table, .text-content table, .views-table, .draggable-table) th {
  margin-block: 0;
  margin-inline-start: 0;
  margin-inline-end: 0;
  text-align: start;
  letter-spacing: 0.02em;
  color: var(--color-text-neutral-loud);
  border-block-end: 2px solid var(--color--primary-50);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: var(--sp);
}

:is(.forum table, .text-content table, .views-table, .draggable-table) td {
  white-space: normal;
  border-block-end: 2px solid var(--color--gray-65);
}

:is(.forum table, .text-content table, .views-table, .draggable-table) th.checkbox,
:is(.forum table, .text-content table, .views-table, .draggable-table) td.checkbox {
  text-align: center;
}

.draggable-table {
  width: 100%;
}

.draggable-table .form-item {
  margin-top: 0;
}

.text-content table td,
.text-content table th {
  vertical-align: middle;
}

.tablesort {
  vertical-align: middle;
}

.sticky-header {
  z-index: 0;
  margin: 0;
  border-block-end: 0.25rem solid var(--color--primary-50);
}

/* Properly align VBO checkboxes. */

.views-field-node-bulk-form .form-item {
  margin: 0;
}

/* rwd-ready zostaje dodane przez JS po nadaniu data-label do tabeli */

@media (min-width: 64.0625rem) {
  .rwd-table.overflow-table {
    --background-color: rgba(255, 255, 255, 1);
    --shadow-color: rgba(34, 34, 34, 0.5);
    --shadow-size: 0.75em;
    --transparent: rgba(255, 255, 255, 0);
  }
  .rwd-table.overflow-table table thead th {
    white-space: nowrap;
  }
  .rwd-table.overflow-table .view-content {
    overflow-x: scroll;
    position: relative;
    display: flex;
    gap: 0;
    background:
      linear-gradient(to right, var(--background-color), var(--background-color), var(--transparent) calc(var(--shadow-size) * 2)),
      radial-gradient(farthest-side at 0 50%, var(--shadow-color), var(--transparent)),
      linear-gradient(to left, var(--background-color), var(--background-color), var(--transparent) calc(var(--shadow-size) * 2)),
      radial-gradient(farthest-side at 100% 50%, var(--shadow-color), var(--transparent)) 100%;
    background-color: var(--background-color);
    background-repeat: no-repeat;
    background-attachment: local, scroll, local, scroll;
    background-size:
      100% 100%,
      var(--shadow-size) 100%,
      100% 100%,
      var(--shadow-size) 100%;
    height: 100%;
  }
  .rwd-table.overflow-table .view-content .first,
  .rwd-table.overflow-table .view-content .last {
    display: contents;
  }
  .rwd-table.overflow-table .view-content .first img,
  .rwd-table.overflow-table .view-content .last img {
    width: 3.125rem;
    height: 3.125rem;
  }
  .rwd-table.overflow-table .view-content .last img {
    rotate: 180deg;
  }
  .rwd-table.overflow-table .view-content * {
    background: transparent;
  }
}

.rwd-table.overflow-text table thead:hover th {
  opacity: 0;
}

.rwd-table.overflow-text table thead th {
  white-space: nowrap;
  max-width: 0.625rem;
  text-overflow: ellipsis;
  overflow: hidden;
}

.rwd-table.overflow-text table thead th:hover {
  overflow: visible !important;
  opacity: 1 !important;
}

@media (max-width: 64rem) {
  .rwd-table.rwd-ready table {
    table-layout: fixed;
    width: 100%;
  }
  .rwd-table.rwd-ready table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .rwd-table.rwd-ready table tr {
    border-bottom: 3px solid var(--color--gray-65);
    display: block;
    margin-bottom: 0.625em;
  }

  .rwd-table.rwd-ready table td {
    border-bottom: 1px solid var(--color--gray-65);
    display: block;
    font-size: 0.95em;
    text-align: right;
    min-height: 2.5rem;
  }

  .rwd-table.rwd-ready table td::before {
    /*
        * aria-label has no advantage, it won't be read inside a table
        content: attr(aria-label);
        */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
    padding-right: 5%;
  }

  .rwd-table.rwd-ready table td:last-child {
    border-bottom: 0;
  }
}
