body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    max-width: 90%;
    margin: 20px auto;
    padding: 20px;
    border: 2px solid #007BFF;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

h1 {
    text-align: center;
    margin-top: 0;
    font-size: 1.5em;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.button-group .button {
    flex: 1 1 30%;
    margin: 5px;
    padding: 8px;
    text-align: center;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.button-group .button:hover {
    background-color: #0056b3;
}

@media (max-width: 600px) {
    .button-group {
        flex-direction: column;
    }

    .button-group .button {
        flex: 1 1 100%;
        margin: 5px 0;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    border: 1px solid #ddd;
    white-space: nowrap;
    padding: 6px;
    text-align: left;
}

th {
    background-color: #007BFF;
    white-space: nowrap;
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

label {
    flex: 0 0 120px;
    margin-right: 5px;
    font-weight: bold;
    font-size: 14px;
}

input[type="text"],
input[type="date"],
select {
    flex: 1;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="submit"] {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

#form-popup {
    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;
    z-index: 1000;
}

#form-content {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1001;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    cursor: pointer;
}

.close-btn:hover {
    background-color: #0056b3;
}

.extra-table {
    margin-top: 10px;
    overflow-x: auto;
}

.action-cell {
    text-align: center;
}

.delete-button {
    background-color: #dc3545;
    border: none;
    color: white;
    padding: 4px 8px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    margin: 2px 1px;
    cursor: pointer;
    border-radius: 4px;
}

.delete-button:hover {
    background-color: #c82333;
}

.error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

.hidden {
    display: none;
}
#error-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}


#error-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#error-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 400px;
    width: 80%;
    text-align: center;
}

.btn-group {
    margin-top: 20px;
}

.btn-close {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.btn-close:hover {
    background-color: #d32f2f;
}