/* Εμφάνιση γραμμών και διάκριση των κελιών */
.sitemap-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 3rem;
}

.sitemap-table, .sitemap-table th, .sitemap-table td {
  border: 1px solid #ccc;
}

.sitemap-table th, .sitemap-table td {
  padding: 0.5rem;
}

/* Dark theme προσαρμογές */
html.dark .sitemap-table,
html.dark .sitemap-table th,
html.dark .sitemap-table td {
  border-color: #444;
}

/* Στυλ για το κουμπί export */
.export-button {
  padding: 0.7rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  background-color: var(--col-f);
  color: var(--col-a);
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.export-button:hover {
  background-color: var(--col-d);
}

.sitemap-table td:nth-child(1) {
  width: 42%;
}

.sitemap-table td:nth-child(2) {
  width: 12%;
  text-align: center;
}

.sitemap-table td:nth-child(3) {
  width: 18%;
}

.sitemap-table td:nth-child(4) {
  width: 28%;
}

.sitemap-controls-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px dashed var(--sitemap-border, var(--col-r));
  margin-bottom: 1rem;
}

.sitemap-controls-table td {
  padding: 0.3rem 0.6rem;
}

.sitemap-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.sitemap-heading h1 {
  margin: 0;
}

.sitemap-controls-table td.sitemap-filter-cell {
  vertical-align: middle;
}

.sitemap-filter-label {
  margin-right: 1rem;
}

.sitemap-range {
  margin-left: 0.5rem;
  color: gray;
}

.sitemap-table th.sitemap-column-heading,
.sitemap-table th.sitemap-date-heading {
  text-align: left;
}

.sitemap-table th.sitemap-date-heading {
  width: 140px;
  cursor: pointer;
}

/* Fallback palette for sites without an explicit group color. */
:where(:root) {
  --group-bg: var(--col-m);
}

:where(html.dark) {
  --group-bg: var(--col-r);
}

@media (max-width: 48rem) {
  .sitemap-table {
    table-layout: fixed;
  }

  .sitemap-table th,
  .sitemap-table td {
    overflow-wrap: anywhere;
  }

  .sitemap-table th.sitemap-date-heading {
    width: 25%;
  }
}
