/* Shared stylesheet for MJH Boekhouding */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; font-size: 17px; background: #f5f5f5; color: #1a1a1a; line-height: 1.6; }
nav { background: #0055cc; color: white; padding: 12px 16px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
nav a { color: white; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-weight: 500; font-size: 15px; }
nav a:hover, nav a.active { background: rgba(255,255,255,0.25); }
nav .brand { font-weight: 700; font-size: 18px; margin-right: 8px; }
main { max-width: 900px; margin: 0 auto; padding: 20px 16px; }
h1 { font-size: 22px; margin-bottom: 20px; color: #0055cc; }
h2 { font-size: 18px; margin: 20px 0 12px; color: #333; }
.card { background: white; border-radius: 10px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: white; border-radius: 10px; padding: 16px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); border-top: 4px solid #0055cc; }
.stat .label { font-size: 13px; color: #666; margin-bottom: 4px; }
.stat .value { font-size: 22px; font-weight: 700; color: #0055cc; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; padding: 10px 8px; border-bottom: 2px solid #ddd; color: #555; font-size: 13px; text-transform: uppercase; }
td { padding: 10px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
tr:hover td { background: #f8f9ff; }
.amount { text-align: right; font-variant-numeric: tabular-nums; }
.pos { color: #006622; }
.neg { color: #cc1100; }
.btn { display: inline-block; padding: 10px 20px; background: #0055cc; color: white; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; text-decoration: none; font-weight: 500; }
.btn:hover { background: #0044aa; }
.btn-sm { padding: 6px 12px; font-size: 14px; }
.btn-danger { background: #cc1100; }
.btn-danger:hover { background: #aa0e00; }
.btn-success { background: #006622; }
.btn-success:hover { background: #005018; }
label { font-weight: 600; display: block; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 10px; font-size: 16px; border: 2px solid #ddd; border-radius: 8px; background: white; }
input:focus, select:focus { outline: none; border-color: #0055cc; }
.form-row { margin-bottom: 14px; }
.balance-indicator { padding: 10px 16px; border-radius: 8px; font-weight: 600; margin-bottom: 12px; }
.balance-ok { background: #e6f4ec; color: #006622; }
.balance-err { background: #fde8e8; color: #cc1100; }
