/* Crossbow warranty: customer and supplier pages. Self-contained, no CDN. */
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    --charcoal: #34383a; --charcoal-deep: #26292b; --lime: #bed64b; --lime-deep: #56660f;
    --paper: #f3f4f0; --surface: #fff; --line: #d6d9cf; --line-strong: #b4b9ab; --ink: #1e2321; --muted: #5b635c;
    --pass: #256b41; --pass-wash: #e3f1e6; --hold: #8a5a00; --hold-wash: #fbefd2; --stop: #a8231c; --stop-wash: #fbe5e2;
    --body: "Barlow", "Segoe UI", system-ui, sans-serif; --display: "Barlow Condensed", "Arial Narrow", "Barlow", sans-serif;
    --radius: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); }
h1, h2 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin: 2.5rem 0 0.6rem; padding-top: 1.25rem; border-top: 2px solid var(--charcoal); }
p { margin: 0 0 0.9rem; max-width: 40rem; }
a { color: var(--ink); text-decoration-color: var(--lime-deep); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 2px; }
.skip-link { position: absolute; left: -999rem; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; background: #fff; padding: 0.5rem; z-index: 5; }

.top { background: var(--charcoal-deep); color: #fff; border-bottom: 4px solid var(--lime); }
.top-in { max-width: 46rem; margin: 0 auto; padding: 0.8rem 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; align-items: baseline; }
.top-name { font: 600 1.375rem/1.1 var(--display); }
.top-name span { color: var(--lime); }
.top-user { font-size: 0.9375rem; display: flex; gap: 1rem; }
.top-user a { color: #fff; }
.top-user span { color: #c9cec4; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.wrap:has(.table) { max-width: 64rem; }
.top:has(.top-user) .top-in { max-width: 64rem; }

.lead { font-size: 1.1875rem; }
.quiet, .hint { color: var(--muted); }
.hint { font-size: 0.9375rem; margin: 0 0 0.35rem; }
.back { font-size: 0.9375rem; margin-bottom: 0.5rem; }

.facts { margin: 0 0 1.25rem; border-top: 1px solid var(--line-strong); }
.facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.status { background: var(--charcoal); color: #fff; padding: 0.85rem 1rem; border-radius: var(--radius); font-weight: 500; max-width: none; }
.status span { display: block; color: var(--lime); font: 600 1rem/1.2 var(--display); margin-bottom: 0.15rem; }

.notice { border: 1px solid; border-left-width: 5px; border-radius: var(--radius); padding: 0.75rem 1rem; margin: 0 0 1.25rem; max-width: none; }
.notice ul { margin: 0; padding-left: 1.1rem; }
.notice-pass { border-color: var(--pass); background: var(--pass-wash); }
.notice-hold { border-color: var(--hold); background: var(--hold-wash); }
.notice-stop { border-color: var(--stop); background: var(--stop-wash); }

.cases { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.cases a { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 0.25rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.cases a:hover strong { text-decoration: underline; }

.form { max-width: 34rem; }
.form-narrow { max-width: 22rem; }
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.2rem; }
input[type="text"], input[type="password"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.6rem 0.7rem; }
input[type="file"] { font: inherit; max-width: 100%; }
textarea { resize: vertical; }
.trap { position: absolute; left: -999rem; }
.check { display: flex; gap: 0.5rem; align-items: baseline; }
.check label { font-weight: 400; margin: 0; }
.button { font: 600 1.0625rem/1.2 var(--body); background: var(--lime); color: var(--ink); border: 1px solid #9fb53a; border-radius: var(--radius); padding: 0.75rem 1.4rem; cursor: pointer; }
.button:hover { background: #cbe05f; }

.msg-body { overflow-wrap: anywhere; }
.address { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.75rem 1rem; max-width: 24rem; }
.files { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; }
.files img { display: block; width: 7.5rem; height: 7.5rem; object-fit: cover; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.files .file-name { display: flex; align-items: center; width: 7.5rem; height: 7.5rem; padding: 0.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.875rem; overflow-wrap: anywhere; background: var(--surface); }
.thread { list-style: none; margin: 0; padding: 0; }
.msg { border-left: 4px solid var(--line-strong); padding: 0.1rem 0 0.1rem 0.9rem; margin: 0 0 1.1rem; }
.msg-customer { border-color: var(--charcoal); }
.msg-staff { border-color: var(--lime); }
.msg-supplier { border-color: var(--hold); }
.msg-head { color: var(--muted); font-size: 0.9375rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; margin-bottom: 0.15rem; }
.msg-head strong { color: var(--ink); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line-strong); }
.table th, .table td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; background: var(--paper); }
.tag { display: inline-block; font-size: 0.8125rem; font-weight: 600; padding: 0.05rem 0.45rem; border-radius: var(--radius); background: var(--paper); vertical-align: middle; font-family: var(--body); }
.tag-stop { background: var(--stop-wash); color: var(--stop); }

@media (max-width: 30rem) {
    .facts > div { grid-template-columns: 1fr; gap: 0; }
    .cases a { grid-template-columns: 1fr; }
}
