* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f6f7f9; color: #1f2430; }
.topnav { display: flex; align-items: center; gap: 1.25rem; padding: 0.9rem 1.5rem; background: #1f2430; }
.topnav a { color: #cbd2e0; text-decoration: none; font-size: 0.95rem; }
.topnav a.brand { color: #fff; font-weight: 600; margin-right: 1rem; }
.topnav a.right { margin-left: auto; }
.topnav a:hover { color: #fff; }
.container { max-width: 960px; margin: 2rem auto; padding: 0 1.5rem; }
.card { background: #fff; border: 1px solid #e3e6ec; border-radius: 8px; padding: 1.5rem; margin-bottom: 1.5rem; }
h1 { font-size: 1.5rem; margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid #eceef2; font-size: 0.92rem; }
th { color: #6b7280; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
    width: 100%; padding: 0.5rem 0.6rem; border: 1px solid #d3d7e0; border-radius: 6px; font-size: 0.95rem;
}
label { display: block; font-size: 0.85rem; color: #4b5160; margin-bottom: 0.25rem; margin-top: 0.75rem; }
.btn { display: inline-block; padding: 0.55rem 1rem; border-radius: 6px; border: 1px solid #2f6feb; background: #2f6feb; color: #fff; text-decoration: none; font-size: 0.9rem; cursor: pointer; }
.btn.secondary { background: #fff; color: #2f6feb; }
.btn.danger { background: #fff; color: #c0392b; border-color: #c0392b; }
.row { display: flex; gap: 1rem; }
.row > * { flex: 1; }
.flash { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 0.9rem; }
.flash.success { background: #e5f6ea; color: #1a7a3a; }
.flash.error { background: #fbe7e7; color: #c0392b; }
.taxable-checkbox { text-align: center; }
.line-item-row td { vertical-align: top; }
.totals { text-align: right; margin-top: 1rem; font-size: 0.95rem; }
.totals .grand { font-size: 1.2rem; font-weight: 700; }
.muted { color: #8a90a2; font-size: 0.85rem; }
