body.qa { display: block; overflow: auto; }
.qa-title { color: #c8d3ea; font-weight: 600; }
.qa .bar .btn.ghost { margin-left: auto; text-decoration: none; }
.qa-main { max-width: 1200px; margin: 20px auto; padding: 0 16px; display: grid; gap: 16px; }
.qa-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.qa-card h2 { margin: 0 0 12px; font-size: 15px; }
.qa-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qa-form label, .qa-form fieldset { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.qa-form .wide { grid-column: 1 / 4; }
.qa-form input, .qa-form select, .qa-form textarea { border: 1px solid var(--line); border-radius: 6px; padding: 7px 8px; background: var(--bg); color: var(--ink); font: inherit; }
.qa-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.sheetpick { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.sheetpick label { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; }
.actions { display: flex; align-items: center; gap: 12px; }
.msg { font-size: 13px; color: var(--muted); }
.qa-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.qa-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px; border-bottom: 1px solid var(--line); }
.qa-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.qa-table input { border: 1px solid var(--line); border-radius: 5px; padding: 4px 6px; width: 110px; background: var(--bg); color: var(--ink); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.received { background: #fef3c7; color: #92400e; }
.pill.in_qa { background: #dbeafe; color: #1e40af; }
.pill.delivered { background: #dcfce7; color: #166534; }
.due.late { color: var(--danger); font-weight: 600; }
.rowact { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.rowact a { text-decoration: none; }
.prog { width: 90px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 6px; }
.prog i { display: block; height: 100%; background: var(--accent); }
/* QA bar inside the viewer */
.qabar { display: flex; align-items: center; gap: 10px; padding: 6px 14px; background: #1e293b; color: #e2e8f0; font-size: 13px; flex-wrap: wrap; }
.qabar .btn { padding: 4px 10px; }
.qabar .muted { color: #94a3b8; }
@media (max-width: 800px) { .qa-form { grid-template-columns: 1fr; } .qa-form .wide { grid-column: 1; } }
.spacer { flex: 1; }
.who { color: #9fb0cf; font-size: 12px; }
.auth { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at top, #1e293b, #0b1020 70%); }
.auth-wrap { width: min(420px, 92vw); }
.auth-card { background: var(--panel); border-radius: 16px; padding: 28px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.brand.big { font-size: 22px; color: var(--ink); }
.brand.big .mark { width: 34px; height: 34px; font-size: 18px; }
.auth-sub { color: var(--muted); margin: 8px 0 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 8px; padding: 3px; margin-bottom: 14px; }
.auth-tabs button { border: 0; background: transparent; padding: 8px; border-radius: 6px; cursor: pointer; color: var(--muted); font-weight: 600; }
.auth-tabs button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.qa-form.one { grid-template-columns: 1fr; }
.qa-form.one .btn { padding: 10px; }
.pad { padding: 14px 16px; }
.upload { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qa-table td.t { font-weight: 600; }
.qa-form [hidden] { display: none !important; }
.qa-card { overflow-x: auto; }

.devbanner { background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 700; padding: 8px 10px; border-radius: 8px; margin-bottom: 14px; }
.amount { font-size: 28px; font-weight: 800; margin: 6px 0 16px; }
.pill.awaiting_payment { background: #fee2e2; color: #991b1b; }
.quote { font-size: 15px; font-weight: 700; }
.quote small { font-weight: 400; color: var(--muted); }
.banner { padding: 10px 14px; border-radius: 10px; background: #dcfce7; color: #166534; font-weight: 600; }
