:root {
    --wc-brand: #e2007a;
    --wc-ink: #1f2933;
    --wc-muted: #6b7280;
    --wc-line: #e5e7eb;
    --wc-bg: #f6f7f9;
    --wc-green: #198754;
    --wc-amber: #d97706;
    --wc-red: #dc3545;
}

body {
    background: var(--wc-bg);
    color: var(--wc-ink);
    font-size: 0.925rem;
}

h1:focus { outline: none; }

.wc-shell { display: flex; min-height: 100vh; }

.wc-nav {
    width: 220px; flex-shrink: 0; background: #111827; color: #d1d5db;
    display: flex; flex-direction: column; padding: 1rem 0.75rem; gap: 0.15rem;
    position: sticky; top: 0; height: 100vh;
}
.wc-brand {
    display: flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none;
    font-weight: 700; font-size: 1.15rem; padding: 0.25rem 0.5rem 1rem;
}
.wc-brand i { color: var(--wc-brand); }
.wc-link {
    display: flex; align-items: center; gap: 0.6rem; color: #d1d5db; text-decoration: none;
    padding: 0.5rem 0.65rem; border-radius: 0.4rem;
}
.wc-link:hover { background: #1f2937; color: #fff; }
.wc-link.active { background: var(--wc-brand); color: #fff; }
.wc-nav-foot { margin-top: auto; font-size: 0.75rem; color: #6b7280; padding: 0.5rem; }

.wc-main { flex: 1; min-width: 0; padding: 1.25rem 1.5rem 3rem; }

.wc-page-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.wc-page-title h1 { font-size: 1.4rem; margin: 0; font-weight: 700; }
.wc-page-title .sub { color: var(--wc-muted); font-size: 0.85rem; }

.wc-card { background: #fff; border: 1px solid var(--wc-line); border-radius: 0.6rem; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.wc-card > h2, .wc-card > .wc-card-head h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.75rem; }
.wc-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.wc-card-head h2 { margin: 0 !important; }

/* Ordering form, laid out like Flexpress's ordering page */
.wc-order label.col-form-label { font-weight: 600; padding-bottom: 0.15rem; }
.wc-order h4 { font-size: 1.05rem; font-weight: 700; margin: 0.5rem 0 0.25rem; }
.wc-dispatch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.wc-dispatch button {
    border: 1px solid var(--wc-line); background: #fff; border-radius: 0.5rem; padding: 0.45rem; text-align: left; font-size: 0.85rem;
}
.wc-dispatch button.active { border-color: var(--wc-brand); box-shadow: 0 0 0 2px rgba(226, 0, 122, 0.15); }
.wc-dispatch .pct { display: block; color: var(--wc-muted); font-size: 0.75rem; }

/* Headline figures */
.wc-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.wc-figure { background: #fff; border: 1px solid var(--wc-line); border-radius: 0.6rem; padding: 0.8rem 1rem; }
.wc-figure .label { color: var(--wc-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.wc-figure .value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.wc-figure .note { color: var(--wc-muted); font-size: 0.78rem; }
.wc-figure.light-Green { border-left: 6px solid var(--wc-green); }
.wc-figure.light-Amber { border-left: 6px solid var(--wc-amber); }
.wc-figure.light-Red { border-left: 6px solid var(--wc-red); }

.wc-light { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }
.wc-light::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: currentColor; }
.wc-light.Green { color: var(--wc-green); }
.wc-light.Amber { color: var(--wc-amber); }
.wc-light.Red { color: var(--wc-red); }

/* Side by side cost and price */
.wc-side { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 1100px) { .wc-side { grid-template-columns: 1fr; } }
.wc-table { width: 100%; font-size: 0.86rem; }
.wc-table th { color: var(--wc-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--wc-line); padding: 0.35rem 0.4rem; }
.wc-table td { padding: 0.35rem 0.4rem; border-bottom: 1px solid #f1f2f4; vertical-align: top; }
.wc-table tr.total td { font-weight: 700; border-top: 2px solid var(--wc-ink); border-bottom: none; }
.wc-table tr.group td { background: #fafafa; font-weight: 600; }
.wc-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wc-table .muted, .muted { color: var(--wc-muted); }
.wc-table tr.chosen td { background: #fdf2f8; }

.wc-edit-table input.form-control, .wc-edit-table select.form-select { font-size: 0.82rem; padding: 0.15rem 0.35rem; min-width: 4.5rem; }
.wc-edit-table td { padding: 0.2rem 0.25rem; }
.wc-badge { font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 0.3rem; background: #eef2ff; color: #3730a3; white-space: nowrap; }
.wc-badge.local { background: #fef3c7; color: #92400e; }
.wc-badge.flex { background: #e0f2fe; color: #075985; }
.wc-badge.pw { background: #ede9fe; color: #5b21b6; }
.wc-badge.off { background: #f3f4f6; color: #6b7280; }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred." }
