/* BMOS app — base. Tokens do wireframe v4. Páginas acrescentam estilo próprio em <style> dentro da view. */
:root { --ink:#1d1622; --sub:#5f5566; --faint:#8c8392; --line:#e6dcea; --soft:#f3eef5; --paper:#fbf9fc; --card:#fff; --plum:#4b2352; --plum2:#341739; --orchid:#a24b9d; --orchidInk:#7d3579; --lilac:#f5eef6; --lilacLine:#e3d0e5; --ok:#1f7a55; --okWash:#e6f4ee; --okLine:#b9e0cd; --warn:#8a5d0c; --warnWash:#fbf3e0; --warnLine:#ecd9a8; --bad:#b3261e; --badWash:#fbeae8; --badLine:#f0c4bf; --shadow:0 1px 2px rgba(29,22,34,.04),0 8px 24px rgba(29,22,34,.06); --mono:'JetBrains Mono',ui-monospace,Menlo,monospace; }
* { box-sizing:border-box; } [hidden] { display:none !important; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:'Schibsted Grotesk','Helvetica Neue',Arial,sans-serif; font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased; }
a { color:var(--orchidInk); } a:hover { color:var(--orchid); }
h1,h2,h3,h4 { margin:0; letter-spacing:-.02em; line-height:1.15; } h1 { font-size:34px; font-weight:800; } h2 { font-size:24px; font-weight:800; } h3 { font-size:18px; font-weight:700; } h4 { font-size:15px; font-weight:700; }
p { margin:0; } .muted { color:var(--sub); } .faint { color:var(--faint); } .sm { font-size:13px; } .xs { font-size:12px; } .mono { font-family:var(--mono); font-variant-numeric:tabular-nums; }
.wrap { width:min(1160px, 100% - 40px); margin:0 auto; } .row { display:flex; align-items:center; gap:14px; } .grow { flex:1; } .stack { display:flex; flex-direction:column; gap:14px; } .inline { display:inline; margin:0; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 18px; border-radius:10px; border:1px solid var(--plum); background:var(--plum); color:#fff; font:inherit; font-size:14.5px; font-weight:700; text-decoration:none; cursor:pointer; white-space:nowrap; }
.btn:hover { background:var(--plum2); color:#fff; } .btn.ghost { background:#fff; color:var(--ink); border-color:var(--line); } .btn.ghost:hover { background:var(--soft); color:var(--ink); }
.btn.danger { background:#fff; color:var(--bad); border-color:var(--badLine); } .btn.sm { min-height:34px; padding:0 12px; font-size:13px; border-radius:8px; } .btn.lg { min-height:52px; font-size:16px; padding:0 22px; } .btn.block { width:100%; }
.btn[disabled], .btn.busy { opacity:.6; cursor:progress; }
:focus-visible { outline:3px solid var(--orchid); outline-offset:2px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:var(--shadow); padding:20px; }
.soft { background:var(--soft); border-radius:12px; padding:16px; } .wash { background:var(--lilac); border:1px solid var(--lilacLine); border-radius:12px; padding:16px; }
.pill { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; border-radius:999px; padding:3px 10px; border:1px solid var(--line); background:var(--soft); color:var(--sub); text-decoration:none; white-space:nowrap; }
.pill.ok { color:var(--ok); background:var(--okWash); border-color:var(--okLine); } .pill.warn { color:var(--warn); background:var(--warnWash); border-color:var(--warnLine); } .pill.bad { color:var(--bad); background:var(--badWash); border-color:var(--badLine); } .pill.brand { color:var(--orchidInk); background:var(--lilac); border-color:var(--lilacLine); } .pill.off { color:var(--faint); }
label.f { display:flex; flex-direction:column; gap:6px; font-size:13.5px; font-weight:600; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=search], select, textarea { font:inherit; font-size:16px; min-height:46px; padding:0 14px; border:1px solid #d9cddd; border-radius:10px; background:#fff; color:var(--ink); width:100%; }
textarea { padding:12px 14px; min-height:110px; resize:vertical; } input:focus, select:focus, textarea:focus { outline:3px solid rgba(162,75,157,.3); border-color:var(--orchid); }
.err { color:var(--bad); font-size:13px; font-weight:500; } .hint { color:var(--faint); font-size:12.5px; font-weight:400; } .field-bad input { border-color:var(--bad); }
table.t { width:100%; border-collapse:collapse; background:#fff; } table.t th { text-align:left; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); font-weight:700; padding:10px 14px; background:var(--soft); border-bottom:1px solid var(--line); } table.t td { padding:12px 14px; border-bottom:1px solid var(--line); font-size:14px; vertical-align:middle; } table.t tr:last-child td { border-bottom:0; }
.tablewrap { border:1px solid var(--line); border-radius:12px; overflow:auto; background:#fff; }
.testbar { background:var(--warnWash); color:var(--warn); border:1px solid var(--warnLine); border-radius:10px; padding:8px 12px; font-size:13px; }
.origin { display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; color:var(--orchidInk); background:var(--lilac); border:1px solid var(--lilacLine); border-radius:999px; padding:3px 10px 3px 6px; white-space:nowrap; }
.empty { text-align:center; padding:44px 16px; display:flex; flex-direction:column; align-items:center; gap:10px; } .emo-lg { font-size:40px; width:72px; height:72px; border-radius:20px; background:var(--soft); display:flex; align-items:center; justify-content:center; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:var(--ink); color:#fff; border-radius:10px; padding:10px 16px; font-size:14px; z-index:1000; box-shadow:var(--shadow); }
/* marketing */
.mtop { height:66px; border-bottom:1px solid var(--line); background:rgba(251,249,252,.94); position:sticky; top:0; z-index:20; backdrop-filter:saturate(1.2) blur(6px); } .mtop .row { height:100%; gap:28px; }
.logo { display:inline-flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink); font-weight:800; letter-spacing:-.02em; white-space:nowrap; }
.mnav { display:flex; gap:22px; } .mnav a, .navlink { color:var(--sub); text-decoration:none; font-weight:500; } .mnav a.on { color:var(--ink); font-weight:700; }
.mfoot { border-top:1px solid var(--line); background:#fff; padding:40px 0 30px; margin-top:80px; } .fgrid { display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:28px; } .fgrid a { display:block; color:var(--sub); text-decoration:none; font-size:14px; margin-top:6px; } .fgrid b { font-size:13px; }
/* painel */
.atop { height:58px; display:flex; align-items:center; gap:14px; padding:0 20px; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.storechip { display:inline-flex; gap:8px; align-items:center; border:1px solid var(--line); border-radius:8px; padding:5px 10px; font-weight:600; font-size:13.5px; max-width:260px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.avatar { width:34px; height:34px; border-radius:50%; background:var(--plum); color:#fff; border:0; font:inherit; font-weight:700; cursor:pointer; }
.alayout { display:flex; min-height:calc(100vh - 58px); } .aside { width:224px; flex-shrink:0; border-right:1px solid var(--line); padding:14px 12px; display:flex; flex-direction:column; gap:2px; position:sticky; top:58px; height:calc(100vh - 58px); }
.aside a { display:flex; gap:10px; align-items:center; padding:8px 10px; border-radius:8px; color:var(--sub); text-decoration:none; font-weight:500; } .aside a.on { background:var(--soft); color:var(--ink); font-weight:700; } .aside .emo { width:20px; text-align:center; }
.plan { display:flex; flex-direction:column; gap:2px; background:var(--lilac); border:1px solid var(--lilacLine); border-radius:10px; padding:10px 12px; font-size:13px; }
.amain { flex:1; min-width:0; padding:24px 32px 64px; display:flex; flex-direction:column; gap:20px; }
.mnavbar { display:none; }
@media (max-width: 860px) {
  h1 { font-size:27px; } .mnav, .navlink { display:none; } .fgrid { grid-template-columns:1fr; } .fgrid a { min-height:44px; display:flex; align-items:center; margin-top:0; } .mtop .row { gap:10px; } .mtop .btn.sm { padding:0 10px; } .mtop .logo span { font-size:15px !important; }
  .aside { display:none; } .amain { padding:16px 16px 96px; } .atop { padding:0 12px; gap:8px; } .storechip { max-width:130px; } .atop .logo span { display:none; }
  .mnavbar { display:flex; position:fixed; bottom:0; left:0; right:0; height:66px; background:#fff; border-top:1px solid var(--line); z-index:30; justify-content:space-around; }
  .mnavbar a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; flex:1; font-size:11px; font-weight:600; color:var(--faint); text-decoration:none; min-height:48px; } .mnavbar a.on { color:var(--ink); } .mnavbar a span { font-size:19px; }
}

/* pedidos e datas não quebram */
table.t td:first-child, table.t td:nth-child(2) { white-space:nowrap; }
