/* Minimal clean styles */
body { margin:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background:#f7fafc; color:#0f172a;}
a { color:#0ea5e9; text-decoration:none; }
.topbar { background:#0ea5e9; color:#fff; padding:12px 16px; }
.topbar .brand { font-weight:700; margin-bottom:6px; }
.topbar nav a { margin-right:12px; color:#fff; }
.topbar nav a.right { float:right; }
.container { max-width:1100px; margin:18px auto; background:#fff; padding:18px; border-radius:14px; box-shadow:0 6px 24px rgba(0,0,0,.08); }
h1,h2,h3 { margin:0 0 12px; }
table { width:100%; border-collapse:collapse; }
th,td { padding:8px; border-bottom:1px solid #e5e7eb; }
.btn { display:inline-block; background:#0ea5e9; color:#fff; border:1px solid #0284c7; padding:8px 12px; border-radius:10px; }
.btn.secondary { background:#e2e8f0; color:#0f172a; border-color:#94a3b8; }
.grid { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
input,select,textarea { width:100%; padding:10px; border:1px solid #cbd5e1; border-radius:10px; }
.badge { padding:2px 8px; border-radius:999px; font-size:12px; border:1px solid #cbd5e1; }
.status-draft{ background:#fef3c7; color:#92400e; }
.status-sent{ background:#dbeafe; color:#1e40af; }
.status-accepted{ background:#dcfce7; color:#166534; }
.status-rejected{ background:#fee2e2; color:#991b1b; }
.status-unpaid{ background:#fee2e2; color:#991b1b; }
.status-partial{ background:#fef3c7; color:#92400e; }
.status-paid{ background:#dcfce7; color:#166534; }
.status-overdue{ background:#fde68a; color:#7c2d12; }
.doc { border:1px solid #e5e7eb; border-radius:12px; overflow:hidden; }
.doc .head { display:flex; justify-content:space-between; align-items:center; padding:16px; background:#0ea5e9; color:#fff; }
.doc .body { padding:16px; }
tfoot td { font-weight:700; }
.foot { text-align:center; color:#475569; padding:16px 0; }
