*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f0f2f5; color: #222; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px 60px; }
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: #f0f2f5; }
.login-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.1); width: 100%; max-width: 400px; }
.card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.08); margin-bottom: 20px; }
.card h2, .card h3 { margin-top: 0; color: #1a3a5c; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.9em; font-weight: 500; color: #444; }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95em; }
.form-control:focus { outline: none; border-color: #1a3a5c; box-shadow: 0 0 0 2px rgba(26,58,92,.15); }
.btn { display: inline-block; padding: 9px 18px; border-radius: 4px; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 0.9em; text-decoration: none; color: #333; }
.btn:hover { background: #f5f5f5; }
.btn-primary { background: #1a3a5c; color: #fff; border-color: #1a3a5c; }
.btn-primary:hover { background: #14304f; }
.btn-danger { background: #dc3545; color: #fff; border-color: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-sm { padding: 5px 10px; font-size: 0.82em; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #e0e0e0; color: #555; font-weight: 600; background: #f8f9fa; }
.table td { padding: 10px 12px; border-bottom: 1px solid #eee; }
.table tr:hover td { background: #fafafa; }
.alert { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 0.78em; font-weight: 600; }
.badge-blue { background: #cce5ff; color: #004085; }
.badge-gray { background: #e2e3e5; color: #383d41; }
.badge-green { background: #d4edda; color: #155724; }
.badge-red { background: #f8d7da; color: #721c24; }
h1 { color: #1a3a5c; margin-bottom: 8px; }

/* Stat cards */
.stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08); text-align: center; }
.stat-value { font-size: 1.6em; font-weight: 700; color: #1a3a5c; }
.stat-label { font-size: 0.82em; color: #777; margin-top: 4px; }

/* Data tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9em; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.data-table th { text-align: left; padding: 12px 14px; border-bottom: 2px solid #e0e0e0; color: #555; font-weight: 600; background: #f8f9fa; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #eee; }
.data-table tr:hover td { background: #fafafa; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid #e0e0e0; }
.tab-btn { padding: 10px 20px; border: none; background: transparent; cursor: pointer; font-size: 0.9em; font-weight: 500; color: #777; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-btn:hover { color: #1a3a5c; }
.tab-btn.active { color: #1a3a5c; border-bottom-color: #1a3a5c; }

/* Status badges */
.badge-open { background: #cce5ff; color: #004085; }
.badge-won { background: #d4edda; color: #155724; }
.badge-lost { background: #e2e3e5; color: #383d41; }
.badge-paid { background: #d4edda; color: #155724; }
.badge-partial { background: #fff3cd; color: #856404; }
.badge-overdue { background: #f8d7da; color: #721c24; }
.badge-cancelled { background: #e2e3e5; color: #383d41; }

/* Empty state */
.empty-state { text-align: center; color: #888; padding: 40px 20px; }
