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

header {
    background: #317EFB;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav a {
    color: #fff;
    margin-left: 1rem;
    text-decoration: none;
}

main {
    padding: 1rem;
}

section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 0.3rem;
    box-sizing: border-box;
}

.field.two-columns {
    display: flex;
    gap: 1rem;
}

.field.two-columns div {
    flex: 1;
}

button {
    background: #317EFB;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
}

button:hover {
    background: #2b69d9;
}

#map {
    height: 400px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
}

#issue-list .issue-item {
    border-bottom: 1px solid #eee;
    padding: 0.5rem 0;
}

#issue-list .issue-item:last-child {
    border-bottom: none;
}

/* Status colours */
.status-new { border-left: 5px solid #e74c3c; }
.status-acknowledged { border-left: 5px solid #e67e22; }
.status-in-progress { border-left: 5px solid #f1c40f; }
.status-waiting-on-parts { border-left: 5px solid #9b59b6; }
.status-resolved { border-left: 5px solid #2ecc71; }
.status-done { border-left: 5px solid #2ecc71; }

.error { color: #e74c3c; margin-top: 0.5rem; }
.success { color: #27ae60; margin-top: 0.5rem; }

/* Address suggestions */
.suggestions {
    position: relative;
    background: #fff;
    border: 1px solid #ccc;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
}
.suggestion {
    padding: 0.3rem 0.5rem;
    cursor: pointer;
}
.suggestion:hover {
    background: #f0f0f0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table.metrics th, table.metrics td {
    padding: 0.5rem;
    border: 1px solid #ddd;
    text-align: center;
}

table.issues-table th, table.issues-table td {
    padding: 0.3rem;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.warn { color: #e74c3c; font-weight: bold; }
.ok { color: #27ae60; font-weight: bold; }