:root {
    --green: #0b6e4f;
    --green-dark: #084d38;
    --gold: #d4af37;
    --red: #c0392b;
    --bg: #f5f6f5;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0;
    background: var(--bg);
    color: #222;
}

header {
    background: var(--green);
    color: white;
    padding: 1rem 1.5rem;
}

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

nav a {
    color: white;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

nav a:hover { opacity: 1; text-decoration: underline; }

main {
    max-width: 900px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.flash {
    background: #fff3cd;
    border: 1px solid var(--gold);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    max-width: 900px;
    margin: 1rem auto 0;
}

.progress {
    margin-bottom: 1rem;
}

.progress-bar {
    background: #ddd;
    border-radius: 6px;
    height: 12px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.progress-fill {
    background: var(--green);
    height: 100%;
}

.filters {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.filters select {
    padding: 0.4rem;
    border-radius: 6px;
    border: 1px solid #ccc;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

th, td {
    padding: 0.6rem 0.7rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

th {
    background: var(--green-dark);
    color: white;
}

tr.row-needed { background: #fdecea; }
tr.row-dupe { background: #eaf7ef; }
tr.row-have { background: white; }

.qty button {
    padding: 0.2rem 0.5rem;
    border: 1px solid #ccc;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

button.danger {
    background: var(--red);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 400px;
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 0.3rem;
}

.form input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
}

button[type="submit"] {
    background: var(--green);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.empty {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    color: #555;
}

pre {
    background: #222;
    color: #eee;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.85rem;
}
