* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin:0; background:#f7f7f9; color:#222; }
.container { max-width: 1100px; margin: 0 auto; padding: 16px; }
.topbar { background:#101828; color:#fff; }
.topbar .brand { color:#fff; text-decoration:none; font-weight:700; margin-right:12px; }
.topbar nav a { color:#cbd5e1; text-decoration:none; margin-right: 8px; }
.topbar nav a:hover { color:#fff; }
.card { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:16px; margin:12px 0; }
.grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:12px; }
.field label { display:block; font-weight:600; margin-bottom:4px; }
.field input { width:100%; padding:8px; border:1px solid #d1d5db; border-radius:6px; }
.actions { margin-top: 12px; }
button, .btn { background:#2563eb; color:#fff; border:none; padding:8px 12px; border-radius:6px; cursor:pointer; text-decoration:none; display:inline-block; }
button:hover, .btn:hover { background:#1d4ed8; }
.alert { background:#fff3cd; color:#664d03; padding:8px 12px; border:1px solid #ffecb5; border-radius:6px; margin:12px 0; }
.table-responsive { overflow:auto; }
table { width:100%; border-collapse: collapse; background:#fff; border:1px solid #e5e7eb; border-radius:8px; overflow:hidden; }
th, td { padding:8px 10px; border-bottom:1px solid #e5e7eb; text-align:left; white-space:nowrap; }
th { background:#f1f5f9; font-weight:700; }
.pagination { margin: 12px 0; display:flex; gap:8px; align-items:center; }
.pagination .right { margin-left:auto; }
.kpis { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap:12px; }
.kpi { background:#fff; border:1px solid #e5e7eb; border-radius:8px; padding:10px; }
.kpi-label { font-size:12px; color:#6b7280; }
.kpi-value { font-size:18px; font-weight:700; }
.footer { color:#475569; background:#f8fafc; border-top:1px solid #e5e7eb; margin-top:24px; }
.suggestions { background:#fff; border:1px solid #e5e7eb; border-radius:6px; margin-top:4px; max-height:400px; overflow-y:auto; overflow-x:hidden; display:none; position:relative; z-index:2; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.suggestions div { padding:8px 12px; cursor:pointer; border-bottom:1px solid #f1f5f9; font-size:14px; }
.suggestions div:hover { background:#f1f5f9; }
.suggestions div:last-child { border-bottom:none; }
#fiis-selected .tag { display:inline-flex; align-items:center; gap:6px; background:#e0e7ff; color:#1e3a8a; padding:4px 6px; border-radius:16px; margin:4px; }
.tag .rm { cursor:pointer; color:#1e3a8a; }
.weights input { width:120px; }

