* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: #f4f5f7;
  color: #1f2430;
}
a { color: #2d5be3; text-decoration: none; }
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  background: #1f2430;
  color: #fff;
  padding: 24px 0;
  flex-shrink: 0;
}
.sidebar h1 { font-size: 16px; padding: 0 20px 20px; color: #fff; }
.sidebar a {
  display: block;
  padding: 10px 20px;
  color: #c6c9d4;
  font-size: 14px;
}
.sidebar a:hover, .sidebar a.active { background: #2d3346; color: #fff; }
.main { flex: 1; padding: 28px 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar form { display: inline; }
.btn {
  display: inline-block;
  background: #2d5be3;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.btn.secondary { background: #6b7280; }
.btn.danger { background: #dc2626; }
.btn.success { background: #16a34a; }
.btn.small { padding: 4px 10px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: #f0f1f5; font-weight: 600; }
.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-num { font-size: 26px; font-weight: 700; }
.stat-label { font-size: 13px; color: #6b7280; margin-top: 4px; }
.badge { padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge.pendiente { background: #fef3c7; color: #92400e; }
.badge.abonada { background: #dbeafe; color: #1e40af; }
.badge.pagada { background: #dcfce7; color: #166534; }
.badge.vencida { background: #fee2e2; color: #991b1b; }
.badge.anulada { background: #e5e7eb; color: #374151; }
.badge.activa { background: #dcfce7; color: #166534; }
.badge.suspendida { background: #fee2e2; color: #991b1b; }
.badge.cancelada { background: #e5e7eb; color: #374151; }
form.form-box { max-width: 480px; }
form.form-box label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; }
form.form-box input, form.form-box select, form.form-box textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px;
}
.login-wrap { display: flex; align-items: center; justify-content: center; height: 100vh; background: #1f2430; }
.login-box { background: #fff; padding: 32px; border-radius: 10px; width: 320px; }
.error-msg { color: #dc2626; font-size: 13px; margin-top: 8px; }
.actions-row { display: flex; gap: 8px; }
