/* General styles for the admin page */
.wrap {
    max-width: auto; /* Use the full width */
    margin: 20px;
    font-family: Arial, sans-serif;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #555;
}

/* Form styling */
form {
    margin: 0;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Two-column checkbox layout */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.checkbox-grid li {
    margin-bottom: 5px;
}

/* Styled checkboxes */
input[type="checkbox"] {
    margin-right: 10px;
}

button {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

button:hover {
    background-color: #005177;
}

/* Save status message */
#xmlrpcld-save-status {
    margin-top: 10px;
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 3px;
    display: none;
}

/* Custom additions form */
#xmlrpcld-custom-allowances-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

#xmlrpcld-custom-allowances-form input {
    flex-grow: 1;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

/* Custom additions list */
#custom-allowances-list {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#custom-allowances-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
}

#custom-allowances-list li span {
    font-weight: bold;
    color: #333;
}

.remove-allowance {
    color: #d9534f;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.remove-allowance:hover {
    background-color: #f8d7da;
    text-decoration: none;
}

/* Responsive Layout */
@media (min-width: 768px) {
    .wrap > div {
        display: flex;
        gap: 20px;
    }

    .wrap > div > div {
        flex: 1;
    }
}
