.centerContainer {
  max-width: 900px;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.buttonRow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.placementsRow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.placementsRow input[type="number"] {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

#submitButton,
#cancelButton.secondary {
  width: 100%;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
}

#cancelButton.secondary {
  background-color: #f44336;
  color: #fff;
  border: none;
  margin-top: 0.5rem;
  box-shadow: 0 1px 4px rgba(244, 67, 54, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

#cancelButton.secondary:hover,
#cancelButton.secondary:focus {
  background-color: #c62828;
  box-shadow: 0 2px 8px rgba(244, 67, 54, 0.15);
  outline: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(45, 127, 249, 0.04);
}

th,
td {
  padding: 0.8rem 0.5rem;
  text-align: center;
}

th {
  background: #e9eefb;
  color: #2d7ff9;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #f4f7fb;
}

tr:hover {
  background: #e3eefd;
}

td {
  color: #222;
}

#form h3 {
  display: none;
  font-size: 1.08rem;
  font-weight: 600;
  color: #2d7ff9;
  background: #e9eefb;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: 0.5px;
}

#form.editing h3 {
  display: block;
}

.actionButton {
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0 0.2rem 0.4rem 0;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.actionButton.modify {
  background-color: #2d7ff9;
  color: white;
}

.actionButton.modify:hover {
  background-color: #1a68d4;
}

.actionButton.delete {
  background-color: #dc3545;
  color: white;
}

.actionButton.delete:hover {
  background-color: #bd2130;
}

.tableResponsive {
  overflow-x: auto;
}

@media (max-width: 700px) {
  .centerContainer {
    padding: 1.2rem 0.5rem;
    max-width: 100vw;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  th {
    display: none;
  }

  td {
    padding: 0.7rem 0.3rem;
    border-bottom: 1px solid #e9eefb;
    position: relative;
  }

  td:before {
    content: attr(data-label);
    font-weight: bold;
    color: #2d7ff9;
    display: block;
    margin-bottom: 0.2rem;
  }
}
