/* Warehouse app — on top of the cleaner page's s.css. Phone first, fine on a tablet. */
body.w main { max-width: 760px; margin: 0 auto; }
.wtabs { display: flex; gap: 4px; overflow-x: auto; padding: 6px 12px; position: sticky; top: 0; z-index: 5; background: var(--bg, #f7f7f4); border-bottom: 1px solid var(--border); }
.wtabs a { flex: none; padding: 9px 12px; border-radius: 999px; text-decoration: none; color: var(--text-2, #555); font-weight: 600; font-size: 14px; white-space: nowrap; }
.wtabs a.on { background: var(--primary, #4f46e5); color: #fff; }
.wbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.wbar select { flex: 1; min-width: 150px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; flex: none; }
.seg button, .seg a { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 13px; border: 0; background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; width: auto; margin: 0; }
.seg .on { background: var(--primary, #4f46e5); color: #fff; }
.seg.wide { display: flex; margin: 10px 0; } .seg.wide a { flex: 1; text-align: center; }
.wstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin: 10px 0; }
.wstats div { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 8px 10px; }
.wstats b { display: block; font-family: var(--font-display); font-size: 22px; }
.wstats span { font-size: 12px; color: var(--muted); }
.wstats .red { border-color: var(--red, #c0392b); } .wstats .red b { color: var(--red, #c0392b); }
.wcard { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin: 8px 0; color: inherit; text-decoration: none; }
.wcard.must { border-left: 4px solid var(--red, #c0392b); }
.wcard.warn { border-color: var(--amber, #b7791f); }
.wcard summary { cursor: pointer; }
.whead { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.sub { font-size: 13px; color: var(--text-2, #555); margin-top: 2px; }
.low { color: var(--red, #c0392b) !important; }
.big { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.wrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-subtle, #eee); font-size: 14px; }
.wrow:last-child { border-bottom: 0; }
.wrow.head { font-size: 12px; color: var(--muted); font-weight: 600; }
.wrow.head span:not(.grow), .wrow > span:not(.grow):not(.tag) { min-width: 52px; text-align: right; }
.wrow input.cnt, .wline input { width: 78px; flex: none; text-align: center; padding: 9px 6px; font-size: 16px; font-family: var(--font-display); font-weight: 700; }
.wlines { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; margin-top: 10px; }
.wline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 14px; font-weight: 500; color: var(--text); }
.chip { display: inline-block; font-size: 13px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.wfoot { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.wfoot select { flex: 1; min-width: 0; }
button.small { width: auto; padding: 10px 16px; font-size: 14px; margin: 0; }
.tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--gray-light, #eee); color: var(--text-2, #555); white-space: nowrap; }
.tag.red { background: var(--red-light, #fdeaea); color: var(--red, #c0392b); } .tag.amber { background: var(--amber-light, #fdf3d7); color: var(--amber, #b7791f); }
.tag.green { background: var(--green-light, #e6f6ec); color: var(--green, #1d7a46); } .tag.blue { background: var(--primary-light, #ecebff); color: var(--primary, #4f46e5); }
.lb-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin: 16px 0 4px; }
.muted { color: var(--muted); }
a.back { font-size: 13px; font-weight: 600; text-decoration: none; }
a.btnlink { flex: 1; text-align: center; padding: 11px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); text-decoration: none; font-weight: 600; color: var(--text); }
.wtoast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d1c1a; color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; z-index: 30; max-width: 90vw; }
.wtoast.bad { background: var(--red, #c0392b); }
#who { font-size: 13px; }
body.w select { font: inherit; font-size: 16px; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); }
.wfoot select, .wbar select { width: auto; }

.good { color: var(--green, #1d7a46); }
a.plain { color: inherit; text-decoration: none; }

/* Sam, 2 Dec 2026: "can't see where to enter the quantity" — every number box has a clear frame */
.wrow input.cnt, .wline input { border: 2px solid var(--muted, #78716c); border-radius: 10px; background: var(--card); color: var(--text); }
.wrow input.cnt:focus, .wline input:focus { border-color: var(--accent, #4f46e5); outline: none; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2); }
.wrow input.cnt.kit { border-style: solid; border-color: var(--accent, #4f46e5); }
body.w select { border: 2px solid var(--muted, #78716c); }
.wline span { min-width: 0; }
.wline .shelf { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.wline .shelf.low { color: #b91c1c; font-weight: 700; }
.setlbl { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
