/* Olus Purchasing — small additions on top of the shared Olus app.css */
#view-signin { background: #153C2A; color: #fff; min-height: 100vh; }
.po-center { max-width: 420px; margin: 0 auto; padding: 16vh 24px 24px; text-align: center; }
.po-center h1 { font-size: 1.6rem; margin: 20px 0 8px; }
.po-center p { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.po-signin-logo { width: 200px; mix-blend-mode: luminosity; opacity: .92; }
.po-signin-error { color: #fecaca !important; margin-top: 16px; font-size: .875rem; }
.po-card { padding: 20px; max-width: 640px; }
.po-card h3 { margin-bottom: 6px; }
.po-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin-top: 16px; font-size: .9rem; }
.po-kv dt { color: var(--text-muted); }
.po-kv dd { font-weight: 600; }
.po-help { margin-top: 16px; max-width: 720px; font-size: .9rem; }
.po-help summary { cursor: pointer; font-weight: 600; color: var(--brand-dark); }
.po-help ul { margin: 10px 0 8px 20px; line-height: 1.6; }
.po-muted-row td { opacity: .55; }
.po-form label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.po-form input, .po-form select { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.po-form .po-check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.po-form .po-check input { width: auto; }
.po-form .hint { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }

/* Phase 2a — PO list, detail, editor */
.po-back { display: inline-block; color: var(--brand); font-weight: 600; font-size: .875rem; cursor: pointer; margin-bottom: 10px; }
.po-back:hover { text-decoration: underline; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.po-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.po-tab { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.po-tab.active { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.po-tab .cnt { margin-left: 6px; background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 7px; }
.po-tab.active .cnt { background: rgba(255,255,255,.2); }
.po-list tr { cursor: pointer; }
.po-num { font-family: var(--mono); font-weight: 600; }
.st { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.st-draft { background: #eef1ec; color: #5e6e64; }
.st-awaiting { background: #fdf3dc; color: #8a5d05; }
.st-approved, .st-sent { background: #e3f2e9; color: #1d6b3f; }
.st-rejected, .st-cancelled { background: #fbe9e5; color: #a33a26; }
.st-received, .st-closed, .st-part { background: #e6eef7; color: #2c5282; }
.po-emerg { display: inline-block; background: #cc5540; color: #fff; border-radius: 4px; font-size: .68rem; font-weight: 700; padding: 1px 6px; margin-left: 6px; }
.po-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.po-head h1 { font-size: 1.5rem; font-weight: 800; color: var(--brand-dark); }
.po-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.po-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 24px; padding: 18px 20px; }
.po-grid dt { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.po-grid dd { font-weight: 600; margin-top: 2px; white-space: pre-wrap; }
.po-banner { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; font-size: .9rem; }
.po-banner.warn { background: #fdf3dc; color: #6b4a06; }
.po-banner.bad { background: #fbe9e5; color: #7c2d1f; }
.po-totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; justify-content: end; padding: 12px 20px 18px; margin-left: auto; width: max-content; font-variant-numeric: tabular-nums; }
.po-totals .g { font-weight: 800; font-size: 1.05rem; }
.po-audit { list-style: none; padding: 6px 20px 16px; font-size: .85rem; }
.po-audit li { padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.po-audit li:last-child { border-bottom: 0; }
.po-audit .t { color: var(--text-muted); min-width: 130px; }
.po-section-title { font-weight: 700; padding: 14px 20px 0; }
.po-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; }
.po-form textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--radius); min-height: 70px; font: inherit; }
.po-lines { width: 100%; border-collapse: collapse; font-size: .875rem; }
.po-lines th { text-align: left; font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px; }
.po-lines td { padding: 4px 6px; vertical-align: top; }
.po-lines input, .po-lines select { width: 100%; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.po-lines .c-desc { min-width: 220px; } .po-lines .c-qty { width: 80px; } .po-lines .c-unit { width: 90px; }
.po-lines .c-price { width: 110px; } .po-lines .c-vat { width: 120px; } .po-lines .c-tot { width: 100px; text-align: right; padding-top: 12px; font-variant-numeric: tabular-nums; }
.po-lines .c-x button { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 6px; }
.po-form-footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 768px) {
  .po-lines thead { display: none; }
  .po-lines tr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; border-bottom: 1px solid var(--border); padding: 8px 0; }
  .po-lines td { padding: 0; } .po-lines .c-desc { grid-column: 1 / -1; min-width: 0; }
  .po-lines .c-qty, .po-lines .c-unit, .po-lines .c-price, .po-lines .c-vat { width: auto; }
  .po-lines .c-tot { text-align: left; padding-top: 8px; }
}
