:root{
  --bg:#f3f5f8;
  --card:#ffffff;
  --text:#1b1f24;
  --muted:#6c7a89;
  --line:#d9dee6;
  --head:#7a89b8;
}

*{ box-sizing:border-box; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body{ margin:0; background:var(--bg); color:var(--text); }
.wrap{ max-width:1200px; margin:24px auto; padding:0 16px; }

h1{ text-align:center; margin:0 0 16px; font-size:18px; letter-spacing:.5px; }

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  padding:14px;
  margin-bottom:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}

.row{ display:grid; grid-template-columns:1.2fr 2fr 1fr auto; gap:12px; }
.filters{ display:grid; grid-template-columns:1.2fr 1.6fr 1.2fr; gap:12px; align-items:end; }

.field label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }

.field input{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  outline:none;
  font-size:14px;
  background:#fff;
}
.field input[readonly]{ background:#f7f8fb; }

.inline2{ display:flex; gap:10px; align-items:center; }
.inline2 select{
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  font-size:14px;
  background:#fff;
  min-width:210px;
}

.range{ display:flex; align-items:center; gap:10px; }
.range span{ color:var(--muted); }

.actions button, #btnCargar, #btnLogin{
  padding:10px 12px;
  border:none;
  border-radius:8px;
  background:#1f7a39;
  color:#fff;
  font-weight:600;
  cursor:pointer;
}
.actions button{ width:160px; padding: 10px 12px; font-size: 14px;}
.actions button:disabled{ opacity:.6; cursor:not-allowed; }

button.ghost{
  border:1px solid var(--line);
  background:#fff;
  padding:10px 12px;
  border-radius:8px;
  cursor:pointer;
}

.btns{ display:flex; gap:10px; flex-wrap:wrap; }

.hint{ display:block; margin-top:6px; font-size:12px; color:var(--muted); }
.hint-good{ color:#1f7a39; }
.hint-bad{ color:#b42318; }

.tableHead{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }

table{ width:100%; border-collapse:collapse; overflow:hidden; border-radius:10px; }
thead th{
  background:var(--head);
  color:#fff;
  font-weight:700;
  font-size:12px;
  padding:10px;
  text-transform:uppercase;
  letter-spacing:.4px;
  border:1px solid rgba(255,255,255,.15);
}
tbody td{ padding:10px; border:1px solid var(--line); font-size:13px; }
tbody tr:nth-child(even){ background:#fbfcff; }
.muted{ color:var(--muted); text-align:center; padding:16px; }

button.danger{
  padding:8px 10px;
  border-radius:8px;
  border:1px solid #f3b4b4;
  background:#fff;
  color:#b42318;
  cursor:pointer;
}
button.danger:hover{ background:#fff5f5; }

.topbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.who{ margin-bottom:8px; }
.tabs{ display:flex; gap:8px; flex-wrap:wrap; }
.tab{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:13px;
}
.tab.active{ background:var(--head); border-color:var(--head); color:#fff; }
