/* JAutomotive Pro — plain, print-friendly styling. */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0; color: #1c1c1e; background: #f6f5f2; }
.topbar { background: #141414; color: #f5c542; padding: 12px 20px; display: flex; gap: 14px; align-items: baseline; }
.topbar .brand { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; }
.topbar .tagline { color: #e8e3d8; font-size: .85rem; }
.nav { background: #232323; padding: 8px 20px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.nav a { color: #f2ead2; text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; }
.nav .logout { margin-left: auto; }
.linkbtn { background: none; border: 0; color: #f2ead2; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
main { max-width: 1020px; margin: 0 auto; padding: 20px 16px 48px; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; margin-top: 28px; }
.card { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; padding: 18px; margin: 14px 0; }
.card.wide { max-width: 100%; }
label { display: block; margin: 10px 0; font-weight: 600; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px; border: 1px solid #bdb49c; border-radius: 6px; font: inherit; font-weight: 400; background: #fff; }
button, .btn { display: inline-block; background: #141414; color: #f5c542; border: 0; border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { background: #2c2c2c; }
.msg { padding: 10px 14px; border-radius: 6px; }
.msg.error { background: #fbe3e3; border: 1px solid #d99; }
.msg.notice { background: #e6f4e3; border: 1px solid #9c9; }
.fineprint, .muted { color: #666; font-size: .9rem; }
table.list, table.lines { width: 100%; border-collapse: collapse; background: #fff; }
table.list th, table.list td, table.lines th, table.lines td { border-bottom: 1px solid #e3ddcd; padding: 8px 10px; text-align: left; vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; }
.statgrid { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; padding: 14px 18px; min-width: 150px; }
.stat .statnum { display: block; font-size: 1.4rem; font-weight: 800; }
.searchrow { display: flex; gap: 10px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.searchrow input, .searchrow select { width: auto; flex: 0 1 320px; margin-top: 0; }
.twocol { display: flex; gap: 14px; } .twocol label { flex: 1; }
.inlineform { display: inline-flex; gap: 8px; align-items: end; margin: 6px 12px 6px 0; }
.inlineform label { margin: 0; } .inlineform select { width: auto; margin-top: 2px; }
table.builder td input, table.builder td select { margin-top: 0; }
.taxcell label { display: inline-block; font-weight: 400; margin: 2px 6px 2px 0; }
.taxcell input { display: inline; width: auto; }
.totalsbox { background: #fbf8ef; border: 1px solid #ddd6c4; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }
/* printable document */
.doc { background: #fff; border: 1px solid #ddd6c4; border-radius: 10px; padding: 28px; }
.dochead { display: flex; justify-content: space-between; gap: 20px; border-bottom: 3px solid #f5c542; padding-bottom: 14px; }
.docbrand { font-size: 1.6rem; font-weight: 800; }
.doclegal { font-weight: 600; color: #444; }
.doccontact, .docmotto { color: #555; font-size: .92rem; }
.docmeta { text-align: right; }
.doctype { font-size: 1.25rem; font-weight: 800; }
.doctitle { font-size: 1.2rem; }
table.totals { margin-left: auto; border-collapse: collapse; min-width: 280px; }
table.totals td { padding: 6px 10px; border-bottom: 1px solid #e3ddcd; }
table.totals .grand td { font-weight: 800; border-top: 2px solid #141414; }
.memo { margin-top: 18px; }
.docfoot { margin-top: 26px; border-top: 1px solid #e3ddcd; padding-top: 12px; color: #444; }
.docactions { margin-top: 18px; }
.foot { text-align: center; color: #888; padding: 18px; font-size: .85rem; }
@media print {
  body { background: #fff; }
  .noprint, .nav, .topbar, .foot { display: none !important; }
  main { max-width: none; padding: 0; }
  .doc { border: 0; border-radius: 0; padding: 0; }
}
