* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; background: #f6f7f9; color: #1a1a1a; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1.5rem; background: #16213e; color: white; flex-wrap: wrap; }
.topbar .brand { color: white; font-weight: bold; text-decoration: none; font-size: 1.1rem; }
.topbar nav a { color: #cfd8ff; text-decoration: none; margin-left: 1rem; }
.topbar nav a:hover { color: white; }
.container { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
h1 { font-size: 1.4rem; }
table.trips { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
table.trips th, table.trips td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid #eee; font-size: 0.92rem; }
table.trips th { background: #eef1f7; }
.tripbar { margin-bottom: 1.5rem; }
.active-trip { background: #e6f4ea; border: 1px solid #a8d8b9; border-radius: 8px; padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
.btn { display: inline-block; background: #2563eb; color: white; border: none; padding: 0.6rem 1.2rem; border-radius: 6px; cursor: pointer; text-decoration: none; font-size: 0.95rem; }
.btn-start { background: #16a34a; }
.btn-stop { background: #dc2626; }
.btn-delete { background: #dc2626; margin-top: 1rem; }
.msg { color: #555; font-size: 0.9rem; }
.flash { background: #fff3cd; border: 1px solid #ffe69c; border-radius: 6px; padding: 0.6rem 1rem; margin-bottom: 1rem; }
form label { display: block; margin-bottom: 0.9rem; font-size: 0.9rem; color: #333; }
form input, form select, form textarea { display: block; margin-top: 0.3rem; padding: 0.5rem; width: 100%; max-width: 400px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.95rem; }
.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; background: #16213e; margin: 0; font-family: system-ui, sans-serif; }
.login-box { background: white; padding: 2rem; border-radius: 10px; width: 300px; }
.login-box h1 { text-align: center; }
.estimate { color: #b45309; font-weight: bold; }
.month-picker { display: flex; gap: 1rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.month-picker label { margin-bottom: 0; }
.totals { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tile { background: white; border-radius: 8px; padding: 1rem 1.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1); text-align: center; min-width: 120px; }
.tile .num { display: block; font-size: 1.6rem; font-weight: bold; }
.tile .label { font-size: 0.8rem; color: #666; }
.tile-business .num { color: #2563eb; }
.tile-warn { color: #b45309; }
.hint { color: #666; font-size: 0.9rem; }
