/* ===== STARTLIST FINAL ===== */

body.startlist-page table{
  width:97%;
  margin:20px auto;
  border-collapse:collapse;
  background:#ffffff;
  box-shadow:0 4px 14px rgba(0,0,0,0.15);
  border-radius:8px;
}

/* komórki */
body.startlist-page th,
body.startlist-page td{
  padding:7px 10px;
  border-bottom:1px solid #e5e7eb;
  text-align:left;
}

/* nagłówek */
body.startlist-page thead th{
  position: sticky;
  top: 0;
  z-index: 50;
}

body.startlist-page thead th{
  background:#102a43;
  color:#ffffff;
  font-weight:600;
}

/* zebra rows */
body.startlist-page tbody tr:nth-child(even){
  background:#f3f4f6;
}

/* zawodnik z wagą */
body.startlist-page tbody tr.weighted{
  background:#e7f6e7;
}

/* input */
body.startlist-page input[type="number"]{
  width:70px;
  padding:5px;
  border:1px solid #cbd5e1;
  border-radius:4px;
  text-align:center;
}

/* button */
body.startlist-page .save-weight{
  margin-left:6px;
  padding:5px 10px;
  border:1px solid #cbd5e1;
  background:#f1f5f9;
  border-radius:4px;
  cursor:pointer;
}

body.startlist-page .save-weight:hover{
  background:#e2e8f0;
}

/* tabs */
body.startlist-page .tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px;
  margin-bottom:12px;
}

body.startlist-page .tabs button{
  padding:6px 12px;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  border-radius:20px;
  cursor:pointer;
}

/* panel */
body.startlist-page .startlist-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
  margin-bottom:20px;
}

/* druk */
@media print{
  body.startlist-page .save-weight{
    display:none !important;
  }
}
body.startlist-page .panel{
  display:block;
}
/* ===== CEREMONIA ===== */
.ceremony-block{
  margin:30px 0;
  padding:20px;
  background:#12384d;
  border-radius:10px;
  color:#fff;
}

/*  DRUK */
@media print {

  body{
    background:white;
    color:black;
  }

  .ceremony-block{
    /*  NIE rozdzielaj kategorii na strony */
    page-break-inside: avoid;

    /* wygląd do druku */
    background:white;
    color:black;
    border:1px solid #000;

    margin-bottom:20px;
  }

}
