body {
    font-family: sans-serif;
    padding: 5px;
}

.menu {
    display: flex;
    gap: 12px; 
}

.menu button {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    background: #eee;
    cursor: pointer;
}

.menu button.active {
    background: #007bff;
    color: #fff;
    font-weight: bold;
}

.item-list {
    margin-top: 10px;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.btn {
    padding: 6px 10px;
    margin: 3px;
    cursor: pointer;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 320px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    margin-bottom: 10px;
    padding: 6px;
}

.modal-content p {
    margin: 6px 0;
}

#notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.notification {
    background: #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background: #2ecc71;
}

.notification.error {
    background: #e74c3c;
}

.notification.info {
    background: #3498db;
}

.menu-row {
    display: flex;
    align-items: center;
    /* verticaal centreren */
    gap: 10px;
    /* ruimte tussen menu en knop */
    margin-bottom: 20px;
}

.menu button {
    margin-right: 5px;
    /* optioneel: ruimte tussen menu-knoppen */
}
.score-win { color: green; font-weight: bold; }
.score-loss { color: red; font-weight: bold; }
.score-even { color: gray; }
.plusmin-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.plusmin-row button {
  width: 30px;
  height: 30px;
  font-size: 16px;
}

.plusmin-row .item-count {
  width: 40px !important;   /* !important zorgt dat het prioriteit krijgt */
  text-align: center;
  padding: 2px;
  font-size: 14px;
}
.plusmin-row {
  flex-direction: row;  /* horizontaal i.p.v. verticaal */
  justify-content: space-between;
}
.plusmin-row label {
  flex: 1;
}
.plusmin-row button, .plusmin-row .item-count {
  width: 30px;
}
#edit-modal .modal-content {
  max-height: 80vh;  /* 80% van schermhoogte */
  overflow-y: auto;
}
.accordion h3 {
  background: #eee;
  padding: 6px;
  cursor: pointer;
  margin: 4px 0;
}
.accordion-content {
  display: none;
  padding: 6px;
  border: 1px solid #ddd;
}

#admin-panel {
  background: rgba(0,0,0,0.05);
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}

#admin-panel.hidden {
  display: none;
}

#admin-panel input {
  flex: 1;
  padding: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#admin-panel button {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #1976d2;
  color: white;
  cursor: pointer;
}

#admin-panel button:hover {
  background: #125ea7;
}

.menu-row {
  display: flex;
  flex-wrap: wrap; /* knoppen mogen op een nieuwe regel als het niet past */
  align-items: center;
  gap: 5px; /* ruimte tussen knoppen */
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex: 1; /* neemt de beschikbare ruimte */
}

.menu button {
  flex: 1 1 auto; /* knoppen kunnen kleiner worden */
  min-width: 60px; /* voorkom dat ze te klein worden */
}

#btn-new, #admin-toggle {
  flex: 0 0 auto; /* deze blijven hun grootte houden */
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Titel links, knoppen rechts */
  padding: 0.5rem 1rem;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* ruimte tussen knoppen */
}

.header-buttons button {
  font-size: 1.2rem;
  cursor: pointer;
}


table.StandTabel th:nth-child(11),
table.StandTabel td:nth-child(11) {
  display: none;
}