/* Panel brokera — układ współdzielony z panelem instruktora, akcent firmowy pomarańczowy. */
* { box-sizing: border-box; }

body {
  font-family: "Lato", "Segoe UI", sans-serif;
  background: #fff;
  color: #000;
  margin: 0;
}

.topbar {
  width: 100%;
  max-width: 1024px;
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-title { font-size: 22px; font-weight: bold; padding: 8px 0; flex: 1; text-align: center; }

.topbar-nav,
.topbar-logout button {
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  color: #000;
  background: none;
  border: none;
  padding: 4px 14px;
  font-family: inherit;
  cursor: pointer;
}

.layout-content { max-width: 1024px; margin: 0 auto; padding: 0 10px 30px; }

.menu-btn {
  display: block;
  width: 100%;
  max-width: 667px;
  margin: 0 auto 10px;
  padding: 14px 0;
  text-align: center;
  font-size: 20px;
  font-family: inherit;
  color: #fff;
  background: #ff3300;
  border: none;
  border-radius: 22px;
  text-decoration: none;
  cursor: pointer;
}

/* Ekran logowania — jedna karta na środku, tło w firmowym granacie,
   żeby wejście odróżniało się od reszty aplikacji, która jest biała. */
.login-body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #0d3368;
}

.login-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.login-logo { display: block; width: 100%; max-width: 210px; height: auto; margin: 0 auto 6px; }

.login-subtitle {
  text-align: center;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6b7683;
  margin-bottom: 22px;
}

.login-form { margin: 0; display: flex; flex-direction: column; gap: 10px; }

.login-form input {
  padding: 13px;
  font-size: 18px;
  font-family: inherit;
  border: 2px solid #d5dae1;
  border-radius: 22px;
  text-align: center;
}

.login-form input:focus { outline: none; border-color: #ff3300; }
.login-form .menu-btn { margin-top: 6px; margin-bottom: 0; }

/* Wersja w rogu karty — panel pokazuje ją w tym samym miejscu. */
.login-version {
  position: absolute;
  right: 16px;
  bottom: 10px;
  font-size: 12px;
  color: #9aa4af;
}

.error {
  margin: 0 0 14px;
  padding: 10px 12px;
  text-align: center;
  font-size: 15px;
  color: #a3241a;
  background: #fdecea;
  border-radius: 8px;
}

.broker-card {
  max-width: 667px;
  margin: 10px auto;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 14px;
}

.broker-name { font-size: 20px; font-weight: bold; }
.broker-meta { font-size: 15px; color: #555; }

.empty { color: #666; text-align: center; margin-top: 20px; }

.back-btn {
  display: block;
  max-width: 667px;
  margin: 20px auto 0;
  padding: 12px 0;
  text-align: center;
  font-size: 18px;
  color: #000;
  border: 2px solid #999;
  border-radius: 22px;
  text-decoration: none;
}

.summary {
  display: flex;
  gap: 10px;
  max-width: 667px;
  margin: 10px auto;
}
.summary div {
  flex: 1;
  border: 2px solid #ddd;
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}
.summary span { display: block; font-size: 13px; color: #666; }
.summary b { font-size: 20px; font-variant-numeric: tabular-nums; }

.hint { max-width: 667px; margin: 0 auto 10px; font-size: 13px; color: #777; text-align: center; }

.lesson-card {
  max-width: 667px;
  margin: 0 auto 8px;
  border: 2px solid #ddd;
  border-radius: 14px;
  padding: 10px 14px;
}
.lesson-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lesson-client { font-size: 18px; font-weight: bold; }
.lesson-nr { font-size: 13px; color: #777; font-variant-numeric: tabular-nums; }
.lesson-row { font-size: 15px; color: #444; padding-top: 2px; }
.lesson-row.status { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.lesson-row.status.not_paid { color: #8a5a00; }
.lesson-row.status.paid { color: #1a7048; }
.lesson-row.status.na { color: #999; }

.table-wrap { max-width: 667px; margin: 10px auto; overflow-x: auto; }
.pricelist { border-collapse: collapse; width: 100%; font-size: 16px; }
.pricelist th, .pricelist td {
  border: 1px solid #ddd;
  padding: 8px 10px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.pricelist th:first-child, .pricelist td:first-child { text-align: left; }
.pricelist th { background: #f6f7f9; font-size: 14px; color: #555; }

.res-form { max-width: 667px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.res-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: #555; }
.res-form input, .res-form select {
  padding: 12px;
  font-size: 17px;
  font-family: inherit;
  border: 2px solid #d5dae1;
  border-radius: 12px;
}
.res-form input:focus, .res-form select:focus { outline: none; border-color: #ff3300; }
.res-form .back-btn { margin: 6px auto 0; width: 100%; cursor: pointer; background: #fff; font-family: inherit; }

.section { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: #6b7683; margin: 16px 0 0; }
.hint.left { text-align: left; margin: 0; }

.slots { display: flex; flex-direction: column; gap: 6px; }
.slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid #ddd;
  border-radius: 12px;
  cursor: pointer;
}
.slot.full { color: #999; border-style: dashed; cursor: not-allowed; }
.slot-hours { flex: 1; font-size: 17px; font-variant-numeric: tabular-nums; }
.slot-free { font-size: 13px; color: #666; }
.slot:has(input:checked) { border-color: #ff3300; }

.lesson-cancel { margin-top: 8px; }
.lesson-cancel button {
  font-size: 14px;
  font-family: inherit;
  color: #a3241a;
  background: #fff;
  border: 2px solid #e6c4c0;
  border-radius: 12px;
  padding: 6px 14px;
  cursor: pointer;
}

.flash {
  max-width: 667px;
  margin: 10px auto;
  padding: 10px 12px;
  text-align: center;
  color: #1a7048;
  background: #e7f3ec;
  border-radius: 8px;
}

/* Wyraźnie, ale bez krzyku — ma przypominać, czyje dane są na ekranie. */
.impersonation {
  max-width: 1024px;
  margin: 0 auto 6px;
  padding: 8px 14px;
  font-size: 14px;
  text-align: center;
  color: #8a5a00;
  background: #fbf1da;
  border-radius: 8px;
}
