* { box-sizing: border-box; }
body { font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #f4f5f7; color: #1a1a1a; }
.topnav { display: flex; align-items: center; gap: 24px; padding: 14px 24px; background: #1f2430; color: white; }
.topnav .brand { font-weight: 600; margin-right: auto; }
.topnav a { color: #cfd3dc; text-decoration: none; margin-right: 4px; }
.topnav a:hover { color: white; }
.topnav .userbox a { margin-left: 10px; color: #ff9a9a; }
.container { max-width: 1200px; margin: 0 auto; padding: 24px; }
h1 { font-size: 22px; margin-bottom: 16px; }
h2 { font-size: 17px; margin-top: 28px; }

.login-box { max-width: 340px; margin: 80px auto; background: white; padding: 32px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.login-box h1 { font-size: 18px; text-align: center; }
.login-box form { display: flex; flex-direction: column; gap: 6px; }
.login-box label { font-size: 13px; color: #555; margin-top: 8px; }
.login-box input { padding: 9px 10px; border: 1px solid #d7d9de; border-radius: 6px; font-size: 14px; }
.login-box button { margin-top: 16px; padding: 10px; background: #2f6feb; color: white; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; }
.alert-error { background: #fde8e8; color: #a11; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 8px; }

.cards { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.card { background: white; border-radius: 8px; padding: 14px 18px; min-width: 150px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card-label { font-size: 12px; color: #777; }
.card-value { font-size: 22px; font-weight: 600; }
.card-sub { font-size: 12px; color: #999; }
.card-warn { border-left: 4px solid #e8a33d; }
.card-bad { border-left: 4px solid #d64545; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; background: white; padding: 12px; border-radius: 8px; }
.filters select, .filters input { padding: 7px 9px; border: 1px solid #d7d9de; border-radius: 6px; font-size: 13px; }
.filters button { padding: 7px 16px; background: #2f6feb; color: white; border: none; border-radius: 6px; cursor: pointer; }

table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; font-size: 13px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #fafbfc; color: #666; font-weight: 600; font-size: 12px; text-transform: uppercase; }
tr.row-warn { background: #fff8e6; }
tr.row-bad { background: #fdeaea; }
.title-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hint { font-size: 12px; color: #999; margin-top: 10px; }

.alert-success { background: #e6f7ea; color: #1a7a34; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 8px; }
.inline-cost-form { display: flex; gap: 4px; align-items: center; }
.cost-input { width: 68px; padding: 4px 6px; border: 1px solid #d7d9de; border-radius: 4px; font-size: 12px; }
.inline-cost-form button { padding: 4px 8px; background: #2f6feb; color: white; border: none; border-radius: 4px; cursor: pointer; font-size: 11px; }
