/* OutcomeFlows Retail - shared styles for POS / Store / Pharmacy surfaces. */
:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-2: #273449;
  --line: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --brand: #0b6de0;
  --brand-2: #0a5cc0;
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a { color: #7dd3fc; }
header.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: var(--panel); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
header.topbar .brand { font-weight: 700; font-size: 1.05rem; }
header.topbar .spacer { flex: 1; }
header.topbar .who { color: var(--muted); font-size: .9rem; }
.tag {
  font-size: .72rem; padding: 2px 8px; border-radius: 999px;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 18px; }
.grid-pos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 860px) { .grid-pos { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.card h2 { margin: 0 0 12px; font-size: 1rem; }
label { display: block; font-size: .82rem; color: var(--muted); margin: 10px 0 4px; }
input, select {
  width: 100%; padding: 12px 12px; font-size: 16px; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
button {
  font-size: 15px; font-weight: 600; padding: 12px 16px; border: none;
  border-radius: 10px; cursor: pointer; background: var(--brand); color: #fff;
  min-height: 44px;
}
button:hover { background: var(--brand-2); }
button.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
button.danger { background: var(--bad); }
button.good { background: var(--good); }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.row.tight > * { flex: initial; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.cart-line td { vertical-align: middle; }
.totals { margin-top: 12px; font-size: .95rem; }
.totals .line { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.totals .grand { color: var(--text); font-size: 1.4rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.msg { margin: 10px 0; padding: 10px 12px; border-radius: 10px; font-size: .9rem; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(220,38,38,.15); color: #fca5a5; border: 1px solid rgba(220,38,38,.4); }
.msg.ok { background: rgba(22,163,74,.15); color: #86efac; border: 1px solid rgba(22,163,74,.4); }
.pill { padding: 2px 8px; border-radius: 999px; font-size: .72rem; }
.pill.low { background: rgba(217,119,6,.2); color: #fbbf24; }
.pill.rx { background: rgba(11,109,224,.2); color: #7dd3fc; }
.center-card { max-width: 380px; margin: 8vh auto; }
.hint { color: var(--muted); font-size: .82rem; margin-top: 8px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tabs button { background: var(--panel-2); border: 1px solid var(--line); }
.tabs button.active { background: var(--brand); }
.offline-bar {
  display: none; background: var(--warn); color: #1f2937; text-align: center;
  padding: 6px; font-size: .85rem; font-weight: 600;
}
.offline-bar.show { display: block; }
