/* Strona narzędziowa etapu T1 — prosty arkusz bez systemu designu (granica scope'u
   planu: strona testowa nie podlega sekcjom 1–4 design systemu projektu).
   Ma być czytelna na telefonie i na laptopie operatora, i tyle. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 16px;
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #ffffff;
}

img {
  max-width: 100%;
}

main {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.wstep {
  max-width: 70ch;
}

section {
  margin: 24px 0;
  padding-top: 16px;
  border-top: 1px solid #c8c8c8;
}

.pole {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 420px;
}

label {
  font-weight: 600;
}

input,
button,
progress {
  font: inherit;
}

input {
  padding: 6px 8px;
  border: 1px solid #767676;
  border-radius: 2px;
}

.przyciski {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button {
  padding: 8px 14px;
  border: 1px solid #1a1a1a;
  border-radius: 2px;
  background: #f2f2f2;
  cursor: pointer;
}

button:disabled {
  color: #6b6b6b;
  border-color: #9a9a9a;
  cursor: not-allowed;
}

/* Widoczny fokus klawiatury — operator przechodzi formularz tabulatorem. */
:focus-visible {
  outline: 3px solid #0a4fbf;
  outline-offset: 2px;
}

progress {
  width: 100%;
  max-width: 420px;
}

#status-komunikat {
  font-weight: 600;
}

/* Stan błędu niesie także słowo „Błąd" w treści komunikatu — sam kolor nie informuje. */
#status-komunikat[data-state='error'] {
  color: #8a1c1c;
}

.kod code {
  font-family: ui-monospace, monospace;
}

.tabela {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

caption {
  text-align: left;
  padding-bottom: 8px;
  color: #4a4a4a;
}

th,
td {
  padding: 6px 10px;
  border: 1px solid #c8c8c8;
  text-align: left;
  vertical-align: top;
}

td.liczba {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td.etag {
  font-family: ui-monospace, monospace;
  word-break: break-all;
}
