* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: #f2f4f4; color: #1c2b29; }
header.cover { background: linear-gradient(135deg, #16324f, #1e5a8a); color: #fff; padding: 28px 20px 20px; text-align: center; }
header.cover h1 { margin: 0; font-size: 30px; letter-spacing: .5px; }
header.cover p { margin: 6px 0 0; opacity: .9; }
main { max-width: 720px; margin: 0 auto; padding: 16px 14px 80px; }
.card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.hidden { display: none !important; }
button, .btn { display: block; width: 100%; padding: 14px; margin: 8px 0; border: 0; border-radius: 12px; background: #16324f; color: #fff; font-size: 17px; font-weight: 600; cursor: pointer; }
button.secondary, .btn.secondary { background: #e6eeee; color: #16324f; }
button.small { width: auto; display: inline-block; padding: 9px 14px; font-size: 15px; margin: 4px 4px 4px 0; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { width: 100%; padding: 12px; margin: 6px 0 12px; border: 1px solid #c8d2d0; border-radius: 10px; font-size: 16px; background: #fff; }
label { font-weight: 600; font-size: 14px; }
h2 { margin: 0 0 10px; font-size: 20px; }
h3 { margin: 18px 0 6px; font-size: 17px; }
.muted { color: #5b6b68; font-size: 14px; }
.stat { display: inline-block; background: #fff3cd; border-radius: 20px; padding: 6px 12px; margin: 4px 4px 0 0; font-weight: 600; font-size: 14px; }
.badge { display: inline-block; background: #d32f2f; color: #fff; border-radius: 20px; padding: 3px 9px; font-size: 12px; font-weight: 700; margin-left: 6px; }
.customer { border-bottom: 1px solid #e3e8e7; padding: 12px 0; cursor: pointer; }
.customer:last-child { border-bottom: 0; }
.customer b { font-size: 17px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.notice { background: #e9f0f7; border-left: 4px solid #16324f; padding: 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.warn { background: #fff3cd; border-left: 4px solid #b58900; padding: 12px; border-radius: 8px; margin: 10px 0; font-size: 14px; }
.vin-slots { display: flex; gap: 3px; margin: 8px 0; }
.vin-slots span { flex: 1; aspect-ratio: .7; border: 2px solid #16324f; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; background: #fff; }
@media print { body * { visibility: hidden; } #credit-print, #credit-print * { visibility: visible; } #credit-print { position: absolute; left: 0; top: 0; width: 100%; } }
.switch { position: relative; display: inline-block; width: 58px; height: 32px; flex: none; }
.switch input { display: none; }
.switch .slider { position: absolute; inset: 0; background: #c8d2d0; border-radius: 32px; transition: .2s; }
.switch .slider:before { content: ""; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: #1e8e3e; }
.switch input:checked + .slider:before { transform: translateX(26px); }
.sold-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sold-label { font-weight: 700; font-size: 17px; }
.sold-label.on { color: #1e8e3e; }
.badge.sold { background: #1e8e3e; }
.home-fab { position: fixed; right: 16px; bottom: 20px; z-index: 50; width: auto; padding: 13px 20px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.totals div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #e3e8e7; }
.totals div:last-child { border-bottom: 0; }
.totals span { color: #5b6b68; }
.profit-pos { color: #1e8e3e; font-weight: 700; }
.profit-neg { color: #d32f2f; font-weight: 700; }
.thumb { margin: 10px 0; }
.thumb img { width: 100%; border-radius: 10px; display: block; margin-bottom: 4px; }
.badge.completed { background: #1e8e3e; }
