/**
 * Wspólna ramka stron z listami (zlecenia, klienci): szerokość, karta tabeli, mobile (karty).
 * Dołącz po fontach; strona nadaje własne kolory w :root i ewentualnie klasy kolumn.
 */
main.main.linqo-data-page,
main.linqo-data-page.main {
  max-width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px 24px 40px;
  width: 100%;
  box-sizing: border-box;
}
.page-header {
  margin-bottom: 18px;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.page-header p {
  font-size: 13px;
  color: var(--muted, #9ca3af);
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.table-card {
  background: radial-gradient(circle at top left, #020617, #020617);
  border-radius: 14px;
  border: 1px solid var(--border, #1e293b);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft, #0f172a);
  background: rgba(15, 23, 42, 0.96);
}
.table-header h2 {
  font-size: 14px;
  font-weight: 600;
}
.table-header span {
  font-size: 12px;
  color: var(--muted, #9ca3af);
}
.linqo-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.linqo-data-table th,
.linqo-data-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}
.linqo-data-table th {
  font-size: 11px;
  color: var(--muted, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-soft, #0f172a);
  background: #020617;
}
.linqo-data-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}
.linqo-data-table tbody tr:nth-child(2n) {
  background: var(--row-alt, rgba(15, 23, 42, 0.8));
}
.linqo-data-table tbody tr:hover {
  background: #020617;
}
.empty {
  padding: 16px;
  font-size: 13px;
  color: var(--muted, #9ca3af);
}

@media (max-width: 900px) {
  main.main.linqo-data-page,
  main.linqo-data-page.main {
    padding: 16px 16px 32px;
  }
}
@media (max-width: 720px) {
  .topbar {
    padding: 10px 14px;
  }
  main.main.linqo-data-page,
  main.linqo-data-page.main {
    padding: 14px 12px 28px;
  }
  .page-header h1 {
    font-size: 20px;
  }
  .filters label {
    display: block;
    width: 100%;
  }
  .filters input[type='search'],
  .filters select {
    width: 100%;
    max-width: none;
  }
  .linqo-data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .linqo-data-table,
  .linqo-data-table tbody,
  .linqo-data-table tr,
  .linqo-data-table td {
    display: block;
    width: 100%;
  }
  .linqo-data-table tbody tr {
    border: 1px solid var(--border, #1e293b);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 4px 12px 12px;
    background: rgba(15, 23, 42, 0.92);
  }
  .linqo-data-table tbody tr:nth-child(2n) {
    background: rgba(17, 24, 39, 0.95);
  }
  .linqo-data-table tbody td {
    border: none;
    border-bottom: 1px solid rgba(30, 41, 59, 0.75);
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(6.5rem, 36%) 1fr;
    gap: 6px 10px;
    align-items: start;
    text-align: left;
    white-space: normal !important;
  }
  .linqo-data-table tbody td:last-child {
    border-bottom: none;
    padding-bottom: 4px;
  }
  .linqo-data-table tbody td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
    color: var(--muted, #9ca3af);
  }
}
