* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; background: #f5f5f5; color: #333; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.nav { background: #1e293b; color: white; padding: 0 24px; display: flex; align-items: center; gap: 24px; height: 52px; }
.nav-brand { font-weight: 600; font-size: 16px; color: white; }
.nav a { color: #94a3b8; font-size: 13px; }
.nav a:hover { color: white; text-decoration: none; }
.nav a.active { color: white; }
.nav-spacer { flex: 1; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.page-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; }

.card { background: white; border-radius: 8px; border: 1px solid #e2e8f0; padding: 20px; margin-bottom: 20px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: #1e293b; }

.btn { display: inline-block; padding: 7px 16px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: #2563eb; color: white; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; text-decoration: none; color: white; }
.btn-secondary { background: white; color: #374151; border-color: #d1d5db; }
.btn-secondary:hover { background: #f9fafb; text-decoration: none; }
.btn-danger { background: #dc2626; color: white; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; text-decoration: none; color: white; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 500; color: #6b7280; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-control { width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; color: #111; }
.form-control:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
select.form-control { background: white; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; padding: 8px 12px; border-bottom: 1px solid #e2e8f0; }
.table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; font-size: 13px; vertical-align: middle; }
.table tr:hover td { background: #f8fafc; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.badge-prospect { background: #fef3c7; color: #92400e; }
.badge-active { background: #d1fae5; color: #065f46; }
.badge-suspended { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #e0e7ff; color: #3730a3; }

.search-bar { display: flex; gap: 10px; margin-bottom: 16px; }
.search-bar .form-control { max-width: 300px; }

.machine-block { border: 1px solid #e2e8f0; border-radius: 6px; padding: 14px; margin-bottom: 10px; }
.machine-block.active { border-color: #bfdbfe; background: #eff6ff; }
.machine-check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 0; cursor: pointer; }
.machine-fields { margin-top: 14px; display: none; }
.machine-fields.visible { display: block; }

.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: white; border-radius: 10px; border: 1px solid #e2e8f0; padding: 32px; width: 360px; }
.login-title { font-size: 20px; font-weight: 600; margin-bottom: 24px; text-align: center; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid #e2e8f0; margin-bottom: 20px; }
.tab { padding: 8px 16px; font-size: 13px; cursor: pointer; border-bottom: 2px solid transparent; color: #6b7280; }
.tab.active { border-bottom-color: #2563eb; color: #2563eb; font-weight: 500; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feature-item { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px; }
.feature-item.enabled { border-color: #6ee7b7; background: #f0fdf4; }

.section-divider { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #6b7280; margin: 20px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #e2e8f0; }
