* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.hidden {
    display: none;
}

#offline-warning {
    background-color: #ffcc00;
    color: #000000;
    text-align: center;
    padding: 10px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.offline-mode {
    background-color: #cccccc; /* Change background to grey when offline */
    color: #666666; /* Change text color to dark grey when offline */
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    width: 500px;
    overflow: hidden;
}

h1 {
    color: #00046d;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

input[type="text"] , input[list] {
    flex: 1 1 calc(50% - 10px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.primary-button, .secondary-button {
    padding: 10px 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    flex: 1 1 100%;
}

.primary-button {
    background-color: #00046d;
    color: #fff;
    margin-top: 10px;
}

.secondary-button {
    background-color: #ddd;
    color: #333;
    margin-top: 10px;
}

#filters {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#filters select, #filters label {
    flex: 1 1 calc(33.33% - 10px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ccc;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

table th {
    background-color: #00046d;
    color: #fff;
}

.read-row {
    background-color: #f2f2f2;
    color: #999;
}

#statusMessage {
    margin-top: 20px;
    font-size: 16px;
    color: green;
    text-align: center;
}
