/* v3 styling */
:root { --bg:#f6f7fb; --card:#fff; --text:#111; --muted:#6b7280; --line:#e5e7eb; --accent:#111; --wa:#22c55e; }
*{ box-sizing:border-box; }
body{ margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial; background:var(--bg); color:var(--text); }
.box{ max-width:560px; margin:18px auto; padding:14px; }
.top{ margin-bottom:8px; }
.brand{ display:flex; align-items:center; gap:12px; padding:8px 6px; }
.brand-mark{ font-size:28px; }
.brand-text h1{ margin:0; font-size:26px; letter-spacing:.5px; }
.brand-text p{ margin:4px 0 0; color:var(--muted); font-size:13px; }
.card{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:14px; margin:12px 0; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.label{ display:block; margin:10px 0 6px; font-weight:700; font-size:13px; }
input, select{ width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:10px; font-size:14px; outline:none; }
input:focus, select:focus{ border-color:#c7cbd6; }
.row{ display:flex; gap:10px; }
.col{ flex:1; }
.status{ margin-top:10px; padding:10px 12px; background:#fafafa; border:1px dashed var(--line); border-radius:10px; font-size:13px; color:var(--muted); }
.actions{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; justify-content:center; padding:10px 12px; border-radius:12px; border:1px solid var(--accent); background:var(--accent); color:#fff; font-weight:800; cursor:pointer; text-decoration:none; flex:1; min-width:150px; }
.btn.secondary{ background:#fff; color:var(--accent); }
.btn.whatsapp{ background:var(--wa); border-color:var(--wa); color:#fff; }
.btn:disabled, .btn.disabled{ opacity:.45; pointer-events:none; }
.preview-wrap{ margin-top:10px; }
.preview{ width:100%; height:auto; border-radius:12px; border:1px solid var(--line); background:#fff; }
.hint{ margin-top:8px; font-size:12px; color:var(--muted); }
.mini{ margin:10px 0 0; color:var(--muted); font-size:12px; }

/* receipt */
.receipt{ width:320px; margin:0 auto; }
.receipt-header{ text-align:center; margin-bottom:8px; }
.receipt-title{ font-weight:900; letter-spacing:1px; font-size:18px; }
.receipt-sub{ font-size:12px; color:#444; margin-top:2px; }
.receipt-meta{ font-size:12px; color:#444; text-align:center; margin-bottom:6px; }
.receipt-row{ display:flex; justify-content:space-between; gap:10px; font-size:14px; margin:6px 0; }
.receipt-footer{ text-align:center; margin-top:10px; font-weight:700; }
