body {
  font-family: Arial, sans-serif;
  background: #fafafa;
  padding: 20px;
}

.table-container {
  max-width: 1000px;
  margin: auto;
}

.table-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.table-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.btn-red {
  background: #e63946;
}
.btn-black {
  background: #1d1d1d;
}
.btn-gray {
  background: #6c757d;
}
.btn-green {
  background: #2a9d8f;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid #ccc;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.input-cell {
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
}

.sticky-col-left {
  position: sticky;
  left: 0;
  background: white;
  z-index: 2;
}

.sticky-col-right {
  position: sticky;
  right: 0;
  background: white;
  z-index: 2;
}

.footer-cell {
  font-weight: bold;
  background: #e9ecef;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.modal h2 {
  margin-top: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
