body {
    font-family: Arial, sans-serif;
}

form {
    margin-bottom: 15px;
}

select {
    padding: 6px;
    min-width: 220px;
}

table {
    border-collapse: collapse;
    width: 100%;
    max-width: 900px;
}

th,
td {
    border: 1px solid #999;
    padding: 8px;
    text-align: left;
}

th {
    background: #f2f2f2;
}

.message {
    margin-top: 15px;
    color: #555;
}

/* New styles for editable table */
td.editable {
    padding: 4px;
    position: relative;
}
td.editable:focus {
    background: #fff3cd;
    outline: 2px solid #ffc107;
}
td[data-field="id"] {
    display: none;
}
.actions {
    white-space: nowrap;
    text-align: center;
}
button {
    padding: 4px 8px;
    margin: 0 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    background: white;
}
.save {
    background: #28a745;
    color: white;
    border-color: #28a745;
}
.save.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6c757d;
    border-color: #6c757d;
}
.delete {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}
.new {
    background: #007bff;
    color: white;
    border-color: #007bff;
}
.success-msg {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin: 10px 0;
}
.error-msg {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 10px 0;
}
